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


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.

|improve this answer|||||
  • 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 : 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

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}'


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


dumpe2fs -h $(df | awk '/\/$/ {print $1}') | grep created
|improve this answer|||||
  • 1
    All these commands gave me the same date : Mar 4 2016 thank you – zarqos.os May 12 '17 at 14:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.