View previous topic :: View next topic |
Author |
Message |
psycho Guru


Joined: 22 Jun 2007 Posts: 549 Location: New Zealand
|
Posted: Tue Mar 18, 2025 12:46 am Post subject: Pros/cons of fresh install (vs upgrade) |
|
|
I imagine this has been asked many times, but if so I can't find the threads, and in any case it's the kind of thing that might change over time as the software evolves... so I'm going to ask it (again, probably). Are there any significant advantages to creating a fresh Gentoo system from scratch (via the handbook), over updating an old system?
This one is only four years old, so it looks like I gave in to the temptation to recreate it from scratch in 2021. I'm feeling that temptation again... a vague mistrust of portage, like a belief that major updates (profile changes, major DE version upgrades, etc.) will somehow leave little bits of junk around my system rather than keeping things pristine. Is there any real benefit at all if I give in to this temptation and create a fresh system, or does portage really do such a flawless job of updates that a fresh install will basically be identical to an old-but-updated system, except for the obvious fact that I'll have to sink a lot of time into setup and customisation that's already done if I just keep updating? I'm planning to clone this system onto several other boxes, so I do want it to be as tidy as possible before doing that: my instinct is to build from scratch because this "feels" tidier, but it's always quite a time-consuming job, so I don't want to do it if it's just an obsessive ritual with no real value (because portage is so scrupulous at purging unnecessary files and generally making updated systems just like new ones). |
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1533 Location: Richmond Hill, Canada
|
Posted: Tue Mar 18, 2025 1:35 pm Post subject: |
|
|
I do static gentoo setup (don't mean static /dev etc...) I don't sync /var/db/repos/gentoo, it is kept at the day the entire system built. This is because I want a stale system. I want my computer serve me for what I want to do, not to serving computer on what it tell me need to do.
because my usage is very simple, I just browse internet, use emacs for some automation coding. Use docker for experimental stuff, occupationally use VM for testing boot/kernel. I decide only update once a year and always rebuild from scratch. I maintain a /etc/portage/sets/stage4 for target nodes application installation. user data store on NFS servers.
So I find least concern on Gentoo rolling practice and I do want Gentoo's stability because there are many in community who do all the testing. for that I do grateful for Gentoo community and Gentoo's developer and maintainer. |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5501 Location: Bavaria
|
Posted: Tue Mar 18, 2025 1:47 pm Post subject: |
|
|
psycho,
IF you have on your old system a 17.0 or 17.1 profile THEN I suggest to do a new installation. Why? Because updating to the current 23.0 profile means you must do an "emerge -e" [*] ... you surely know what that does ... ... in my opinion, an update would take longer than a new installation. Just backup your /home and /etc to an external disk ... and copy back some (=not all) of your settings in /etc to the new machine.
*) number 16 of: https://www.gentoo.org/support/news-items/2024-03-22-new-23-profiles.html _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
 |
szatox Advocate

Joined: 27 Aug 2013 Posts: 3556
|
Posted: Tue Mar 18, 2025 3:40 pm Post subject: |
|
|
Well, long-overdue updates tend to take quite a bit of time too, and eventually become slower than a reinstall.
You might try to take a shortcut copying /etc and /var/lib/portage over to a new stage3, resetting the profile to a sane value (one matching the stage3) and running emerge @world.
Not sure how well it would actually go in practice, emerge will likely tell you to to flip some use flags or do some other changes via auto-unmask, but it should just be compilation afterwards. Even if emerge complains a bit, it looks much better than either of the "pure" options.*
* Assuming that you already know what you're doing, and that handbook you mentioned only serves you as a checklist. If you're not comfortable setting up a new system blindfolded, taking shortcuts will just confuse you. _________________ Make Computing Fun Again |
|
Back to top |
|
 |
Goverp Advocate


Joined: 07 Mar 2007 Posts: 2217
|
Posted: Tue Mar 18, 2025 4:48 pm Post subject: |
|
|
pingtoo wrote: | ... I don't sync /var/db/repos/gentoo, it is kept at the day the entire system built. This is because I want a stale system. ...
because my usage is very simple, I just browse internet, ... |
Are you really happy browsing the Internet with no security fixes for an entire year? That idea scares me. _________________ Greybeard |
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1533 Location: Richmond Hill, Canada
|
Posted: Tue Mar 18, 2025 5:03 pm Post subject: |
|
|
Goverp wrote: | pingtoo wrote: | ... I don't sync /var/db/repos/gentoo, it is kept at the day the entire system built. This is because I want a stale system. ...
because my usage is very simple, I just browse internet, ... |
Are you really happy browsing the Internet with no security fixes for an entire year? That idea scares me. |
I browse limited places I trust. I don't add extension to my browser. I let network firewall to protect network connectivity. For financial connectivity I use container and private browser for one time connection. This is about the daily computer I use. there are nodes on my home network whose protection I rely on vendor's support (TV, phone, router. ISP device).
I don't know when someone setup home infrastructure what were in their design decision, for me I sometime think when I am no longer available, how my family need to do for continue. I fell I cannot make home infrastructure too complex (beyond plug and play). I ran my home infrastructure for close to 30 years now and I think I am very lucky that I have yet to encounter a situation that I cannot recover within same day. so another word "simple" is incredible important for me. |
|
Back to top |
|
 |
|
|
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
|
|