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";
};