Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Please advice – how to verify OS (linux / solaris ) installation creation date

which file/packages/other – can be good indication when the operation system was created/installed ?

For example

I installed the linux 5.5 in date 23/10/2012 , How to verify in my linux this date ? ( the same question about solaris 10 )

share|improve this question
    
do you mean RedHat Enterprise Linux 5.5 ? –  LiuYan 刘研 Nov 27 '12 at 9:42
    
yes - but my question should be relevant for all Linux versions ( from 5.0 until latest version ) –  yael Nov 27 '12 at 9:44
add comment

2 Answers

up vote 0 down vote accepted

The best 2 solutions:

  1. Look at your root file system creation. For ext2 and ext3 you should use

    dumpe2fs /dev/sdX1 | grep "Filesystem created:"

If you use XFS on solaris you should follow the same approach (probably xfs_db ?)

  1. Find the installer log. there you will find files what are write in the moment of installation. In ubuntu for example I have /var/log/installer/lsb-release and the date of this file shows me the date of system installation.

Solution 1 is the absolute solution.

http://superuser.com/questions/402550/how-do-i-view-the-os-installation-date-on-linux

share|improve this answer
add comment

try with long listing of /bin /sbin files. check the dates of binaries there, you will get a hint.

I think in Solaris /bin is a link to /usr/bin

anyways listing dates of binaries can turn out to be useful.

share|improve this answer
    
I need absolute solution so I will add the rule in my shell script –  yael Nov 27 '12 at 9:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.