On Dec 15, 2007 7:31 PM, Kelsey Hartigan Go
<[EMAIL PROTECTED]> wrote:
> Centos is like RedHat therefore check the time stamp of /etc/issue or
> /etc/motd.

/etc/issues is provided by centos-release and it gets updated when
centos-release is updated while /etc/motd, just like any rpm files,
has what Ed called "preserved timestamp". When a binary rpm is created,
the timestamp of files are preserved and when it is installed only the
"install date" information of rpm is changed to the current datetime,
not the timestamp of files.

Without access to the logs that are usually created during installation,
I think your only hope is to depend on the "install date" of the oldest
installed rpm.

This should give you the oldest installed rpm:

    rpm -qa --qf '%{NAME}-%{VERSION} %{INSTALLTIME}\n' |
    sort -n -k 2,2 |
    head -1
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to