Grimoire-Command.es

GNU+Linux command memo

Download a .deb package and its dependencies

Télécharger un paquet Debian et ses dépendances

./get_deb_depends.sh $package_name [$wanted_architecture]

Sources available here:

pkg_name=$1
arch=$2 || 'amd64'

for dep in `apt-rdepends "$pkg_name" | grep -v "^ "`; do
    apt-get download "$dep":"$arch"
done

apt-get download "$pkg_name":"$arch"