Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-05-2005, 02:52 AM   #1
Registered: Jun 2003
Location: Florence, SC
Distribution: Gentoo i386
Posts: 180

Rep: Reputation: 30
Prune Portage tree

In the months I've been using Gentoo, I've had very little trouble with package management via the Portage system. My portage tree is starting to consume a large portion of disk space, though; I've even had to give /usr/portage its own filesystem, which is now nearly full. Can I safely empty the /usr/portage directory without affecting the functionality of my installed software or the integrity of the portage system?
Old 02-05-2005, 03:47 AM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,795

Rep: Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157
I would suggest you spend some time on the gentoo forums
You may not be surprised to learn you are not the first to ask this question.
It is an *extremely* good community.
Old 02-05-2005, 03:39 PM   #3
Registered: Apr 2004
Location: Portugal
Distribution: Gentoo 2004.2 - working on LFS 6
Posts: 126

Rep: Reputation: 15
You can safely remove the packages in the /usr/portage/distfiles/ directory.
That directorty holds all the sources you donwload and so if you delete any of them you have to download it again if you want reinstall/modify the package ...

To a better way to this check

Its also safe to remove the files in /var/tmp/portage/ and in /var/tmp/portage-pkg/ as these dirs only holds temp archives of the compillation process ..

Note that all this info was learned from the gentoo forum and take a look at it as syg00 said is always helpfull ...
Old 02-05-2005, 04:03 PM   #4
Registered: Jun 2003
Location: Florence, SC
Distribution: Gentoo i386
Posts: 180

Original Poster
Rep: Reputation: 30
I hadn't noticed until you mentioned it that the distfile directory is what's really taking up all the space anyway. /var/tmp/portage is also rather large, though I find it rather curious it seemingly hasn't flushed itself EVER, if it really is a "temp" directory.

Anyway, thanks for the help. I'll be sure to explore the Gentoo forums for more information.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to prune a print & file server to leave minimal services running wolfpeach Linux - Security 4 06-29-2004 06:35 AM
Need help with some commands to prune files... smeenge Linux - Software 2 05-21-2004 05:10 PM
the bible = the tree of the knowledge of good and evil () Jesus = the tree of life Michael111 General 2 04-14-2004 04:28 PM
need a P-Tree (Patricia Tree) library manaskb Programming 1 11-02-2002 06:15 PM
How do I prune logs manually? Jonah W Linux - Newbie 1 08-29-2001 04:21 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration