On Mon, Feb 27, 2012 at 2:49 PM, Nikos Chantziaras <rea...@arcor.de> wrote:
> On 28/02/12 00:41, Mark Knecht wrote:
>>
>> Are there any tools that will:
>>
>> 1) Ensure that for every installed packages there is a corresponding
>> tbz2 file in /usr/portage/packages?
>>
>> 2) Remove any older versions in /usr/portage/packages prior to me
>> running a backup?
>
>
> I think app-portage/gentoolkit can help with its "eclean" tool
> (specifically, "eclean-pkg").
>
> "man eclean" should get you started.
>
>

Thanks Nikos. That does seem to get me into the right space. I'm not
sure I'm understanding all the counts yet though. emerge suggest 992
packages. My simple count of existing packages is 994. eclean-pkg
wants to remove only 1. I had expected it to remove 2.

What might I be doing wrong here?

Also, this is raising an additional question for me. What's the
difference between buildpkg and buildsyspkg. man emerge doesn't talk
about the latter as best I can tell.

Thanks,
Mark

c2stable ~ # emerge -pve @world
<SNIP>

Total: 992 packages (992 reinstalls), Size of downloads: 0 kB
Fetch Restriction: 1 package
c2stable ~ #

c2stable ~ # ls -alR /usr/portage/packages | grep tbz2 | wc
    994    8946   66857
c2stable ~ #

c2stable ~ # eclean-pkg -p
 * Building file list for packages cleaning...
 * Here are the binary packages that would be deleted:
 [   23.1 K ] media-libs/libdiscid-0.1.1
 ===========
 [   23.1 K ] Total space from 1 files would be freed in the packages directory
c2stable ~ #

Reply via email to