Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cleaning out a gentoo-installation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
the_gummibear
n00b
n00b


Joined: 18 May 2005
Posts: 26
Location: Belgium

PostPosted: Fri Dec 29, 2006 12:56 pm    Post subject: Cleaning out a gentoo-installation Reply with quote

My current gentoo-installation dates from mid-august.
Since that date I never did any maintenance on my system, so now I'm wondering if there are tools to do so but above all, how to do so..

I can't remember doing maintenance-tasks on earlier installs either, but I'd like to keep the current one clean & running..

So, if needed, how can one clean out his installation?

Thanks in advance.
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Fri Dec 29, 2006 1:01 pm    Post subject: Reply with quote

What's wrong with
Code:

~# emerge --sync
~# emerge -puDN world


Fix up the blockers (you'll most likely get some) by writing down the packages that are installed and those that need to be installed, then run
Code:

~# emerge -C old-package
~# emerge --oneshot new-package

and this for each blocker-set.

Then update the rest of the system:
Code:

~# emerge -uDN world

_________________
Please add "[solved]" to the initial topic title when it is solved.
Back to top
View user's profile Send private message
the_gummibear
n00b
n00b


Joined: 18 May 2005
Posts: 26
Location: Belgium

PostPosted: Fri Dec 29, 2006 1:25 pm    Post subject: Reply with quote

Is there a way to detect unused packages? Don't know, dependencies of some packages that were not removed when the needed packages was removed etc?

& what can be considered as 'temporary'-files & can be removed without harming the system?
(as in portage, logs, ...)

No blockers found btw :) But quite some stuff to re-emerge.
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Fri Dec 29, 2006 1:27 pm    Post subject: Reply with quote

Emerge has a depclean option that shows you what packages it thinks are orphaned. If you run it (with pretend) you'll get a nice explanation on how certain emerge is ;-)

Code:

~# emerge --pretend --depclean


Temporary files can be found in /tmp and /var/tmp. Those can be cleared if unused. You can instruct your bootmisc initscript to clean up /tmp at boot-time, but I don't think it cleans up /var/tmp as well.

Logs can be removed without harming the system, but do they take up so much space? I always find it interesting to have my logs at hand (especially the emerge.log so that genlop/qlop can process it).
_________________
Please add "[solved]" to the initial topic title when it is solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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