[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpm function FYI



Maybe I am the last in the world to find out how to do this.
But recently we needed to know when our rpm's were installed
sorted by date. We found this command string on page 77-78
of Maximum RPM and put it in a shell script. So for those of
you that don't know here is the contents of our shell script
we call rpm-date.


#!/bin/bash
#Install date of all rpm's most recent first
rpm -qa --queryformat '%{installtime} %{name}-%{version}-%{release} %{installtime:date}\n' | sort -nr +1 | sed -e 's/^[^ ]* //'|less
-- 
-------------------------------------------
Aaron Konstam
Computer Science
Trinity University
715 Stadium Dr.
San Antonio, TX 78212-7200

telephone: (210)-999-7484
email:akonstam@trinity.edu





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []