How to check recently installed packages in Redhat Linux
If you’re using Redhat Linux and want to track down the recently installed packages, there are several methods you can use. Keeping a record of the latest installations is essential for troubleshooting, auditing, and maintaining the system. In this article, we’ll explore various commands and techniques to help you check recently installed packages in Redhat Linux.
1. Using the ‘last’ command
The ‘last’ command is a versatile tool that displays the login history on your system. By filtering the output, you can find out the recent installations. To check recently installed packages, run the following command:
“`
last | grep ‘install’
“`
This command will display all login entries that contain the word ‘install’. You can then examine the output to identify the packages installed recently.
2. Using the ‘rpm’ command
The ‘rpm’ command is another useful tool for managing packages in Redhat Linux. You can use it to search for recently installed packages by running the following command:
“`
rpm -qa –last | head -n 10
“`
This command lists the last 10 installed packages. You can adjust the number of packages by modifying the ‘-n’ value.
3. Using the ‘yum’ command
The ‘yum’ command is the package manager for Redhat Linux. It allows you to install, update, and remove packages. To find out the recently installed packages, use the following command:
“`
yum history list
“`
This command displays a list of all package installations and updates, along with their timestamps. You can then scroll through the list to identify the recent installations.
4. Using the ‘dnf’ command
‘Dnf’ is the next-generation package manager for Redhat Linux. It has replaced ‘yum’ in recent versions. To check recently installed packages using ‘dnf’, run the following command:
“`
dnf history list
“`
This command provides a list of all package installations and updates, similar to the ‘yum history list’ command.
5. Using the ‘rpm -Va’ command
The ‘rpm -Va’ command checks for rpm package file metadata. By running this command, you can find recently modified packages, which may indicate recent installations. To use this command, execute:
“`
rpm -Va | grep ‘U’
“`
This command will display all the modified packages, including those recently installed.
In conclusion, there are multiple ways to check recently installed packages in Redhat Linux. Using commands like ‘last’, ‘rpm’, ‘yum’, ‘dnf’, and ‘rpm -Va’ can help you keep track of the latest package installations. This information is valuable for maintaining your system and resolving any issues that may arise.