Installation date

Just a quick question here,

Does anyone know how to determine the actual date and time that one
originally installed an operating system?

I installed openSUSE 12.2 (clean install) sometime back in August or
September. I would like to record the actual date.

My /var folder shows adate of August 25, 2012when I type ls-l. But I
don’t know if that is the actual creation date, and if it is, was it the
date the folder was created at the factory before I installed 12.2, or
is it the date I installed 12.2?

Is there a better way to figure this out?


G.O.
Box #1: 12.2 | KDE 4.9.2 | AMD Phenom IIX4 | 64 | 16GB
Box #2: 12.2 | KDE 4.9.1 | AMD Athlon X3 | 64 | 4GB
Laptop: 12.2 | KDE 4.9.2 | Core i7-2620M | 64 | 8GB
learning openSUSE and loving it

Some of the oldest files in “/var/log/YaST2” will be install logs. Look at the oldest y2log-* and there will probably be other files with a similar time/date.

I’m not sure about install from a live KDE or Gnome, as some of the logs might be for preparing the live system.

/var/log/zypp/history

On 03/12/2013 01:46 PM, nrickert wrote:
> Some of the oldest files in “/var/log/YaST2” will be install logs. Look
> at the oldest y2log-* and there will probably be other files with a
> similar time/date.
>
> I’m not sure about install from a live KDE or Gnome, as some of the
> logs might be for preparing the live system.
>
>
Ok, that is great. I found out what I needed to know on the installation
of my upgrade.

Now here is another question - is there a way to find out the date on
which I partitioned the hard drive on my laptop? I set up new partitions
on it when I first got it before installing my operating systemso that I
could run dual boot with Windows 7 and openSUSE.


G.O.
Box #1: 12.2 | KDE 4.9.2 | AMD Phenom IIX4 | 64 | 16GB
Box #2: 12.2 | KDE 4.9.1 | AMD Athlon X3 | 64 | 4GB
Laptop: 12.2 | KDE 4.9.2 | Core i7-2620M | 64 | 8GB
learning openSUSE and loving it

Now here is another question - is there a way to find out the date on
which I partitioned the hard drive on my laptop? I set up new partitions
on it when I first got it before installing my operating systemso that I
could run dual boot with Windows 7 and openSUSE.

I don’t know
And I doubt it

If your filesystem is ext4[3,2] it is simple to find out when a filesystem was created.

tune2fs -l /dev/sdaX | grep "Filesystem created"

…where X is the number of the partition. That is also the simplest way to find out the date of installation, because before installation the partition will mostly be formatted.

On 2013-03-12 06:56, caf4926 wrote:
>
> /var/log/zypp/history

Or the timestamp of the first line in the older /var/log/messages*gz
file, assuming it has not rotated out.

Or the timestamp of the file /etc/SuSE-release

There are several places, check them all, and if they match, you got it :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

I doubt that.

ls -l /etc/SuSE-release
-rw-r--r-- 1 root root 56 29. Aug 2012  /etc/SuSE-release

And I installed this version on the current running system at 2012-11-16

tune2fs -l /dev/sda2 | grep "Filesystem created"
Filesystem created:       Fri Nov 16 12:59:21 2012

The timestamp of /etc/SuSE-release is even earlier than the release date.