Skip to content

Instantly share code, notes, and snippets.

@epcim
Created October 20, 2015 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epcim/90027be68a05daf66f90 to your computer and use it in GitHub Desktop.
Save epcim/90027be68a05daf66f90 to your computer and use it in GitHub Desktop.

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