I need to download that package from another PC with Internet and after install it on the Linux PC.
There's any way? Thanks!
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityOn the Internet-less computer:
PACKAGENAME=<The name of the Package to install>
and press enterapt-get -qqs install $PACKAGENAME | grep Inst | awk '{print $2}' | xargs apt-cache show | grep 'Filename: ' | awk '{print $2}' | while read filepath; do echo "wget \"http://archive.ubuntu.com/ubuntu/${filepath}\""; done >downloader.sh
downloader.sh
to the top-level directory of your flash driveOn the computer with Internet:
<Ctrl>L
and then <Ctrl>C
(This will copy the location of your flash drive)cd <Ctrl><Shift>V<Enter>
(This will move you to the directory of the flash drive)sh downloader.sh
and press enterBack to the Internet-less computer:
<Ctrl>L
and then <Ctrl>C
(This will copy the location of your flash drive)cd <Ctrl><Shift>V<Enter>
(This will move you to the directory of the flash drive)sudo dpkg --install *.deb
and press enterNote: This will only work with packages for the Ubuntu archive!
apt-get install $PACKAGENAME
, "Unable to locate package" error will be returned.
Dec 21, 2013 at 21:28