Search Engine

Loading

Sallar

Sallar
RedhatEnterpriseLinux Blog

How to INSTALLING SOFTWARE RPM

RPM stands for RedHat Package Management, but is pretty universal and used in modern linux 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 )

# 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.

# 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,
# 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 )

# 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 )

# 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 

0 comments:

Post a Comment

Powered by Blogger.

Ads

 
Copyright © Redhat Enterprise linux. Original Concept and Design by My Blogger Themes
My name is Abdul Razaq but people call me Raziq. Here is my home page: www.redhatenterpriselinux.blogspot.com I live in Quetta, Pakistan and work as an IT-Engineer.