How to burn a package CD with apt or synaptic download

Source: Internet
Author: User
Keywords Burn CD-ROM we a piece of
Tags .gz apt archives cache cd-rom debian download example

This article describes how to burn a CD-ROM with a package that uses apt or synaptic downloads. This CD-ROM will be a software warehouse that can be used directly for synaptic or apt-cdrom of other machines. For example, I'll show you how to make a CD disc that contains all the security upgrades that are listed below. In addition to adding the new apt PGP keys, users of this CD-ROM will not have to do any command-line operations.

Step 1:install the Apt-move package (install Apt-move package)
&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;
Apt-move is a tool designed to generate a Debian package warehouse file structure for packages that have been downloaded to/var/cache/apt/archives. For ease of installation, APT downloads installed packages locally. Apt-move will default to build this local warehouse in/mirrors/debian.

sudo apt install apt-move

(or use synaptic) you need to activate the Universe warehouse. See ADDINGREPOSITORIESHOWTO

I will set the/etc/apt-move.conf in the

Copyonly=no

No becomes yes so that Apt-move does not delete the packages in/var/cache/apt/archives/.

Step 2:select The "packages you want" on the CD (select the package you want to burn to CD)

In this instance, we only want to burn the most recent packages downloaded. We don't want to burn a package that already exists on an old or Ubuntu CD. First, we clear the old packages in/var/cache/apt/archives.

sudo aptitude AutoClean

Step 3:run Apt Moving to create the archive Businessesflat-out (run apt move creates document structure)

First make sure you have enough hard disk space. Since/mirrors/debian is owned by root, we must use the root account to facilitate the operation of this step

Sudo-s

All of the following commands run as root. First we empty the previous mirror (if present) and then my run apt-move.

Rm-rf/mirrors/debian
apt-move-d Dapper Update

Because of the Ubuntu warehouse structure, Apt-move does not insert all the packages into the packages.gz file. We must recreate packages.gz with the help of apt-ftparchive.

Cd/mirrors/debian
Apt-ftparchive Packages pool/main/
| gzip-9c > dists/dapper/main/binary-i386/packages.gz
Apt-ftparchive Packages pool/restricted/
| gzip-9c > dists/dapper/restricted/binary-i386/packages.gz

We must also recreate the 920.html ">release file." To do this, we have to make a apt profile named ~/myapt.conf. Its contents are as follows:

Apt::ftparchive::release {
Origin "Apt-move";
Label "Apt-move";
Suite "Dapper";
codename "Dapper";
Architectures "i386";
RS "main restricted";
Description "Ubuntu Updates CD";
};

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.