[ale] RPM Upgrade

Chris Hamilton chrish at ifsintl.com
Fri Jul 31 10:32:36 EDT 1998


On Fri, 31 Jul 1998, Larry Gee wrote:

> 
> Have you tried the -U parameter?
> 

Eric replied with more of what I was looking for. Sure, the -U option will
upgrade, but if I do: rpm -U dir.with.rpms/* .. it will not only upgrade,
but will also install packages if they aren't already installed (which
isn't what I'm looking for). Thanks Larry and Eric for the info.

--

Reply-To: Eric.Ayers at compgen.com
To: Chris Hamilton <chrish at ifsintl.com>
Subject: [ale] RPM Upgrade


Try this:

#!/usr/bin/bash
# provide the name of the package on the command line to this script
rpm -q $1
if [ $? = 0 ] ; then
        rpm -U $1
fi

--
Chris Hamilton                  Internal System Administrator
chrish at ifsintl.com              IFS International, Inc.






More information about the Ale mailing list