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

Joined: 10 Nov 2005 Posts: 436
|
Posted: Wed Apr 16, 2008 1:41 am Post subject: It bears re-remembering: kernel source packages... |
|
|
Okay, I was doing some cleanup and I was "re-reminded" of this little fact...
- Kernel-source packages are, of course, cumulative. In other words (and for very obvious reasons) installing a new package doesn't remove the old one.
- Nevertheless, portage remembers every version that was ever loaded...
- Therefore, the "right way" to get rid of unused kernel-source versions is to un-merge the package.
There was a rather-amazing amount of "detrius" in the kernel-source package list, because ... mea culpa ... I'd just rm -f the unwanted kernel-source directories. Oops. I mean, it doesn't hurt anything as far as I know, but you probably don't want Portage thinking that stuff is still on your system when it's not. |
|
Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3789 Location: sleeping in the bathtub
|
Posted: Wed Apr 16, 2008 1:53 am Post subject: |
|
|
I used to do that too (simply rm /usr/src/whatever), but it's a habit I broke a good while ago.
Good thing is portage didn't seem to complain when you "emerge -C" the old versions. even though the files are already gone...
The "-P" or "--prune" emerge flag is useful here, as it keeps the most current version of slotted packages and removes the rest. _________________ "You have to invite me in" |
|
Back to top |
|
 |
desultory Administrator

Joined: 04 Nov 2005 Posts: 8889
|
Posted: Wed Apr 16, 2008 1:56 am Post subject: |
|
|
Moved from Kernel & Hardware to Documentation, Tips & Tricks. |
|
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
|
|