Red Hat is an distributor of Linux and it introduced RPM in 1995. Redhat Package Manager (RPM) is a command line driven package management. It consists of 5 actions such as
1. Install
2. Uninstall
3. Verify
4. Query
5. Update
The syntax is : #rpm options packagename
To install : #rpm -i emacs
To install a particular version of a package : #rpm -i emacs -3.1.2
To uninstall : #rpm -e emacs
To verify whether the package is correctly installed or not : #rpm -verify (or) -v emacs
To query : #rpm -q emacs
To update : #rpm -u emacs
Combination of options :
1. #rpm -iv emacs - this is used to install and verify the emacs packages .
2. #rpm -ev emacs -is used to uninstall and verify whether the package is installed or not .
3. #rpm -iq emacs - this is used to install and query .
4. #rpm -vu emacs - this is used to verify the package and then update the package.
Query options :
-q is for query installation.
-qa is used to lists all the installed rpm software applications.
-qR is used to lists all the applications on which the given package depends.
-qi is used to display all the application version and authors.
-ql is used to lists all the files in that application.
-qd is used to lists all the documentation files for the particular appilcation.
-qc is used to list only the configuration files for the particular application.
-qf is used to display the applications that owns the file.
-qp is used to queries the information about uninstalled package.
Uninstall options :
--test is used to test for removal of a particular package.
--allmatches is used to remove all the applications with the given name.
--nodeps is used to uninstall a particular or application without checking any differences.
Note : Emacs is a text editor in Linux.
Sign up here with your email
ConversionConversion EmoticonEmoticon