Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

ubuntu, dpkg download package dependencies only

TODO: make an array of multi dependencis for later download and install rather make an tool to remove dependencies from DEB files

while true; do
    X=`sudo dpkg -i ibm-notes-9.0.1.i586.deb 2>&1 |g "is not installed" |awk -F" " '{print $1}'`;
    P=`echo $X|awk -F":" '{print $1}'`;
    sudo apt-get download $X;
    sudo dpkg -i ${P}* ;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.