On Sun, Nov 7, 2010 at 2:54 PM, Pierre Schmitz <[email protected]> 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 ?

Reply via email to