Re: Size of a du index for packages (Complete index = 74 K)
Manoj Srivastava <srivasta@datasync.com> writes:
> Hi,
> Could you please release the bash scripts? I find the data
> fascinating.
Here we go:
#!/bin/bash
cd <debian mirror>/hamm/hamm/binary-i386/
# Go through all deb files
for FILE in */*.deb; do
echo Processing $FILE
echo "---" $FILE >> packages.du
mkdir tmp
cd tmp
ar -x ../$FILE data.tar.gz
tar -xzf data.tar.gz
rm data.tar.gz
du >> ../packages.du
cd ..
rm -rf tmp
done
> manoj
May the Source be with you.
Mrvn
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: