Installing software in CentOS 5 by rpm

Finding RPM Packages
CentOS Other Region's Mirrors
http://www.centos.org/modules/tinycontent/index.php?id=32
Vietnam DIGIPOWER Co.,ltd
http://mirrors.digipower.vn/centos/5/os/x86_64/CentOS/

Install new package

# rpm -ivh foo-1.0-1.i386.rpm

Upgrade

If you see this error

conflicts with file from package

Try this

# rpm -Uvh foo-1.0-1.i386.rpm

If you still see this error

conflicts with file from package

Try this

# rpm -Uvh --replacefiles foo-1.0-1.i386.rpm

Upgrade without dependent

If you see this error:

error: Failed dependencies:        
    foo is needed by (installed) bar-2.0.20-3.i386.rpm

Try this   

# rpm -Uvh --nodeps foo-1.0-1.i386.rpm

Remove

# rpm -e foo-1.0-1.i386.rpm

Reference
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-rpm-using.html

Find RPM packages

# rpm -qa | grep NAME_OF_RPM

Use YUM command

#yum erase NAME_TO_REMOVE
#yum install NAME_TO_INSTALL

Note:
Edit these files to make sure YUM can work
/etc/yum.conf
/etc/yum.repo/SERVER.repo
For CentOS 5, the python must be python 2.4

Loading