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
#rpm –i rpm_name
#rpm –e rpm_name
#rpm –e rpm_name –nodeps
-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)
#rpm –U rpm_name
#rpm –F rpm_name
#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
#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.
#rpm –qa “sendmail*”
#rpm –qa |grep bind
No comments:
Post a Comment