Ubuntu making an Offline installation package

Source: Internet
Author: User

First, the application scenario

Ubuntu You need to install the software or update the system when you are unable to access the Internet

Second, the offline installation package production

in a network that can be normal Ubuntu on the system, install the required packages

$sudo apt-get-d Install XXX

when the installation is complete, the software is downloaded to the /var/cache/apt/archives directory.

Build dependencies

New Catalog

$sudo Mkdir/root/offlinepackage

Copy Deb package to the new directory on

$sudo Cp-r/var/cache/apt/archives/root/offlinepackage

Modify folder permissions, readable writable executable

$sudo chmod 777-r/root/offlinepackage/

Establish Deb Package Dependencies

$sudo dpkg-scanpackages/root/ Offline package//dev/null |gzip >/root/ Offline package/packages.gz

Note: If prompted Sudo:dpkg-scanpackages:command NotFound, you need to install Dpkg-dev Tools

$sudo Apt-get Install Dpkg-dev

Packaged software becomes a compressed package

$tar zcvf/root/offlinepackage.tar.gz/root/offlinepackage/

Third, install the offline package

Copy the offline installation package (the offline package created above) to Root directory under

Configuring the installation Source

$sudo Mv/etc/apt/sources.list/etc/apt/sources.list.bak

Description: Backup installation Source Configuration

$sudo vi/etc/apt/sources.list

Add: Deb file:///root/OfflinePackage/ , save and exit.

Update the installation source

$sudo apt-get Update

Offline installation

$sudo Apt-get Install XXX

Iv. Summary

software compatibility issues, what is the system version of offline installation, what system is used to make the offline package, some software for Ubuntu Server and the Ubuntu Desktop version is not compatible.


This article from "Think you think, no no no" blog, please be sure to keep this source http://joket.blog.51cto.com/3504252/1913765

Ubuntu making an Offline installation package

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.