mywindowsdownloads.blogspot.com
Click here for all Free Linux Downloads
Managing Packages using RPM
Upgrade and Freshen
Sometimes we need to update the features of any old installed package or wanted to upgrade the kernel version. In such cases we need upgrade.
RPM has two switches associated with it: -U and -F.
If there is no already installed package to upgrade then -U option will install the new package, whereas -F option will not.
It is good practice to use -v and -h option whenever we upgrade or freshen up the package.
The syntax for upgrading is: rpm -U packagename
If we are upgrading the installed version of lynx from mounted CDROM, the following command will help us upgrade it:
# rpm -Uvh /mnt/cdrom/RedHat/RPMS/lynx-*
If RPM thinks that you are trying to upgrade to an older version package, it will display an error message similar to the following:
package lynx-2.0-1 (which is newer than lynx-1.0-1) is already installed.
To force RPM to upgrade in any case, use --oldpackage option:
# rpm -Uvh --oldpackage /mnt/cdrom/RedHat/RPMS/lynx-*
No comments:
Post a Comment