Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown   Email 



INSTALLING SOFTWARE
RPM


RPM stands for RedHat Package Management, but is pretty universal and used in modern Distro's. In many cases a simple click on the RPM icon will open a GUI for easy installation. Sometimes you can even do a test-install to see if all dependencies are correct.

For the commandline we have: ( assuming we want to install samba-2.2.1a-4 )

CODE
# rpm -ihv   samba-2.2.1a-4.rpm  ( Will install the package )
# rpm -Uhv samba-2.2.1a-4.rpm   ( Will upgrade the package )
# rpm -e samba-2.2.1a-4.rpm   ( Delete the package )
# rpm -l samba-2.2.1a-4.rpm   ( Will list the files in the package )
# rpm -ql samba-2.2.1a-4.rpm  ( Will list the files and state the installed version of the package )


Imagine the install returns that there are some libs missing, and you know for sure that they are there: In most cases you can force an install, or tell it to ignore dependencies.

CODE
# rpm -ihv   samba-2.2.1a-4.rpm --force
# rpm -ihv   samba-2.2.1a-4.rpm --nodeps


Upgrading:
First have a look what's installed,

CODE
# rpm qa | grep samba

this will return,
samba-common-2.2.1a-4
samba-client-2.2.1a-4
samba-2.2.1a-4


uninstall. ( Leave the dependencies as they are )

CODE
# rpm -e samba-common-2.2.1a-4 --nodeps
# rpm -e samba-client-2.2.1a-4 --nodeps
# rpm -e samba-2.2.1a-4 --nodeps


install the upgrade, ( With or without --force or --nodeps )

CODE
# rpm -ihv samba-2.2.7-3.7.2.rpm
# rpm -ihv samba-client-2.2.7-3.7.2.rpm  
# rpm -ihv samba-common-2.2.7-3.7.2.rpm  



Bruno


-- Apr 25 2003 ( Revised Mar 9 2006 ) --


Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown   Email