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.
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.