Ubuntu offline installation package

default-user-image.png

1. Application scenarios

a. When we need to install the same software on multiple computers, and the software is very large, it takes a long time to download

b. Ubuntu that needs to install software cannot access the Internet

2. Production of offline installation package

2.1. Download the deb package required by the XXXX software through the following instructions

$ sudo apt-get -d install XXXXX

After executing the above instructions, the installation package of the XXXX software will be downloaded to the /var/cache/apt/archives directory

2.2. Generating dependencies

1. Create a new folder in the root directory

$ sudo mkdir offlinePackage

2. Copy the downloaded deb package to the newly created folder above

$ sudo cp -r /var/cache/apt/archives /offlinePackage

3. Modify the permissions of the folder, readable, writable and executable

$ sudo chmod 777 -R /offlinPackage/

4. Establish the dependencies of the deb package

$ sudo dpkg-scanpackages /offlinePackage/ /dev/null |gzip

This article is reprinted from https://blog.p2hp.com/archives/8500
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment