Install packages without internet access in Ubuntu
November 2, 201513 views
in ubuntu (online or offline), make the download script:
sudo apt-get install [package name] --print-uris -qq | sed -n "s/'([^ ]+)' ([^ ]+) ([^ ]+) MD5Sum:([^ ]+)/wget -c 1/p" > script.cmdrun it in online ubuntu
sh script.cmdzip it for convenience
tar -cvf [file name].tar.gz *.debmove it to the computer without internet access by any means! unzip it
tar -xvf [file name.tar.gz]and install it all
dpkg -i *.debcredit: this answer in SO
