Install a Program with Apt-Offline
I Have Been Researching About Offline Package Management and Followed the Apt-Offline Tutorials as This. for All Documentations Say That Let Create a Signature...
I have been researching about offline package management and followed the apt-offline tutorials as this. For all documentations say that let create a signature on offline machine like this: apt-offline set /tmp/apt-offline.sig and this will generate all information required from apt about updating its database. I have done this. But I want to do apt-get install vim, for example. How can we generate the signature to install vim? I could not find the main reason I am using apt-offline.
Any help is appreciated
2 Answers
To install the package vim you have first to create a signature for the installation on the off line machine:
sudo apt-offline set vim-offline.sig --install-packages vim
Then on the on line machine you download the packages:
apt-offline get vim-offline.sig --bundle vim-install.zip
Finally on the off line machine you install it:
sudo apt-offline install vim-install.zip
Vim and all its dependencies should have been installed properly on the off line machine.
The sig file has information on updating the certain package with a database, but it does not hold the actual package if you did not have it previously installed. The overall steps are:
Must Read
Step 1 (Already Completed by OP)
Generate a signature file on the disconnected machine at home:
apt-offline set /tmp/apt-offline.sig
The above command will generate all information required from apt about updating its database.
By default, with no additional arguments passed, apt-offline will extract information about APT Package Database Update i.e. the --update option as well as the list of Packages to be upgraded i.e. the --upgrade option.
These options can also be individually passed if you want only one of those.