RPM (Red Hat Package Manager) is a package management system for Linux systems, specifically for Red Hat, Fedora, and other distributions that use the RPM package format. It is used to install, update, and remove software packages on the system.
An RPM package is a self-contained archive file that contains all the necessary files, dependencies, and metadata to install and manage a software application. The package format includes a header that contains information such as the package name, version, and dependencies, as well as the files that make up the package.
RPM uses a database to keep track of installed packages and their dependencies. This allows the system to easily determine which packages are installed, which packages are needed, and which packages can be safely removed.
The main command to work with RPM packages is rpm
command. Some examples of using this command are listed below:
How to install RPM in Ubuntu?
By using below command, we can install RPM.
apt-get install rpm
How to check RPM version?
By using below command, we can check the rpm version.
rpm --version
How to install a Package using RPM?
By using below command, we can install a package and from the below command we are using options “ivh”
rpm -ivh packagename.rpm
- i: install
- v: verbose
- h: hash(hash will show the progress of installation)
How to Upgrade a Package using rpm?
By using below command, we can upgrade a package, The flags used are ‘Uvh’
rpm -Uvh packagename.rpm
- U: upgrade
- v: verbose
- h: hash(hash will show the progress of upgradation)
How to delete a package using rpm?
By using below command, we can remove/delete a package, The flags used are ev
rpm -ev packagename.rpm
- e: erase
- v: verbose
How to install a rpm package without dependencies?
By using below command, we can install a package without resolving dependencies with use of extra option known as “–nodeps“
rpm -ivh packagename.rpm --nodeps
- install
- verbose
- hash(hash will show the progress of installation)
How to list/query recently installed packages using rpm command?
By using below command, we can list recently installed packages with an option “–last“, The flags used are “qa”
rpm -qa --last
- q: query
- a: all
How to get information about rpm package without installing it?
By using below command, we can get information about rpm file, The flags used are “qip”
rpm -qip packagename.rpm
- q: query
- i: install
- p: package
How to query particular installed rpm?
By using below command, we can query about rpm package.
rpm -q packagename.rpm
- query
How to identify to which rpm package a file belongs to?
By using below command, we can identify to which rpm a file is belongs to.
rpm -qf packagename.rpm
- q: query
- f: file
RPM is widely used by Linux system administrators and users to manage software on their systems. It is also used to distribute software for Red Hat, Fedora, and other RPM-based distributions.
Thanks for this wonderful article. One more thing to mention is that a lot of digital cameras arrive equipped with a new zoom lens that allows more or less of your scene to get included through ‘zooming’ in and out. All these changes in the aim length are generally reflected inside the viewfinder and on huge display screen on the back of this camera.