Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
It bears re-remembering: kernel source packages...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
sundialsvc4
Guru
Guru


Joined: 10 Nov 2005
Posts: 433

PostPosted: Wed Apr 16, 2008 1:41 am    Post subject: It bears re-remembering: kernel source packages... Reply with quote

Okay, I was doing some cleanup and I was "re-reminded" of this little fact...

  1. 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.
  2. Nevertheless, portage remembers every version that was ever loaded...
  3. 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
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3753
Location: sleeping in the bathtub

PostPosted: Wed Apr 16, 2008 1:53 am    Post subject: Reply with quote

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
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 7820

PostPosted: Wed Apr 16, 2008 1:56 am    Post subject: Reply with quote

Moved from Kernel & Hardware to Documentation, Tips & Tricks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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