Package Management
RPM (Redhat Package Manager)
BY using RPM we can•Install new applications
•Upgrade existing applications
•Remove installed applications
•Query package. RPM is both installation method and package format.
RPM Installation:
# rpm <options> <package>
# rpm –ivh bind-9.2.4.28.el4-i386.rpm
Options:
-i To install
-u To update existing package
-h Display progress in hash.
-v verbose
# rpm –ivh bind-9.2.4.28.el4-i386.rpm - - force
•To install RPM without dependency.
•To install RPM without dependency.
•# rpm –ivh bind-9.2.4.28.el4-i386.rpm - - nodeps
Querying RPM
Querying RPM
•#rpm -qa # rpm –ivh bind-9.2.4.28.el4-i386.rpm
Options:
- q availability of package
-qa display all install package
-qi display complete info of package
- q availability of package
-qa display all install package
-qi display complete info of package
Remove RPM
# rpm <options> <packagename>
#rpm -e bind-9.2.4-28.el4
•To remove RPM without dependancy:
# rpm –e bind-9.2.4-28.el4 - - nodpes