How can I list installed rpm packages ?
List installed packages
Collapse
X
-
Tags: None
-
To list all installed RPM packages on a Linux system, you can use the command "rpm -qa". This command will show you a list of all the RPM packages that are currently installed on your system.
You can also use the command "yum list installed" which is for the yum package manager. This command will show you a list of all the packages that are currently installed on your system, including both RPM and non-RPM packages.👍 1Comment
-
To list the installed RPM packages on a Linux system, you can use the following command
This command will display a list of all the installed RPM packages along with their names and versions. If you want to save the list to a file for further analysis, you can redirect the output to a text file using the following command:Code:rpm -qa
This will create a file named "packages.t xt" and write the list of installed RPM packages to that file. You can then open the file and view the list of packages using a text editor or any other tool of your choice.Code:rpm -qa > packages.txt
Keep in mind that this command will work on RPM-based Linux distributions such as Red Hat, CentOS, Fedora, and openSUSE. If you are using a different package manager, the command may vary.👍 1Comment
-
Thank you!
To get the most recent packages installed:
rpm -qa --last
I want to add for anyone else out there that is debugging packages
Use rpm -Va to check if any of the files for the installed packages have been modified, corrupted or deleted.
For a specific package use:
rpm -V <package-name>
Example
rpm -V httpd
You can even list the changelog of packages:
rpm -q --changelog <package-name>
rpm -q --changelog httpd
👍 1Comment
Comment