Wednesday, March 24, 2010

RPM: Replacing packages

Click Here For Free Windows Downloads
mywindowsdownloads.blogspot.com

Click here for all Free Linux Downloads



Blog address for Linux in Hindi

Replacing


If the same package and same version is already installed but want to install this package anyway, we can use --replacepkgs option. This will tell RPM to ignore the error:


# rpm -ivh --replacepkgs xmms-1.2.10-1.i386.rpm


Conflicting

If we are installing package which contains a file that has already been installed by another package, the following type of information is displayed:

Preparing…

######################################################[100%]

file /usr/bin/xmms from install of xmms-1.2.10-1 conflicts with file from xine-3.7.10

To make RPM ignore this error, use the --replacefiles option:

# rpm -ivh --replacefiles xmms-1.2.10-1.i386.rpm


If we have a required online source for RPM packages, we can install them directly from that source. For example, if we want to install the lynx RPM package from RedHat/RPMS directory on server named linuxserver71, We can run the following command to install it:


# rpm -ivh ftp://linuxserver71/RedHat/RPMS/lynx-*


Some other FTP servers require user name and password. For example following:


# rpm -ivh ftp://anonymousftp.redhat.com/pub/redhat/linux/rawhide/i386/RPMS/lynx-*


Password for anonymous@ftp.redhat.com:

The password that we enter is not displayed on the screen. We can use this command to install the newer version of many packages. But this command may not work well over internet. So for that situation download the package first and then install it.


No comments:

Post a Comment