Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How old my Gentoo system is?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 246
Location: Rome, Italy

PostPosted: Sun Dec 18, 2011 12:21 pm    Post subject: How old my Gentoo system is? Reply with quote

Hello everybody.

I'm able enough to have NEVER need to RE-install Gentoo from scratch in a wide range of situations.
Example: my home computer has changed, the hardware is upgraded step by step and even in case of CPU changes, I kept the system, in the worst case recompling everything.
I manage many systems and it is usual for me, even more in server oriented ones.

So, I'm curious: when did I install a system?
How can I reenact the approximate date when I built my first, stage3, installation?

Any ideas?

Regards,
HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 5966

PostPosted: Sun Dec 18, 2011 12:34 pm    Post subject: Reply with quote

1/ some directories create by the install : look into your /mnt for floppy... or /boot (/var, /etc... might have change while /boot... should never)
2/ if you use an ext FS than chance you never reformat it are high too: tune2fs -l /dev/rootfspath | grep created
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2887
Location: Omnipresent

PostPosted: Sun Dec 18, 2011 12:42 pm    Post subject: Reply with quote

This is rather difficult on a Linux system, because the ext* filesystems store only the file access, change and modification dates, not the creation dates. Otherwise, you could just do "stat /var/lib/portage/world" or something.

Perhaps it's just easiest to look at when you joined the forums :P
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1591
Location: Just over the horizon

PostPosted: Sun Dec 18, 2011 12:54 pm    Post subject: Reply with quote

genlop -l will show you the dates you emerged all of your packages, including the first emerges you did.
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1170
Location: Austria

PostPosted: Sun Dec 18, 2011 12:58 pm    Post subject: Reply with quote

platojones wrote:
genlop -l will show you the dates you emerged all of your packages, including the first emerges you did.

genlop will parse the logfiles. If they were removed or cleaned out (tmpwatch?), no way to tell those first emerges either
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 9572
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Dec 18, 2011 1:11 pm    Post subject: Reply with quote

Well, the earliest lines of /var/log/emerge.log (which genlop parses) actually show you the date that the first component of the Stage3 tarball was built by catalyst, which will be at least somewhat earlier than your system install. On my oldest system, the first few lines of my /var/log/emerge.log show:
Code:
# head /var/log/emerge.log | awk -f ~/scripts/interp.awk
02/18/04 17:18:00: Started emerge on: Feb 18, 2004 22:18:00
02/18/04 17:18:00:  *** emerge --oneshot --nodeps ccache
02/18/04 17:18:00:  >>> emerge (1 of 1) dev-util/ccache-2.3 to /
02/18/04 17:18:00:  === (1 of 1) Cleaning (dev-util/ccache-2.3::/usr/portage/dev-util/ccache/ccache-2.3.ebuild)
02/18/04 17:18:01:  === (1 of 1) Compiling/Merging (dev-util/ccache-2.3::/usr/portage/dev-util/ccache/ccache-2.3.ebuild)
02/18/04 17:18:19:  === (1 of 1) Post-Build Cleaning (dev-util/ccache-2.3::/usr/portage/dev-util/ccache/ccache-2.3.ebuild)
02/18/04 17:18:19:  >>> AUTOCLEAN: dev-util/ccache
02/18/04 17:18:19:  --- AUTOCLEAN: Nothing unmerged.
02/18/04 17:18:19:  ::: completed emerge (1 of 1) dev-util/ccache-2.3 to /
02/18/04 17:18:19:  *** Finished. Cleaning up...
but I know I didn't start the install until 2005.

By the way, the little script I use to interpret the timestamps is
interp.awk:
#!/usr/bin/awk
{
    Len = length($1);
    Time = strftime("%D %T", substr($1, 1, Len - 1));
    Tail = substr($0, Len);
    print Time Tail;
}
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2887
Location: Omnipresent

PostPosted: Sun Dec 18, 2011 1:21 pm    Post subject: Reply with quote

Wouldn't logrotate kill older entries in emerge.log, just like in everything else?
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1170
Location: Austria

PostPosted: Sun Dec 18, 2011 1:29 pm    Post subject: Reply with quote

that's exactly what I pointed out earlier.
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 246
Location: Rome, Italy

PostPosted: Sun Dec 18, 2011 1:55 pm    Post subject: Reply with quote

Logs are managed/rotated, even emerge.log, so genlop has a short memory.
Also, changing CFLAGS, I did an emerge -e about one year ago.

To dig into /boot is a good idea.
Here at home, for example, I can find the symlink /boot/grub/menu.lst (2 sept 2008) that could be my last fresh installation.

Play with ls -lc and find or sort will give my oldest file.
(2 sept 2008 again)
Did I correctly managed my rsync during disk changes?

Another way (not my way) could be /etc/kernels/. But I don't have such a directory (it is managed by genkernel, I believe).

2008? I don't remember... :)

Regards,
HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 246
Location: Rome, Italy

PostPosted: Sun Dec 18, 2011 2:01 pm    Post subject: Reply with quote

What I learnt (later) is that emerge.log must be kept.
I manually rotate it once a year and I keep the previous year only... :cry:

HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 9572
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Dec 18, 2011 2:09 pm    Post subject: Reply with quote

Hypnos wrote:
Wouldn't logrotate kill older entries in emerge.log, just like in everything else?
Not if you tell it not to. :wink:

Edit: Correction. I've never modified logrotate's behavior with respect to /var/log/emerge.log: it just isn't part of the default logrorate configuration on my system. Has this been different for others?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 246
Location: Rome, Italy

PostPosted: Mon Feb 20, 2012 11:04 pm    Post subject: Reply with quote

My oldest file seems to be /etc/shells, April, 5, 2007.

With respect to my memory, it should be more realistc than the /boot/grub/menu.lst.

Bye,
HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
den_RDC
Apprentice
Apprentice


Joined: 25 Aug 2002
Posts: 166
Location: beercountry, Belgium;)

PostPosted: Sun Nov 12, 2017 10:21 pm    Post subject: How old is your gentoo system... Reply with quote

My gentoo install is dying - after a lot of update woes due to it not being used for half a year, i've decided I will no longer try to fix it and either reinstall or use another linux distro.

On the plus side, as far as I can tell from file age and memory, this system has been rolling since 2005 and thus managed a respectable 12 year lifetime. Any older installs around ?
_________________
Fan of the "Survivor Warriors of the Evil Empire of Bloody Destruction and Bloody Darkness"
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6345
Location: almost Mile High in the USA

PostPosted: Mon Nov 13, 2017 12:21 am    Post subject: Reply with quote

I'm still using my first installed Gentoo installation from ~2004 (maybe 2003) when I decided against Fedora after RH9 went lights out, and it's still going well as a 24/7 server. Granted it's no longer on a physical machine anymore, but it was not a fresh reinstall when that hardware was decommissioned and transferred to a virtual disk on newer hardware.

The only thing over those 13-14 years that almost got me to reinstall was the apache1 to apache2 upgrade. That was painful because I had so many customizations. Alas I eventually got through it.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
fturco
Guru
Guru


Joined: 08 Dec 2010
Posts: 489
Location: Italy

PostPosted: Mon Nov 13, 2017 1:59 pm    Post subject: Reply with quote

My Gentoo systems have been installed pretty recently (November 2016) even if I first started using Gentoo in January 2004. This is due to the fact that I sometimes become mentally weak and install other distributions... But I always come back to Gentoo sooner or later! :)
Back to top
View user's profile Send private message
Chiitoo
Moderator
Moderator


Joined: 28 Feb 2010
Posts: 1399
Location: Here and Away Again

PostPosted: Mon Nov 13, 2017 5:58 pm    Post subject: ><)))°€ Reply with quote

Running my first successful Gentoo installation from late 2010, though most of it has of course changed, and it has even moved from spinning rust to an SSD.

It also moved to using a different motherboard, CPU, and RAM (and soon back to the old for a while at least, as an RMA process is nigh).

Everything has been working very well, using 'unstable' since 2013 I think, but I may have to move to a clean, fresh-like installation soon due to an audio issue I'm having incredibly difficult time with tracking down...
_________________
Kind Regards,
~ The Noob Unlimited ~

Sore wa sore, kore wa kore.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 9572
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Nov 13, 2017 6:22 pm    Post subject: Reply with quote

Merged above 4 posts.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6345
Location: almost Mile High in the USA

PostPosted: Mon Nov 13, 2017 9:26 pm    Post subject: Reply with quote

I trimmed my emerge.log so that doesn't help (I stopped trimming when my disk space problem went away). The first entry, which is truncated, is now 2009. It's clearly truncated as the first entry is 13 of 14 which is very odd. I must have flushed logs during an emerge.

Thus I still don't really have proof of 2003-2004 first install other than a few 2004 directories that were left behind from an old baselayout or something. Maybe I have something from an 8mm backup tape that probably has dilapidated beyond readability :( Making dating difficult I still have cruft from my even older RH9 and older installs dated pre 2002, which I am fairly certain that I did not use Gentoo back then.

This machine had a fairly long history, it started as a single disk system when I was first learning about Gentoo, but subsequently got migrated without reinstall to a software RAID5. It got upgraded to another software RAID5 later on, and now resides on the aforementioned virtual machine, which is still sitting on yet another software RAID5. (no plans of SSD for this machine unless it's a bcache, this machine was meant to be a shellbox/fileserver...)
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 5957
Location: Saint Amant, Acadiana

PostPosted: Fri Nov 17, 2017 4:38 pm    Post subject: Gentoo nine lives Reply with quote

I have an Intel NUC here, being bored I started looking at files in /var. Found some stale files. From 2007, apparently this install is ten years old now. Hmmm ... this is rather new NUC, with SSD drive. I don't remember what was the first hardware I installed it on. I think it was an Atom box after that. And then another Atom. Then I discovered some news items from Funtoo, dated 2009. Apparently I converted from Funtoo to Gentoo at some point. Every time the hardware changed I obviously chose to rebuild it with new CFLAGS and new kernel instead of fresh install. Funny, ten years of history. At least 4 different boxes, maybe 5. Who knows how many hard drives.
_________________
Please learn how to denote units correctly!

Political Correctness is all about replacing imaginary injustice with real injustice.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6345
Location: almost Mile High in the USA

PostPosted: Fri Nov 17, 2017 5:01 pm    Post subject: Reply with quote

Had another thread merge recently.

https://forums.gentoo.org/viewtopic-t-905932-highlight-.html

It is faster this way to get a working system, and then later optimize it at leisure... and still end up with something similar to what you'd get when starting from scratch.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 9572
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Nov 17, 2017 6:50 pm    Post subject: Reply with quote

Merged above two posts.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2887
Location: Omnipresent

PostPosted: Sun Nov 19, 2017 1:14 am    Post subject: Reply with quote

Been running the same Gentoo Linux install from 2002 for personal tasks. It now lives on a VM on a Windows host, alongside a number of other Linux VMs for various dev tasks.

Of course, like Theseus's ship, it bears little resemblance to the original state ...

The earliest that any file on my system was last modified was 2005, found via:

Code:
# find / | xargs stat -c "%y %n" | sort -n

_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum