Monday, 3 June 2013

How to get Centos installation date

Find  the exact name of the basesystem rpm.
[user@myhost ~]$ sudo rpm -qa|grep  basesystem

Get installation date
[user@myhost ~]$ sudo rpm -qi basesystem-10.0-4.el6.noarch
Name        : basesystem                   Relocations: (not relocatable)
Version     : 10.0                              Vendor: CentOS
Release     : 4.el6                         Build Date: Thu 11 Nov 2010 04:12:57 AM MSK
Install Date: Thu 14 Jul 2011 02:45:23 PM MSK      Build Host:
Group       : System Environment/Base       Source RPM: basesystem-10.0-4.el6.src.rpm
Size        : 0                                License: Public Domain
Signature   : RSA/8, Sun 03 Jul 2011 08:00:48 AM MSK, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <>
Summary     : The skeleton package which defines a simple Red Hat Enterprise Linux system
Description :
Basesystem defines the components of a basic Red Hat Enterprise Linux
system (for example, the package installation order to use during
bootstrapping). Basesystem should be in every installation of a system,
and it should never be removed.

No comments: