SES by degreeadvantage.com

Friday, November 23, 2007

Software (RMP) Installation in linux

RPM (RedHat Package Manager)

RPM package contain the file and directories associated with specific application and program.

RPM namegenerally includes version, release and architecture for which it was build.

Like

Zip-2.3-8.i386.rpm

To install RPM:

#rpm –i rpm_name

To Remove RPM

#rpm –e rpm_name

In order to remove those package which has dependency

#rpm –e rpm_name –nodeps

Switches used with RPM

-i or --install

-e or --erase

-U or--Upgrade

-F or --Freshen

we can install rpm by using

#rpm –ivh rpm_name

-I : Install

-v : Verbose

-h : Human view (Hash Sign)

To Upgrade RPM:

#rpm –U rpm_name

To repair any corrupted rpm package

#rpm –F rpm_name

To make any rpm query

#rpm –q rpm_name

To check all rpm of related pacakes

#rpm –qa |grep rpm_name


To check particular file associated with which rpm

# rpm –qf /etc/passwd

passwd file is associated with setup-2.5 rpm


To check the rpm containing which file

#rpm –ql rpm_name

this command will list all the file associated with particular rpm.


To get the information about the particular rpm.

#rpm –qi rpm_name

To Install any rpm forely

#rpm –ivh rpm_name –force

Installing dependent packages:

Suppose we have 4 rpm’s r1,r2,r3 and r4 , we need to install r4 but r4 depends on remaining rpm’s then we use this command.

To check any rpm’s query

#rpm –qa “sendmail*”

To check rpm’s of related service

#rpm –qa |grep bind

No comments:

 
Free Search Engine Submission thanks to: Create a Website