Installing packages without internet connection

7 replies [Last post]
Triskel
Offline
Joined: 01/20/2014

I want to install packages on a computer without internet access. But I have a second computer with internet connection.
I downloaded them as .deb files and tried apt-get install /home/USER/file.deb but it didn't work. Installing via the graphical package manager doesn't work either.

Please help me if you know how to do it.

quantumgravity
Offline
Joined: 04/22/2013

Please describe the problem that occured in more detail.
In general it's perfectly possible to copy a .deb file on another computer and install it with

sudo dpkg -i path/to/yourfile.deb

There is one big problem: the package will probably have dependencies which dpkg doesn't take account for.

In the case of a disconnected pc I recommend the Debian operating system with only free repositories enabled because this way you can download all the debian dvds which contains their whole repository and use apt for installing software.
So you won't have to struggle with dependencies.

I don't know if trisquel has images of the whole repository, too.

ZykoticK9
Offline
Joined: 04/07/2011

On Mon, Jan 20, 2014 at 11:44:55PM +0100, name at domain wrote:

> In the case of a disconnected pc I recommend the Debian operating
> system with only free repositories enabled because this way you can
> download all the debian dvds which contains their whole repository

in fact, even debian doesn't "really" use DVDs for the entire repo anymore (it is possible using jigdo somehow). it was viewed as a waste of space.

> I don't know if trisquel has images of the whole repository, too.

trisquel doesn't offer anything similar.

ssdclickofdeath
Offline
Joined: 05/18/2013

Instead of dpkg, you can install gdebi, a GUI based package installer. You will have to connect to a Trisquel repo once to install it, though.

http://packages.trisquel.info/toutatis/gdebi

quiliro@congresolibre.org
Offline
Joined: 10/28/2010

Just install aptoncd.

--
Saludos libres,
Quiliro Ordóñez
600 8579

Triskel
Offline
Joined: 01/20/2014

Thank you for your anwsers.
sudo dpkg -i works fine. Thank you, quantumgravity.

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

You want to install apt-offline. It is the most convenient way to administrate an offline system.

You would first have to:

  1. Download apt-offline's package from one of Toutatis' mirrors: http://packages.trisquel.info/toutatis/all/apt-offline/download
  2. Bring it to the offline system
  3. Install it with 'dpkg -i' or, if GDebi was installed on your system, by double clicking on the .deb package.

Here is a documentation on the use of apt-offline: http://www.debian-administration.org/article/Offline_Package_Management_for_APT

The first package you may want to install with the apt-offline command is "apt-offline-gui"... so that you do not have to use the command line anymore.

antiesnob
Offline
Joined: 08/22/2013

Great, with this information I made a wiki page. Please, check it and correct it or add something to it :D

https://trisquel.info/en/wiki/installing-packages-without-internet-connection