1 |
On Mon, Feb 27, 2012 at 2:49 PM, Nikos Chantziaras <realnc@×××××.de> wrote: |
2 |
> On 28/02/12 00:41, Mark Knecht wrote: |
3 |
>> |
4 |
>> Are there any tools that will: |
5 |
>> |
6 |
>> 1) Ensure that for every installed packages there is a corresponding |
7 |
>> tbz2 file in /usr/portage/packages? |
8 |
>> |
9 |
>> 2) Remove any older versions in /usr/portage/packages prior to me |
10 |
>> running a backup? |
11 |
> |
12 |
> |
13 |
> I think app-portage/gentoolkit can help with its "eclean" tool |
14 |
> (specifically, "eclean-pkg"). |
15 |
> |
16 |
> "man eclean" should get you started. |
17 |
> |
18 |
> |
19 |
|
20 |
Thanks Nikos. That does seem to get me into the right space. I'm not |
21 |
sure I'm understanding all the counts yet though. emerge suggest 992 |
22 |
packages. My simple count of existing packages is 994. eclean-pkg |
23 |
wants to remove only 1. I had expected it to remove 2. |
24 |
|
25 |
What might I be doing wrong here? |
26 |
|
27 |
Also, this is raising an additional question for me. What's the |
28 |
difference between buildpkg and buildsyspkg. man emerge doesn't talk |
29 |
about the latter as best I can tell. |
30 |
|
31 |
Thanks, |
32 |
Mark |
33 |
|
34 |
c2stable ~ # emerge -pve @world |
35 |
<SNIP> |
36 |
|
37 |
Total: 992 packages (992 reinstalls), Size of downloads: 0 kB |
38 |
Fetch Restriction: 1 package |
39 |
c2stable ~ # |
40 |
|
41 |
c2stable ~ # ls -alR /usr/portage/packages | grep tbz2 | wc |
42 |
994 8946 66857 |
43 |
c2stable ~ # |
44 |
|
45 |
c2stable ~ # eclean-pkg -p |
46 |
* Building file list for packages cleaning... |
47 |
* Here are the binary packages that would be deleted: |
48 |
[ 23.1 K ] media-libs/libdiscid-0.1.1 |
49 |
=========== |
50 |
[ 23.1 K ] Total space from 1 files would be freed in the packages directory |
51 |
c2stable ~ # |