Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why doesn't portage rm src dir?
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
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5362

PostPosted: Fri Jul 24, 2009 2:32 pm    Post subject: Why doesn't portage rm src dir? Reply with quote

I was just wondering why portage doesn't remove the src dirs when unmerging a specific version of a kernel source. After a while, you have a bunch of src dirs in /usr/src. I almost never need more than one and I end up doing rm -rvfd <src ver> to get rid of old, un-needed versions.
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Linux 'Tude Tees: http://moodytudetees.com/index.php/linux-tude-tees
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: Fri Jul 24, 2009 2:46 pm    Post subject: Reply with quote

AFAIK, it removes all the files actually installed by portage, but leaves all the files generated when you compiled your kernel.

If you check the sizes, kernel sources still installed should come to 300 to 400 mb, whereas those you've unmerged shouldn't be much more 50 mb.

I don't know if there's any more specific reason than this, but generally portage will never remove a file it didn't install itself, which is a reasonable policy.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5362

PostPosted: Fri Jul 24, 2009 5:43 pm    Post subject: Reply with quote

Aha. Or perhaps "d'oh!". :P

Thanks for the explanation. 8)

Hopeless wrote:
AFAIK, it removes all the files actually installed by portage, but leaves all the files generated when you compiled your kernel.

If you check the sizes, kernel sources still installed should come to 300 to 400 mb, whereas those you've unmerged shouldn't be much more 50 mb.

I don't know if there's any more specific reason than this, but generally portage will never remove a file it didn't install itself, which is a reasonable policy.

_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Linux 'Tude Tees: http://moodytudetees.com/index.php/linux-tude-tees
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9393

PostPosted: Sat Jul 25, 2009 2:50 am    Post subject: Reply with quote

If you build the kernel sources out of tree, then the /usr/src area will remain pristine and should be fully removed by Portage when you unmerge the corresponding version.
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2673
Location: here, there or in transit

PostPosted: Sat Jul 25, 2009 3:09 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads.
See old kernel removed from portage but not from /usr/src.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
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