5

I use Mageia 5.1 64bit and I would like to know when I installed it ?

zarqos.os
  • 111
  • 1
  • 4

2 Answers2

2

Assuming that you still have at least one rpm package which was never updated since installation:

rpm -qa --last | tail

Otherwise you could check the / filesystem creation time, e.g. for ext* FS:

tune2fs -l /dev/sdaX  | grep -i created

Replcae sdaX with your root partition.

Or you may have luck to find it in your oldest log files:

ls -lt /var/log/

You may compare several dates of all the different commands above and if some of them agree then there are good chances that this is your installation date.

GAD3R
  • 63,407
  • 31
  • 131
  • 192
rudimeier
  • 9,967
  • 2
  • 33
  • 45
0

During the system install a lost + found will be created , check it with:

ls -ld /lost+found

Alternative answer from here , use the command:

ls -lct /etc | tail -1 | awk '{print $6, $7, $8}'

or

df / | awk '{print $1}' | grep dev | xargs tune2fs -l | grep create

or

dumpe2fs -h $(df | awk '/\/$/ {print $1}') | grep created
GAD3R
  • 63,407
  • 31
  • 131
  • 192