Saturday, April 14, 2007

HOWTO cleanup gentoo portage distfiles, packages that are unused (eclean)

eclean can be your friend, it is a part of the gentoolkit. If you don't have the gentoolkit: emerge gentoolkit.

eclean can cleanup distribution files and packages. Because you are a regular emerge --sync, emerge --update --deep --ask world sort of person, you will likely be using disk space on all those old packages you have upgraded out of.

eclean distfiles
eclean packages



DESCRIPTION

eclean is small tool to remove obsolete portage sources files and binary packages. Used on a regular basis, it prevents your DISTDIR and PKGDIR directories to infinitely grow, while not deleting files which may still be useful.

By default, eclean will protect all distfiles or binary packages corresponding to some ebuilds available in the Portage tree. This is the safest mode, since it will protect whatever may still be useful, for instance to downgrade a package without downloading its sources for the second time, or to reinstall a package you unmerge by mistake without recompiling it. Sure, it's also a mode in which your DISTDIR and PKGDIR will stay rather big (although still not growing infinitly). For the 'distfiles', this mode is also quit slow mode because it requiries some access to the whole Portage tree.

If you use the --destructive option, eclean will only protect files corresponding to some currently installed package (taking their exact version into account). It will save much more space, while still preserving sources files around for minor revision bumps, and binaries for reinstallation of corrupted packages. But it won't keep files for less usual operations like downgrading or reinstalling an unmerged package. This is also the fastest execution mode (big difference for distfiles), and the one used by most other cleaning scripts around like yacleaner (at least in its version 0.3).

Somewhere in the middle, adding the --package-names option when using --destructive will protect files corresponding to all existing versions of installed packages. It will allow easy downgrading without recompilation or redownloading in case of trouble, but won't protect you against package uninstallation.

In addition to this main modes, some options allow to declare a few special cases file protection rules:

o
--time-limit is useful to protect files which are more recent than a given amount of time.
o
--size-limit (for distfiles only) is useful if you want to protect files bigger than a given size.
o
--fetch-restricted (for distfiles only) is useful to protect manually downloaded files. But it's also very slow (again, it's a reading of the whole Portage tree data)...
o
Finally, you can list some categories or package names to protect in exclusion files (see EXCLUSION FILES below).

Keywords:gentoo, portage, cleanup, portage cleanup, eclean, cleanup portage directory, cleanup portage storage /usr/portage/distfiles, /usr/portage/distfiles, cleanup of /usr/portage/distfiles

7 comments:

Ethel Miller said...

Good information about eclean tool to remove obsolete portage sources files and binary packages.............

Ethil Miller
www.callcentersindia.net

jessica said...

Hey

You have a wonderful Blog. I really enjoyed reading it. I was bored and I started searching for different Blogs and I happen to come across your blog. I bet a lot of people would like to read this blog, I get a lot of free traffic hits from http://www.autosurfmonster.com if I were you I would submit this blog to them so thousands of others can see it. Well I wish you warm regards and continued success. I have added your blog to my favorites so I will look forward to all the updates. Thanks again

Jessica

Amiene Rev said...

what is fedora?

Paul Cooley said...

Fedora is one of the Linux Distributions
Wikipedia Article about Fedora

helen said...

I have read your blog carefully and like it a lot! We have the same opnion! Could you check my blog at: www.muslimfriends.com/i/free to check my blog title: helenwang`s blog"? May be we can talk further and be friends.

sex said...

徵信社
情趣用品
情趣用品
情趣用品
情趣
情趣


SM
充氣娃娃


SM
性感睡衣


免費視訊聊天室
aio交友愛情館
愛情公寓
情色貼圖
情色文學
情色小說
情色電影
情色論壇
成人論壇
辣妹視訊
視訊聊天室
情色視訊
免費視訊

免費視訊聊天
視訊交友網
視訊聊天室
視訊美女
視訊交友
ut聊天室
聊天室
豆豆聊天室
尋夢園聊天室
聊天室尋夢園
080聊天室
080苗栗人聊天室
女同志聊天室

上班族聊天室
小高聊天室






免費視訊聊天
免費視訊聊天室
免費視訊
ut聊天室
聊天室
豆豆聊天室 聊天室尋夢園
影音視訊聊天室


色情遊戲
寄情築園小遊戲
情人視訊網
辣妹視訊
情色交友

成人論壇
情色論壇
愛情公寓
情色
色情聊天室
色情小說
做愛
做愛影片
性愛


一葉情貼圖片區
情趣用品


辣妹視訊
美女視訊
視訊交友網
視訊聊天室
視訊交友
視訊美女

ed said...

一夜情聊天室,一夜情,情色聊天室,情色,美女交友,交友,AIO交友愛情館,AIO,成人交友,愛情公寓,做愛影片,做愛,性愛,微風成人區,微風成人,嘟嘟成人網,成人影片,成人,成人貼圖,18成人,成人圖片區,成人圖片,成人影城,成人小說,成人文章,成人網站,成人論壇,情色貼圖,色情貼圖,色情A片,A片,色情小說,情色小說,情色文學,寄情築園小遊戲, 情色A片,色情影片,AV女優,AV,A漫,免費A片,A片下載

情色,A片,AIO,AV,日本AV,色情A片,AV女優,A漫,免費A片,A片下載,情色A片,哈啦聊天室,UT聊天室,聊天室,豆豆聊天室,色情聊天室,尋夢園聊天室,080視訊聊天室,080聊天室,080苗栗人聊天室,免費視訊聊天,上班族聊天室,080中部人聊天室,視訊聊天室,視訊聊天,成人聊天室,一夜情聊天室,辣妹視訊,情色視訊,成人,成人影片,成人光碟,成人影城,自拍

A片,AIO,AV,日本AV,色情A片,AV女優,A漫,AIO交友愛情館,線上A片,免費A片,A片下載,情色A片,微風成人,嘟嘟成人網,成人,成人影片,成人光碟,成人影城,成人交友,愛情公寓,色情聊天室,情色貼圖,色情,色情影片,做愛,情色,哈啦聊天室,聊天室,UT聊天室,豆豆聊天室,尋夢園聊天室,080視訊聊天室,080聊天室,080苗栗人聊天室,自拍,性愛

情趣用品,情趣用品,情趣,情趣,A片,A片,情色,A片,A片,情色,情趣用品,情趣用品,A片,A片,情色,情色

情色視訊,美女視訊,辣妹視訊,視訊聊天室,視訊交友網,免費視訊聊天,視訊交友90739,視訊,免費視訊,情人視訊網,視訊辣妹,影音視訊聊天室,視訊交友,視訊聊天,免費視訊聊天室,成人視訊,UT聊天室,聊天室,豆豆聊天室,色情聊天室,尋夢園聊天室,聊天室尋夢園,080聊天室,080苗栗人聊天室,上班族聊天室,小高聊天室

6K聊天室,080中部人聊天室,聊天室交友,成人聊天室,中部人聊天室,情色聊天室,AV女優,AV,A片,情人薇珍妮,愛情公寓,情色,情色貼圖,情色文學,色情小說,色情,寄情築園小遊戲,AIO交友愛情館,情色電影,一葉情貼圖片區,色情遊戲

言情小說,情色論壇,色情網站,微風成人,成人電影,嘟嘟成人網,成人,成人貼圖,成人交友,成人圖片,18成人,成人小說,成人圖片區,微風成人區,成人網站,免費影片,色情影片,自拍,hilive,做愛,微風成人,微風論壇,AIO