I need to install offline packages for a linux server. it is a repellent task because all the time it outputs that the package I want to install needs several other packages.
How can I resolve this problem, please ? Regards
I need to install offline packages for a linux server. it is a repellent task because all the time it outputs that the package I want to install needs several other packages.
How can I resolve this problem, please ? Regards
You could try with dpkg-offline:
dpkg-offline obtains a package's dependencies, starting from a known set of packages (as for a base installation), fetches those .debs and packages them up in a tarball. Ideal for offline installation of the "seed" package.
First branch the project on launchpad:
bzr branch lp:dpkg-offline
Let's say you want to create a tarball with all the dependencies
necessary to install git
on an Ubuntu 12.04 server system.
Once you have dpkg_offline
, ensure you have the needed dependencies
installed:
sudo apt-get install genisoimage mtools squashfs-tools apt-utils curl
Once they're installed, get your seed .iso image::
wget http://releases.ubuntu.com/precise/ubuntu-12.04.4-server-amd64.iso
Now you're all set to do the installation. Run this:
./dpkg_offline ubuntu-12.04.4-server-amd64.iso "git"
The first argument is the seed iso, while the second is a list of packages to install. Using quotes is necessary so that the second "thing" is taken as the whole list. Of course, it's not necessary if you have only one seed package.
If the process completes successfully, a tarball will be left in the current directory. The name will encode the seed ISO, creation date, and the base packages that were installed:
apt-repo-ubuntu-12.04.4-server-amd64.iso-20131213-git_13a1.7.9.5-1_amd64.tar.gz
If something fails, dpkg_offline
will tell you what failed and point you
to a log file that may contain more details about the failure. This file
will be in a temporary directory; dpkg_offline
normally cleans this
directory up, but in the case of a failure it will leave it as-is for
analysis.
apt
inside. We use it a lot for offline setup at Canonical
– Sylvain Pineau
Apr 03 '14 at 07:44
apt-offline
is already mentioned there.
– Luís de Sousa
Apr 03 '14 at 08:06
dpkg-offline
is not apt-offline
, but I will update the question marked as duplicated. Thanks
– Sylvain Pineau
Apr 03 '14 at 08:10
bzr branch lp:dpkg-offline
, I've edited my post. sudo apt-get install bzr
if you don't have it installed.
– Sylvain Pineau
Apr 03 '14 at 08:15
apt-offline
is not dpkg-offline
that I am calling your attention. Before posting an answer please make sure that the question is not a duplicate.
– Luís de Sousa
Apr 03 '14 at 08:26