Ubuntu offline installation package

Source: Internet
Author: User
Ubuntu offline installation package 1 application scenario a when we need to install the same software on multiple computers, and this software is very large, when downloading ubuntu that requires software installation for a long time, you cannot access the internet. 2. create an offline installation package. 21. download the deb package required by XXXX software. Ubuntu offline installation package 1. application Scenario. when we need to install the same software on multiple computers and the software is large, it takes a long time to download B. ubuntu that requires software installation cannot access the Internet. offline installation package creation 2. 1. run the following command to download the deb package $ sudo apt-get-d install XXXXX required by the XXXX software, the installation package of the XXXX software is downloaded to the/var/cache/apt/archives Directory. 2. generate dependency 1. create a folder under the root directory $ sudo mkdir offlinePackage2. copy the downloaded deb package to the folder $ sudo cp-r/var/cache/apt/archives/offlinePackage3. permission, readable and writable: run $ sudo chmod 777-R/offlinPackage/4. establish the dependency of the deb package $ sudo dpkg-scanpackages/offlinePackage // dev/null | gzip>/offlinePackage/Packages.gz if the error occurs: sudo: dpkg-scanpackages: command not found, you need to install the dpkg-dev tool: $ sudo apt-get install packages to the same directory as deb $ sudo cp/offlinePackage/Packages.gz/offlinePackage/archives/Packages.gz 2. 3. pack the package into a compressed package, and use $ tar cvzf offlinePackage.tar.gz offlinePackage/Save the offlinePackage.tar.gz file to the USB flash drive or server. install 1.uon another Ubuntu instance and copy offlinePackage.tar.gz to the root directory. unzip $ sudo tar-xvf offlinePackage.tar.gz 2. add the installation package and source path to the system source. list $ sudo vi/etc/apt/sources. list deb file:///offlinePackage Archives/then unregister all other debs (#) Note: before adding a new one, we can back up the original source $ sudo cp/etc/apt/sources. list/etc/apt/sources. list. back for future use 3. update the system source $ sudo apt-get update4. offline installation at this time, when there is no network, we can install the XXXX software downloaded between US $ sudo apt-get install XXXXX note: compatibility issues. if we use 64-bit ubuntu when creating the installation package, this offline package can only be installed on other 64-bit systems. Some software is not compatible with ubuntu server and ubuntu desktop. In short, the offline package created under the system is installed under the system.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.