Ubuntu – Install package along with all the dependencies offline

package-managementsoftware installation

Right now I have 2 computers:

  1. Has connection to the internet and has installed package A.
  2. Doesn't have connection to the WEB. On this PC I need to install package A.

I decided to download all needed packages using first PC and transfer them to the second PC via USB. I have searched how to get all needed packages for some deb installation and here's what I've found.

But when I run:

apt-get --print-uris --yes install A | grep ^\' | cut -d\' -f2 > downloads.list

on first PC I got empty file because this package is already installed there (and I don't want to uninstall it).

Also package A is very complicated and depends on package B which depends on package C and package C is not installed on the second PC.

So how can I download all needed packages? Or is there any other way of installing it?

Best Answer


Cube is an offline package management system that enables Linux distribution users (Ubuntu, Linux Mint and other APT-based systems) to have applications installed to their system even without internet connection. Just run the cube in your Linux system, create your project in it, paste your project together with cube in a flashdrive and fly away to any computer with internet connection, open the cube and select your project, update your applications and download any applications you want, go back to your Linux system and install it directly. And that’s it! You can now use your new application :).

You can download cube at its launchpad page : https://launchpad.net/camicricube

Related Question