Using rpm to install and uninstall software under Linux

1. Installation

rpm -i package file name to be installed

Examples are as follows:

rpm -i example.rpm installs the example.rpm package;

rpm -iv example.rpm installs the example.rpm package and displays the file information being installed during the installation process;

rpm -ivh example.rpm installs the example.rpm package and displays the file information being installed and the installation progress during the installation process;

2. View the installed software

rpm -qa | grep package name

3. Uninstall the software

rpm -e –nodeps Packages to uninstall

score

Leave a Reply

Your email address will not be published. Required fields are marked *