in reply to Re: Net::SSH::Perl with apt-get
in thread Net::SSH::Perl with apt-get

For the record, the point of his script is not to run apt-get update / apt-get dist-upgrade on each of his servers, it's to run "apt-get install $app"

While you script may be usefull to him, it doesn't address his problem.

Replies are listed 'Best First'.
Re: Re: Re: Net::SSH::Perl with apt-get
by Elijah (Hermit) on Feb 14, 2004 at 18:00 UTC
    Well it most definately addresses his problem if you would care to even read the source for the script. It really does not matter what he is trying to upgrade (an entire distro list or a single package) the syntax for apt-get is the same.

    What he needed from my script was the "-y" argument telling apt-get to answer yes to all asked questions. You can take my entire script and change a few lines and have it upgrade single packages. So as I am sure you can see now is that yes it does address his problem.

      This is very odd, and not the way I would assume it works. I will have to verify this. For you see, when I run "apt-get install anjuta" on the commandline (without Net::SSH::Perl), it does not require any interaction. We can see the output:
      apt-get install anjuta Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: anjuta 0 packages upgraded, 1 newly installed, 0 to remove and 2 not upgrade +d. Need to get 2633kB of archives. After unpacking 6955kB will be used. Get:1 http://ftp.us.debian.org stable/main anjuta 0.1.9-4 [2633kB] Fetched 2633kB in 17s (155kB/s) + Selecting previously deselected package anjuta. (Reading database ... 109891 files and directories currently installed +.) Unpacking anjuta (from .../anjuta_0.1.9-4_i386.deb) ... Setting up anjuta (0.1.9-4) ...
      I will try this again with a -y to see if it works differently.
      Rohit Mehta
      I have just verified that using the "-y" does not produce different results. I think this is more of a Net::SSH::Perl problem than an apt problem :-/
      Rohit Mehta