How can I find the installation date of my Red Hat Enterprise Linux system ?

==>Environment

Red Hat Enterprise Linux 3 / 4 / 5/ 6

==>Issue

How can I find the installation date of my Red Hat Enterprise Linux system?

==>Resolution

There are various method by which you can find when your system was installed.

One method is to get the package details of the "basesystem" package:

# rpm -qi basesystem

In the output you can see the installation date:

Install Date: Wed 07 Jan 2009 04:23:27 AM IST

The "basesystem" rpm defines the components of a basic Red Hat Enterprise Linux system (for example, the package installation order to use during
bootstrapping). This rpm does not provide any files. Basesystem should be the first package installed on a system and it should never be removed.

Since this package is never removed or updated , the install date of this package indicates the install date of the system.

Other methods include checking the creation date of the files "install.log" in the /root directory or "anaconda.*" logs in the /var/log directory:

# ls -l /root/install.log
# ls -l /var/log/anaconda.*

But since these files can be accidentally deleted, finding the installation date can be best accomplished using the "basesystem" rpm.

No comments: