Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Idea for HOWTO: System Enema
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
greml!n
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 159

PostPosted: Tue Jun 21, 2005 11:37 am    Post subject: Idea for HOWTO: System Enema Reply with quote

I have an idea to write a HOWTO describing a Gentoo System Enema, for inclusion either on the forums or the wiki. The goal of this document is to describe how to cleanse a Gentoo system of the cruft that accumulates inevitably over time. Some of the processes I'd like to include are:


    revdep-rebuild - fix reverse dependencies (safely)

    emerge depclean - remove unused packages (safely)

    emerge system && emerge system && emerge world && emerge world (rebuild everything with your latest compiler)

    emerge world --newuse (rebuild packages with new USE settings)

    clean out /usr/src/ of old kernel trees


Are there any other processes I'm missing? Anything related to X, Gnome, KDE, or some of the larger packages?

Thanks for your suggestions. Hopefully I'll get some time to write this all out.
Back to top
View user's profile Send private message
pitcrawler
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 155
Location: Oklahoma, USA

PostPosted: Tue Jun 21, 2005 11:43 am    Post subject: Re: Idea for HOWTO: System Enema Reply with quote

Another couple of things:
    Delete all the old distfiles that are not in use (There are scripts that do it)

    Clear out /var/tmp/portage/
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Tue Jun 21, 2005 12:47 pm    Post subject: Reply with quote

I for one would:
Code:
# emerge --newuse world
# emerge --depclean
# revdep-rebuild
# emerge -e system && emerge -e world
Followed up by clearing kernel sources and removing old modules.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Jun 21, 2005 1:46 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo Chat since this isn't a support request.
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Tue Jun 21, 2005 3:20 pm    Post subject: Re: Idea for HOWTO: System Enema Reply with quote

greml!n wrote:
emerge depclean - remove unused packages (safely)
Ha.
Back to top
View user's profile Send private message
Shadow Skill
Veteran
Veteran


Joined: 04 Dec 2004
Posts: 1023

PostPosted: Tue Jun 21, 2005 5:36 pm    Post subject: Re: Idea for HOWTO: System Enema Reply with quote

spb wrote:
greml!n wrote:
emerge depclean - remove unused packages (safely)
Ha.
Isn't there a huge red warning as to how dangerous depclean is? I'm not sure how that makes it "safe" to use.....
_________________
Ware wa mutekinari.
Wa ga kage waza ni kanau mono nashi.
Wa ga ichigeki wa mutekinari.

"First there was nothing, so the lord gave us light. There was still nothing, but at least you could see it."
Back to top
View user's profile Send private message
greml!n
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 159

PostPosted: Tue Jun 21, 2005 5:42 pm    Post subject: Re: Idea for HOWTO: System Enema Reply with quote

Shadow Skill wrote:
spb wrote:
greml!n wrote:
emerge depclean - remove unused packages (safely)
Ha.
Isn't there a huge red warning as to how dangerous depclean is? I'm not sure how that makes it "safe" to use.....


Yeah, I intend to write sometihng like:

Quote:

emerge depclean -p
NOTE THE -p, DO NOT RUN THIS COMMAND WITHOUT IT

Review the list output and, if you choose to investigate, determine if hte package is actually used. [include more detail here]
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Phoenix, AZ USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Tue Jun 21, 2005 8:34 pm    Post subject: Reply with quote

mark_alec wrote:
I for one would:
Code:
# emerge --newuse world
# emerge --depclean
# revdep-rebuild
# emerge -e system && emerge -e world
Followed up by clearing kernel sources and removing old modules.


hmmm emerge -e world covers all of that already. Unless you are upgrading gcc/major toolchain components of course then do emerge -e system twice to lock down your toolchain then do emerge -e world.

Normally this is what I do when upgrading gcc/toolchain. I only ever emerge -e system/world when the toolchain gets upgraded.
Code:

emerge -D gcc
gcc-config <new gcc profile>
emerge -e system
etc-update
emerge -e system
etc-update
emerge <insert kernel you use here>
config/compile new kernel. reboot with new kernel
(if the kernel doesn't have an update available then just recompile the current one with the new toolchain)
emerge -e world
etc-update
reboot


spb, is this correct? I've been doing it this way for ages now and never had a problem. Is there a better/more correct way? We really need to get some official docs on this process to end all the confusion. Maybe a call out for the toolchain devs on the -dev mailing list is in order?


ps This thread is a MAJOR dupe of about 40 million other threads but, meh.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
screwloose
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2004
Posts: 94
Location: Toon Town, Canada

PostPosted: Tue Jun 21, 2005 8:58 pm    Post subject: Reply with quote

curtis119 wrote:

ps This thread is a MAJOR dupe of about 40 million other threads but, meh.


True but I'm not sure if any of them are really comprehensive. Shoot me if I'm wrong.
_________________
If something can go wrong it probably already has. You just don't know it yet. ~Henry's Modified version of Murphy's Law
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Tue Jun 21, 2005 8:59 pm    Post subject: Reply with quote

curtis119 wrote:
Code:

emerge -D gcc
gcc-config <new gcc profile>
emerge -e system
etc-update
emerge -e system
etc-update
emerge <insert kernel you use here>
config/compile new kernel. reboot with new kernel
(if the kernel doesn't have an update available then just recompile the current one with the new toolchain)
emerge -e world
etc-update
reboot


spb, is this correct? I've been doing it this way for ages now and never had a problem. Is there a better/more correct way? We really need to get some official docs on this process to end all the confusion. Maybe a call out for the toolchain devs on the -dev mailing list is in order?
It'll work, but it's massively over-the-top.
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Tue Jun 21, 2005 9:01 pm    Post subject: Reply with quote

screwloose wrote:
True but I'm not sure if any of them are really comprehensive. Shoot me if I'm wrong.
/me shoots screwloose
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Phoenix, AZ USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Tue Jun 21, 2005 10:12 pm    Post subject: Reply with quote

spb wrote:
It'll work, but it's massively over-the-top.


I'll take over-the-top vs WRONG any day! :D

So which steps, specifically, are over-the-top?
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Tue Jun 21, 2005 10:34 pm    Post subject: Reply with quote

curtis119 wrote:
So which steps, specifically, are over-the-top?
The multiple rebuilding in the wrong order and the repeated etc-update.
Look at https://forums.gentoo.org/viewtopic-t-282474.html and dispatch-conf.
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Phoenix, AZ USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Tue Jun 21, 2005 10:50 pm    Post subject: Reply with quote

psyqil wrote:
curtis119 wrote:
So which steps, specifically, are over-the-top?
The multiple rebuilding in the wrong order and the repeated etc-update.
Look at https://forums.gentoo.org/viewtopic-t-282474.html and dispatch-conf.


Wrong order? in that thread robmoss says to do -e system twice in a row and then -e world twice in a row AFTER an update of any major toolchain update. so...... how am I doing it in the wrong order?
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Tue Jun 21, 2005 10:58 pm    Post subject: Reply with quote

psyqil wrote:
Look at https://forums.gentoo.org/viewtopic-t-282474.html
:mrgreen:
Quote:
[...]
and the above build order is just plain wrong. From above its binutils, gcc, libstdc++, linux26-headers, and glibc which is halfway ass backwards. The order should be linux-headers, glibc, binutils, gcc, libstdc++. This is why robs method is correct, though a pain. 1st time through emerge system builds linux-headers then glibc, 2nd time through linux-headers and glibc nailing down glibc. Then rob does emerge world -e twice building binutils and gcc against twice built glibc giving you your basic stable toolchain and then emerges everything else with the stable toolchain. Talk about a haveing a house built by the Three Stoges, and I'm not refereing to Rob. Does this cause probs yes. Lots of them, probably not. If it did there would be alot of bugs on it and it would have been noticed by now. The only time this would become supect is if you update linux-headers possibly and more likely when you upgrade glibc. Unless portage is changed this will be a continueing problem. There is a way to deal with it but you have to do it manually.
[...]
Back to top
View user's profile Send private message
Shadow Skill
Veteran
Veteran


Joined: 04 Dec 2004
Posts: 1023

PostPosted: Tue Jun 21, 2005 11:05 pm    Post subject: Reply with quote

Couldn't a script be made to handle the toolchain rebuilding so that it is done correctly for the users, I think that it would end all of the confusion. Is it really nessecary to rebuild everything in the world file as well as the system file? I'm actually tempted to just do a totally clean install of Gentoo even though nothing is seriously broken that I can see. :D
_________________
Ware wa mutekinari.
Wa ga kage waza ni kanau mono nashi.
Wa ga ichigeki wa mutekinari.

"First there was nothing, so the lord gave us light. There was still nothing, but at least you could see it."
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Tue Jun 21, 2005 11:28 pm    Post subject: Reply with quote

8O Would somebody please bother to click this link?
psyqil wrote:
Look at https://forums.gentoo.org/viewtopic-t-282474.html
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3343

PostPosted: Tue Jun 21, 2005 11:38 pm    Post subject: Reply with quote

yeah a script would be better
_________________
"Sex: breakfast of champions" - James Hunt
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Phoenix, AZ USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Tue Jun 21, 2005 11:42 pm    Post subject: Reply with quote

psyqil wrote:
8O Would somebody please bother to click this link?
psyqil wrote:
Look at https://forums.gentoo.org/viewtopic-t-282474.html


I agree. This thread is turning into that thread. Moved to Dupes. Please use the above thread for further discussion and for a script that ALREADY exists.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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