#!/bin/sh mkdir -p /tmp/debian-depends find /tmp/debian-depends -type f -mtime +1 -delete if [ ! -e /tmp/debian-depends/Packages ] then echo -n "Downloading package indices... " for DISTRIBUTION in unstable experimental do for SECTION in main contrib non-free non-free-firmware do for ARCHITECTURE in amd64 all do echo -n "." wget -q https://mirror.init7.net/debian/dists/${DISTRIBUTION}/${SECTION}/binary-${ARCHITECTURE}/Packages.xz -O - | xzcat - >> /tmp/debian-depends/Packages done done done echo " done." fi for PACKAGE in ${@} do grep --color=always ${PACKAGE} /tmp/debian-depends/Packages done