gitian-builder/target-bin/grab-packages.sh
2011-01-30 13:19:02 -08:00

13 lines
224 B
Bash

#!/bin/sh
# Get an installed package manifest
set -e
cd /var/cache/apt/archives
#apt-get clean
dpkg-query -W -f '${Package}\n' | xargs -n 50 apt-get install --reinstall -y -d > /dev/null
sha256sum *.deb | sort --key 2