1 |
I never do `rm -f /usr/portage/distfiles'. I find very useful having the |
2 |
sources of the installed packages ihandy as it avoids downloading |
3 |
everything over andagain when updating to new releases of the same |
4 |
version, or when installing Gentoo on another system. But after some |
5 |
time that directory gets too fat and is too boring to eliminate the |
6 |
deprecated packages by hand so I've made a script to automate this. You |
7 |
can see it attached. |
8 |
|
9 |
I've started with a shell script, then python, then I've read qpkg.sh, |
10 |
ebuild.sh, portage.py and many others in the search of the easiest way |
11 |
to do this. In the end everything boiled down to 2 lines - the rest is |
12 |
just sintatic sugar! |
13 |
|
14 |
I hope you enjoy it. |
15 |
|
16 |
José Fonseca |