How to find out the date an Arch system was installed?
I've seen various suggestions like checking for the oldest file in the root directory, or /etc, or /boot, and that it should indicate the installation date. But is there a more reliable or 'guaranteed' way to tell what date the installation happened?
About this post
- Posted
- Archived
- Score
- 30 · 100% up
- Kind
- Text
- ID
- 44fono
33 comments
Measure the length of your beard, divide by 6" per year.
:-)
no that’s not it. had something to do with slicing the machine open and counting the rings.
head /var/log/pacmangets you the date when first packages where installed, if you not cleared your logs.had to add .log onto that to get results, works well, thank you.
Arch used to use installer images instead of the current installation method, so if your installation is very, very old, this isn't reflective of the installation date.
I'm not sure when the switch was; pre-2011 though.
Not necessarily reliable, if you don't know the history of the physical item. Filesystems might have been changed, such as adding encryption, or copying system across to a new disk.
So the system being reinstalled. Stop being pedantic
This is a typical useless use of cat. You should better directly use grep:
Furthermore, as already suggested, you should better retrieve the first log entry using
head -n1.Thats true and I've heard it before. But using cat (or other commands) then pipe the output is more intuitive to my thinking. It uses more characters but it's not wrong eighter. Just my preference.
Deleted before we saved it.
A non-distro specific solution might be.
stat /The Access timestamp should be the date.As /lib is a symlink it won't get its time updated unless it's recreated. Assuming your system time was correct when you installed your system it should be set to install time. Just do: ls -l /lib
That gives me
2015-09-30 21:17:54, but if I dohead /var/log/pacman.loglike the other suggestion it shows2015-09-16 11:26, which is 2 weeks off. How could these 2 things be showing such different times?I just checked. It looks like some package changes do actually change /usr although I can't imagine why. /var/log/pacman.log seems a better bet.
I get the same time (Sep 30 21:17), so it can't be right.
this actually won't work very well. They changed the lib hierarchy sometime in 2012 - so for any installation older...
Why do you want to know?
Don't see why I was downvoted, I was just curious.
Deleted before we saved it.
Deleted before we saved it.