I use Mageia 5.1 64bit and I would like to know when I installed it ?
Asked
Active
Viewed 55 times
2 Answers
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.
-
But I always update my system, how do I know witch package never been updated ? – zarqos.os May 12 '17 at 14:17
-
this is the output : https://pastebin.com/ARLECZAQ – zarqos.os May 12 '17 at 14:30
-
The first and the 3rd gave me the same date : Mar 4 2016 thank you – zarqos.os May 12 '17 at 14:34
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