[pacman-dev] pkgsum - Checksum package files against installed files
Xavier Chantry
chantry.xavier at gmail.com
Sun Nov 7 17:07:27 CET 2010
On Sun, Nov 7, 2010 at 2:54 PM, Pierre Schmitz <pierre at archlinux.de> wrote:
>
> For this to work one would need to check all installed packages and not
> only one. I also wonder how much space it would take to include all
> md5sums in e.g. the file lists.
>
$ echo $(( 33 * $(pacman -Ql | grep -v '/$' | wc -l)))
5900862
So 6MB.
But it's easy enough to test this for real too.
$ du -sk local
23468 local
$ du -sk --apparent-size local
13584 local
find local/ -name files | while read i; do
sed -i 's#\(^[^[:space:]]\+[^ /%]\)$#\1 33c2a4bda46c7cee498bb660084492dd#' $i
done
$ du -sk local
29016 local
$ du -sk --apparent-size local
19327 local
Who cares about the size of the local db anyway ?
More information about the pacman-dev
mailing list