[arch-general] Script for finding and "moving" older duplicate packages from /var/cache/pacman/pkg

Xavier shiningxc at gmail.com
Tue Aug 25 15:15:24 UTC 2009


On Tue, Aug 25, 2009 at 5:03 PM, Patrick Brisbin<pbrisbin at gmail.com> wrote:
> On 08/25/09 at 04:45pm, Thomas Bächler wrote:
>> Patrick Brisbin schrieb:
>>> A while back i wrote a similar script which extracts the .PKGINFO file
>>> from each package in one's cache. slow, but I think this is a more
>>> accurate way to compare versions.
>>
>> We had that discussion on arch-dev-public a while ago. makepkg always puts
>> .PKGINFO to the beginning of the tarball. Also, tar and bsdtar both have
>> options to ensure that after the file is found, they stops extracting -
>> therefore, the .PKGINFO file will be extracted instantly, independent of
>> package size. Look at the tar or bsdtar manpages, unfortunately I forgot
>> exactly how it works.
>>
>
> WOW!
>
> tar -xf on a 3 GB cache -> 1m 42s
>
> bsdtar -qxf on the same cache -> 0m 9s
>
> awesome.
>

according to the man pages I just read online, --fast-read should work for both.


More information about the arch-general mailing list