View previous topic :: View next topic |
Author |
Message |
the_gummibear n00b
Joined: 18 May 2005 Posts: 26 Location: Belgium
|
Posted: Fri Dec 29, 2006 12:56 pm Post subject: Cleaning out a gentoo-installation |
|
|
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 |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Fri Dec 29, 2006 1:01 pm Post subject: |
|
|
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 |
|
|
the_gummibear n00b
Joined: 18 May 2005 Posts: 26 Location: Belgium
|
Posted: Fri Dec 29, 2006 1:25 pm Post subject: |
|
|
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 |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Fri Dec 29, 2006 1:27 pm Post subject: |
|
|
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 |
|
|
|