Last system installation time

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Last system installation time
# 1  
Old 01-14-2008
Last system installation time

What is the best way to find the last installation time of an unix based systems?Please advise

Nagarajan G
# 2  
Old 01-14-2008
installation time of what ? Package, update, patch, or the OS, which is unknown at this time ?
# 3  
Old 01-14-2008
Originally Posted by sysgate
installation time of what ? Package, update, patch, or the OS, which is unknown at this time ?
I wanted to know the last os reinstalltion time.I would be happy to get answers to others as well

Nagarajan G
# 4  
Old 01-14-2008
That's why I asked what is the OS in question. If such option exists, it will depend on the OS. For example, I have recently installed Fedora 8, which has this file in the root folder - "install.log.syslog". If I cat the file, I can see that generic users / gropus have beed added :
<86>Oct 15 19:57:04 useradd[4660]: new group: name=mailnull, GID=47
<86>Oct 15 19:58:10 groupadd[4719]: new group: name=ntp, GID=38
. So, I know that I installed this fedora 8 on oct 15
# 5  
Old 01-14-2008
I am using Suse Linux,

uname -a
Linux sekac092 2.6.5-7.244-bigsmp #1 SMP Mon Dec 12 18:32:25 UTC 2005 i686 athlon i386 GNU/Linux

cat /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (i586)

Nagarajan G
# 6  
Old 01-15-2008
I have exact the same release, but it's way too customized. OK, you can try looking at the files : /var/adm/YaST/y2pm and /var/log/update-messages - these are the only ones I was able to find with unchanged time stamps.
# 7  
Old 01-15-2008
This is why I like to do a:
date > /etc/installationdate
after I install. (I do this after whatever I consider to be the installation... this includes some other software and patches if done immediately after the os installation and prior to my baseline backup.)

There may still be a way. Do a "ls -lc" on a few files that were part of the OS installation. Stuff in /lib, the init and cron programs, stuff like that. Unless all of this stuff has been patched, the earliest date may give you a clue. Problems with this include the fact the sytsem clock may have been way off during the install. But for a re-installation, there is a good chance that the hardware was keeping reasonable time. Do not use mod time "ls -l" because many installation procedures will set the mod time to whatever is on the installation media.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Time: Hwclock and System Time

Hey everyone. Upon studying linux trying to learn it inside and out, I'm reading about the issue of time. Hardware clock time vs the more commonly referenced System Time. What causes the two to grow apart, and what causes the time itself to stray away from UTC? at present my clock is a second and... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies

2. Shell Programming and Scripting

Additional time to system time

Hi All, Is there any command to add additional time to date command. I need to add 5 hours to the present system time. I am getting the time by using date command. WORKFLOW_START_TIME=`date +%m/%d/%Y\ %H:%M:%S` Thanks (8 Replies)
Discussion started by: nag_sathi
8 Replies

3. Solaris

System time and Cron time stamp not matching

On Solaris 10 server the system date won't match with the timestamp on files created by a cron jobs, Please help here is what i get when i check for system date infodba-ie10ux014:/tcpdv1_ie10/tcadmin/bin\n\r-> date Tue Apr 24 15:27:43 GMT 2012at same time i executed a cron job, and checked... (4 Replies)
Discussion started by: karghum
4 Replies

4. Shell Programming and Scripting

Automation script to reduce the installation time

DELETED. (0 Replies)
Discussion started by: vasuvv
0 Replies

5. AIX

IBM System Director Installation

Anyone has installed IBM System Director? May I have the procedures manual or any experiences can be shared? (1 Reply)
Discussion started by: kwliew999
1 Replies

6. HP-UX

Software installation on HP-UX system

Hello, I work on an oil rig offshore with limited resources at my disposal at the moment. We have been trying to repair one of our IMS stations, but no one out here is familiar with UNIX and our ABB service rep is spotty at best. The machine is an HP 9000 running HP-UX 10.20. We are trying... (2 Replies)
Discussion started by: abollmeyer
2 Replies

7. SCO

cannot change system files using installation CD

hi I'd like to change some system files on my SCO 5.0.6 for example: /var/opt/K/SCO/Unix/5.0.6Ga/etc/default/boot using 'tools' at the Boot: prompt from OpenServer Release 5.0.7 installation CD. I try to mount using this command: # mount /dev/hd0root /mnt and try to change it using... (3 Replies)
Discussion started by: ccc
3 Replies

8. AIX

installation of 5.2 on iBM p series system

Hi all, we have iBM p series server on that 4. 3 operating system is runing.but i need ti install 5.2 or 5.3 then i ahve to install oracle 10g release 2 .but we have only 1 GB of RAM.can i install 5.2 or 5.3 with same RAM and please send me a document which discribe about how to install... (5 Replies)
Discussion started by: younusdba
5 Replies

9. Solaris

getting time independent of system time in solaries

i am using function gethrtime() in sun solaries to get the time independent of the system time.Problem with this function is if we restart the system time will change to '0'.is there any other way to resolve this problem. thanks & regards suresh (3 Replies)
Discussion started by: suresh_rtp
3 Replies

10. Shell Programming and Scripting

System time comparison to fixed defined time

I have a requirement of checking the current system time and performing certain actions in a shell script. example: if the current system time is greater than 1400 hrs, then perform step 1,2,3 if the current system time is greater than 1000 hrs, then perform step 1,2 if the current system time... (2 Replies)
Discussion started by: zainravi
2 Replies
Login or Register to Ask a Question