Overview
Applies To
- RHEL 7
Pre-Requisites
- RPM installed Linux operating system.
Query Package – All Packages
In order to query packages that have been installed on the server along with their date of installation, run the command; by default latest installed packages are listed on top.rpm -qa --last
Query Package – Latest Packages
In order to query package that have been installed latest, in this case we will query for latest five packages; run the command;rpm -qa --last | head -5
Query Package Info – Dates
In order to query package info such as package installed date and package build date, run the command;rpm -qai fail2ban* | grep -E "Name |\ Install Date"
No comments:
Post a Comment