On Fri, Jun 11, 2010 at 6:36 PM, Joseph L. Casale
<[email protected]> wrote:
>>       rpm --freshen /pub/mirror/centos/5/updates/i386/RPMS/*
>
> That do depsolving if a package updates requires another packed to be
> updated as well?

  It will properly order installation so that dependencies are updated
first.  However, it won't install newly required packages, which does
very occasionally happen.    "yum update" will install newly required
packages; that's obviously a better solution.  If I had a lot of Linux
boxes, I would definitely do that.  For the past five years or so I've
been dealing with mostly 'dows with only one-off 'nix boxes, so I
haven't had need.

  I had the "update requires a new package" thing hit me once or twice
before yum came out.  I did one-off commands to handle it when it
showed up in the reports in the morning.  For example:

        for server in $( < servers.txt ) ; do ssh r...@${server} rpm
--install /pub/mirror/centos/5/updates/i386/RPMS/foo-1.2.3.i386.rpm ;
done

  That uses SSH (secure shell) to run the package install command on a
list of servers.

  SSH is kind of like PSEXEC but faster, works with any program, and
is safe over the public 'net.  Putting it in a for loop is an
extremely common idiom in the 'nix world.  If you have a lot of 'nix
boxes, look for pssh, which can run the commands in parallel.

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to