Although apt install software so "cool", but it is an online installation tool, when there is no network, APT appears powerless. Consider the following practical example: At home I have an APT machine, but no http://www.aliyun.com/zixun/aggregation/18415.html "> network connection. How can I continue using the powerful ATP tool to upgrade my Ubuntu system while computers in the workplace have fast Internet connections but only Windows?
It's going to use Apt-offline [1], which is an offline APT package Manager.
First step:
Generate a signature file on an offline machine.
Apt-offline Set/tmp/apt-offline.sig
The above command will generate an information file for apt to upgrade the database.
Step Two:
Download data based on the signature file above
Apt-offline get C:\apt-offline.sig--threads 5--bundle
There are a lot of parameters that can be passed to apt-offline, such as--bundle, which will put all the packages you want into a package. Now all you have to do is cuff those data files back.
Step Three:
Go back to the Ubuntu machine and install all the updates
Apt-offline Install/media/usb/apt-offline.zip