Add 'PackageManagement/debDependencies.sh'
This commit is contained in:
parent
71a1928ca4
commit
d9bac44b95
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PACKAGE=$1
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
DEPENDENCIES=$(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances ${PACKAGE} | grep "^\w" | sort -u)
|
||||||
|
|
||||||
|
TMP="/tmp/${PACKAGE}-$(date +%s)"
|
||||||
|
mkdir -p ${TMP}
|
||||||
|
|
||||||
|
pushd ${TMP}
|
||||||
|
echo ${DEPENDENCIES} | xargs apt-get download
|
||||||
|
apt-get download ${PACKAGE}
|
||||||
|
popd
|
||||||
|
|
||||||
|
tar -cvf "${PACKAGE}.tar" -C ${TMP} .
|
Loading…
Reference in New Issue