Tue Jun 4 12:17:20 MDT 2013
INSTALL AND UPGRADE OPTIONS
The general form of an rpm install command is
rpm -i [install-options] <package_file>+
This installs a new package. The general form of an rpm
upgrade command is
rpm -U [install-options] <package_file>+
This upgrades or installs the package currently installed
to the version in the new RPM. This is the same as
install, except all other version of the package are
removed from the system.
rpm [-F|--freshen] [install-options] <package_file>+
This will upgrade packages, but only if an earlier version
rpm -Fvh *
should work for you.
Ferdinand Schmid wrote:
> This question relates to updating Linux systems using rpms. In the past I have
> seen several posts that suggest updating a system to a later version by going
> into a directory with the new rpms and then typing:
> rpm -Uvh *
> If I understand the -U option for rpm correctly then it will update on older
> rpm of the same type if that exists. If it doesn't exist then it will only
> install the new rpm. This would result in the above command installing all
> applications and libraries that can be found in the update directory, not just
> the new versions of already installed libraries. So the "updated" system may
> have a number of services installed that I don't want.
> Is this correct? If so then I may sit down and write a script to only update
> already installed rpms (would require an analysis of the naming conventions).
> What is the group's opintion on this?
> Ferdinand Schmid
> 303-444-4149 x231
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG