summaryrefslogtreecommitdiffstats
path: root/bin/debian-depends
diff options
context:
space:
mode:
Diffstat (limited to 'bin/debian-depends')
-rwxr-xr-xbin/debian-depends23
1 files changed, 23 insertions, 0 deletions
diff --git a/bin/debian-depends b/bin/debian-depends
new file mode 100755
index 0000000..0d06bce
--- /dev/null
+++ b/bin/debian-depends
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+mkdir -p /tmp/debian-depends
+find /tmp/debian-depends -type f -mtime +1 -delete
+
+if [ ! -e /tmp/debian-depends/Packages ]
+then
+ for DISTRIBUTION in unstable experimental
+ do
+ for SECTION in main contrib non-free non-free-firmware
+ do
+ for ARCHITECTURE in amd64 all
+ do
+ wget https://mirror.init7.net/debian/dists/${DISTRIBUTION}/${SECTION}/binary-${ARCHITECTURE}/Packages.xz -O - | xzcat - >> /tmp/debian-depends/Packages
+ done
+ done
+ done
+fi
+
+for PACKAGE in ${@}
+do
+ grep ${PACKAGE} /tmp/debian-depends/Packages
+done