Skip to main content

How to find recently installed RPMs [LINUX]

* rpm -qa --last will return all installed rpm packages with their installed time. The last installed packages will be at the top of the list.

* rpm -qa --last less is will return all installed packages with their install date. Less allows you to scroll through the results.

* rpm -qa --last tail -n [lines] will return the last 5 packages. Replace [line] with any number you want, in my case 5 for file lines.

[root@testbox root]# rpm -qa --last tail -n 5termcap-11.0.1-17.1 Tue 09 May 2006 03:02:53 PM MYTsetup-2.5.27-1 Tue 09 May 2006 03:02:52 PM MYTfilesystem-2.2.1-3 Tue 09 May 2006 03:02:52 PM MYTbasesystem-8.0-2 Tue 09 May 2006 03:02:52 PM MYTredhat-logos-1.1.14.3-1 Tue 09 May 2006 03:02:51 PM MYT

* rpm -qa --last grep [package name] will return the install date for a specific RPM package. In my case the apache web server

Comments

Popular posts from this blog

What is Cybersecurity Risk? Definition & Factors to Consider

  Cybersecurity risk has become a leading priority for organizations as they embrace digital transformation and leverage advanced technology solutions to drive business growth and optimize efficiencies. Additionally, many organizations are increasingly reliant on third-party and   fourth-party vendors   or programs.  In this post, we’ll explore what cybersecurity risk is and take a look at some key cybersecurity risk factors that organizations across all industries should keep in mind as they build and refine their   cybersecurity risk management strategy .   What is cybersecurity risk? Cybersecurity risk refers to   potential threats and vulnerabilities   in digital systems. It encompasses the likelihood of a cyberattack compromising data or systems, leading to financial,   reputational , or operational damage. A few examples of cybersecurity risks include   ransomware ,   malware ,   insider threats ,   phishing attacks ...

Adding a New Hard Drive to Linux using LVM

I did this on RHEL 5.5. You should have the new drive created and added to the machine before you start anything.First you need to fdisk the drive like any other drive in linux. One key step is that you need to change the type; option ?t? to ?8e? for lvm. root@itsme ~# fdisk /dev/sdc Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only,until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 7832. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e ex...

Command to Find Version of Linux OS

Command to Find Version of Linux OS # cat /etc/redhat-release Regards Avinash Pillai URL : http://avinashpillai.blogspot.com Email: avinashp[AT]aztecsoft[DOT]com, avinashp25[AT]gmail[DOT]com