1

This question already has an answer here:

I need to install VNC in one Ubuntu machine. The problem is that machine is in a remote site with no internet access whatsoever.

I could download a VLC installer for Ubuntu and take it to the machine I want to install in, but...

The VLC site offers a "download" button but that button only calls the apt protocol. The site doesn't have a way to download a deb package or installer that I could take with me in a flash drive to install VLC in the isolated machine.

  • What alternatives do I have?
  • Can I somehow take the deb packages of a machine in which VLC is already installed? If so, how?

marked as duplicate by David Foerster, Eric Carvalho, Ravan, Charles Green, Pilot6 Nov 22 '15 at 8:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

You can change your apt-cache-path temporarily to a specific folder and download your package:

sudo apt-get -o dir::cache::archives="/new/cache/is/here" --download-only install vlc

If vlc is already installed:

sudo apt-get clean
sudo apt-get -o dir::cache::archives="/new/cache/is/here" --download-only --reinstall install vlc

or you can use apt-offline :)

repo management

change apt-cache folder

apt download-only / apt-offline

  • Doesn't work because VLC is already installed. – Tulains Córdova Jul 21 '15 at 14:40
  • do you tried apt-get clean and then the command with reinstall instead of install? – user2667549 Jul 21 '15 at 14:44
  • Wouldn't that mess up my system? What are the side-effects of doing the clean thing? – Tulains Córdova Jul 21 '15 at 14:45
  • apt-get clean --> empties your apt-cache . If you remove packages and want to install them again, they will be downloaded because they aren't in the cache anymore – user2667549 Jul 21 '15 at 14:46
  • E: invalid operation: reinstall – Tulains Córdova Jul 21 '15 at 14:48
0

You can find the debian package on a machine where it is already installed under /var/cache/apt/archives

As an alternative you can also download the binary packages from here, depending on your Ubuntu version: https://launchpad.net/ubuntu/vivid/+source/vlc

Not the answer you're looking for? Browse other questions tagged or ask your own question.