Package Management using RPM
What is Package?
- Package is the software that needs to be installed on Linux system to add specific feature or service made available to the system.
- Package can be a single executable binary file or can have multiple package file group as dependencies to install a specific service to the Linux system.
- When we are installing a Service or Software to the system need to identify all packages that required to be installed on the system called as Dependency Packages.
What is RPM?
- Red Hat Package Manager (R PM ) utility is used to manage package in the Red Hat Linux Systems.
- RPM utilit can not resolve dependencies automatically, hence need to explicitly supply all dependency packages for installation of any specific application software.
- When we used RPM utility to install packages , it uses /var/lib/rpm file to track of the currently installed version of pakcages for better management of packages.
How to see list of Packages installed on the System
[root@ ~]$rpm -qa
pth-2.0.7-23.amzn2.0.2.x86_64
kbd-misc-1.15.5-15.amzn2.noarch
hardlink-1.3-3.amzn2.x86_64
basesystem-10.0-7.amzn2.0.1.noarch
python-2.7.16-5.amzn2.x86_64
How to install a package using RPM
[root@ ~]$ rpm -ivh MySQL-client-3.23.57-1.i386.rpm Preparing... ########################################### [100%] 1:MySQL-client ########################################### [100%]
How to remove a package using RPM
[root@ ~]$ rpm -e MySQL-client
Previous
Next