blob: 0d06bce054f2dcdd4a231531e682d7bf16721fb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|