[opensuse] (SUSE) Linux install date.
Hi, I have several computers, mainly older SUSE 9.x and 10.x releases to administer and I simply forgot when any of these systems has been installed. On a Hungarian list I received a reply to do 'ls -ld /' to see the age of the file-system (installation date if fresh install), others suggested to go for 'ls -l /etc/SuSE-release', but none of these really works and gives me that particular date. Further idea would be to ship this date from the rpm database via 'rpm -qa --last | tail', which in fact works and looks OK on a single machine, but I'm not sure if the date would be still OK, if in the meantime the very first rpms would have been removed/updated/etc. Any idea please to do such analysis for a existing system's age?! (Please do not answer asking why the above systems are not updated; most of the systems have no internet connection or work via 56k mo- dem line and so outdated machines ~p2 would not work properly with the new shiny and mega-large openSUSE releases.) Thanks, Pelibali -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
pelibali wrote:
Hi,
I have several computers, mainly older SUSE 9.x and 10.x releases to administer and I simply forgot when any of these systems has been installed. On a Hungarian list I received a reply to do 'ls -ld /' to see the age of the file-system (installation date if fresh install), others suggested to go for 'ls -l /etc/SuSE-release', but none of these really works and gives me that particular date. Further idea would be to ship this date from the rpm database via 'rpm -qa --last | tail', which in fact works and looks OK on a single machine, but I'm not sure if the date would be still OK, if in the meantime the very first rpms would have been removed/updated/etc.
Any idea please to do such analysis for a existing system's age?! (Please do not answer asking why the above systems are not updated; most of the systems have no internet connection or work via 56k mo- dem line and so outdated machines ~p2 would not work properly with the new shiny and mega-large openSUSE releases.)
in a few directories like / /etc /etc/init.d /lib try running: ls -alt. Be advised that SOME files will show up with dates older than your filesystem, because of the way RPM works. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 06 April 2008 12:06:27 pelibali wrote:
Hi,
I have several computers, mainly older SUSE 9.x and 10.x releases to administer and I simply forgot when any of these systems has been installed. On a Hungarian list I received a reply to do 'ls -ld /' to see the age of the file-system (installation date if fresh install), others suggested to go for 'ls -l /etc/SuSE-release', but none of these really works and gives me that particular date. Further idea would be to ship this date from the rpm database via 'rpm -qa --last | tail', which in fact works and looks OK on a single machine, but I'm not sure if the date would be still OK, if in the meantime the very first rpms would have been removed/updated/etc.
Any idea please to do such analysis for a existing system's age?! (Please do not answer asking why the above systems are not updated; most of the systems have no internet connection or work via 56k mo- dem line and so outdated machines ~p2 would not work properly with the new shiny and mega-large openSUSE releases.)
If the file system on / is ext2 or 3 you can do dumpe2fs -h on it and see when it was created Filesystem created: Wed Oct 10 18:27:53 2007 for example, is what it says on my machine. Anders -- Madness takes its toll -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 2008-04-06 12:06, pelibali wrote:
I have several computers, mainly older SUSE 9.x and 10.x releases to administer and I simply forgot when any of these systems has been installed. On a Hungarian list I received a reply to do 'ls -ld /' to see the age of the file-system (installation date if fresh install), others suggested to go for 'ls -l /etc/SuSE-release', but none of these really works and gives me that particular date.
Since I did not use the yast package AT ALL except on initial install (must have been 8.2), I know the result: 12:59 yaguchi:/var/lib/YaST2 > l -rt total 48 drwxr-xr-x 3 root root 4096 Dec 17 22:12 . drwx--x--x 2 root root 21 Dec 17 22:12 backup_boot_sectors drwxr-xr-x 46 root root 4096 Mar 26 20:15 .. -rw-r--r-- 1 root root 393 Jun 1 2003 install.inf comes pretty close. The current box, I bought in April 2003 or so..
Further idea would be to ship this date from the rpm database via 'rpm -qa --last | tail', which in fact works and looks OK on a single machine, but I'm not sure if the date would be still OK, if in the meantime the very first rpms would have been removed/updated/etc.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Anders Johansson
-
Jan Engelhardt
-
pelibali
-
Sam Clemens