Thursday, May 18, 2017

How To Find Package Installation Date on RHEL 7

Overview

In this guide we will look at rpm package installation history on a Linux based operating system.

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"









Slideshare Info

A step by step guide with screenshots is uploaded to slideshare.



No comments:

Post a Comment