特殊:Badtitle/NS100:AptMoveHowto:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:AptMoveHowto}} | {{Languages|UbuntuHelp:AptMoveHowto}} | ||
For breezy (Ubuntu 5.10) see: [[UbuntuHelp:AptMoveHowto/breezy]] | For breezy (Ubuntu 5.10) see: [[UbuntuHelp:AptMoveHowto/breezy]] | ||
This page will describe how to make a cd which contains packages you have downloaded on one machine using apt or synaptic. The cd will be a repository that you can easily use on another machine using synaptic or apt-cdrom. | This page will describe how to make a cd which contains packages you have downloaded on one machine using apt or synaptic. The cd will be a repository that you can easily use on another machine using synaptic or apt-cdrom. | ||
For example, I will show how to make a cd which contains all the security updates that has been downloaded. | For example, I will show how to make a cd which contains all the security updates that has been downloaded. | ||
Except for adding new apt PGP keys, the user of the cd will not need to use the command-line to use it. | Except for adding new apt PGP keys, the user of the cd will not need to use the command-line to use it. | ||
== Step 1: Install the apt-move package == | == Step 1: Install the apt-move package == | ||
Apt-move is a tool for creating a debian package repository file structure out of packages that have been downloaded to /var/cache/apt/archives. Installed packages are downloded there by apt for installation. Apt-move will create this local repository in /mirrors/debian, by default. | Apt-move is a tool for creating a debian package repository file structure out of packages that have been downloaded to /var/cache/apt/archives. Installed packages are downloded there by apt for installation. Apt-move will create this local repository in /mirrors/debian, by default. | ||
You can install '''apt-move''' from the '''Universe''' Repository | You can install '''apt-move''' from the '''Universe''' Repository | ||
I change the setting in /etc/apt-move.conf from | I change the setting in /etc/apt-move.conf from | ||
<pre><nowiki> | <pre><nowiki> | ||
第24行: | 第17行: | ||
</nowiki></pre> | </nowiki></pre> | ||
So that apt-move doesn't delete file from your /var/cache/apt/archives/. | So that apt-move doesn't delete file from your /var/cache/apt/archives/. | ||
== Step 2: Select the packages you want to put on the cd == | == Step 2: Select the packages you want to put on the cd == | ||
In this example, we only want to put freshly downloaded packages. We don't want to put old packages or packages that exist in Ubuntu CD. | In this example, we only want to put freshly downloaded packages. We don't want to put old packages or packages that exist in Ubuntu CD. | ||
First, we clean up the /var/cache/apt/archives from old packages. | First, we clean up the /var/cache/apt/archives from old packages. | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo aptitude autoclean | sudo aptitude autoclean | ||
</nowiki></pre> | </nowiki></pre> | ||
== Step 3: Run apt move to create the archive structure == | == Step 3: Run apt move to create the archive structure == | ||
Make sure you have enough disk space first. | Make sure you have enough disk space first. | ||
Because /mirrors/debian is root owned we must become root to make the steps easier. | Because /mirrors/debian is root owned we must become root to make the steps easier. | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo -s -H | sudo -s -H | ||
</nowiki></pre> | </nowiki></pre> | ||
All the following command run as root. | All the following command run as root. | ||
First we clean-up previous mirrors (if exists) then we run apt-move. | First we clean-up previous mirrors (if exists) then we run apt-move. | ||
<pre><nowiki> | <pre><nowiki> | ||
rm -rf /mirrors/debian | rm -rf /mirrors/debian | ||
apt-move -d dapper update | apt-move -d dapper update | ||
</nowiki></pre> | </nowiki></pre> | ||
Because ubuntu repository structure, not all packages are inserted into the Packages.gz file by apt-move. We must remake Packages.gz with the help of apt-ftparchive. | Because ubuntu repository structure, not all packages are inserted into the Packages.gz file by apt-move. We must remake Packages.gz with the help of apt-ftparchive. | ||
<pre><nowiki> | <pre><nowiki> | ||
cd /mirrors/debian | cd /mirrors/debian | ||
第61行: | 第43行: | ||
| gzip -9c > dists/dapper/restricted/binary-i386/Packages.gz | | gzip -9c > dists/dapper/restricted/binary-i386/Packages.gz | ||
</nowiki></pre> | </nowiki></pre> | ||
We must also remake Release file, to do this we must make an apt configuration file named ~/myapt.conf it contents is like this | We must also remake Release file, to do this we must make an apt configuration file named ~/myapt.conf it contents is like this | ||
<pre><nowiki> | <pre><nowiki> | ||
第74行: | 第55行: | ||
}; | }; | ||
</nowiki></pre> | </nowiki></pre> | ||
Next, run the following commands: | Next, run the following commands: | ||
<pre><nowiki> | <pre><nowiki> | ||
第81行: | 第61行: | ||
mv Release dists/dapper/ | mv Release dists/dapper/ | ||
</nowiki></pre> | </nowiki></pre> | ||
Then we need to make Release.gpg, to make it you must already have your [[UbuntuHelp:GPGKey]] set and ready to sign. | Then we need to make Release.gpg, to make it you must already have your [[UbuntuHelp:GPGKey]] set and ready to sign. | ||
<pre><nowiki> | <pre><nowiki> | ||
gpg -bao dists/dapper/Release.gpg dists/dapper/Release | gpg -bao dists/dapper/Release.gpg dists/dapper/Release | ||
</nowiki></pre> | </nowiki></pre> | ||
Next, we delete unwanted .apt-move directory | Next, we delete unwanted .apt-move directory | ||
<pre><nowiki> | <pre><nowiki> | ||
rm -rf .apt-move | rm -rf .apt-move | ||
</nowiki></pre> | </nowiki></pre> | ||
You can identify the cd by making a .disk directory and making an info file in it. | You can identify the cd by making a .disk directory and making an info file in it. | ||
<pre><nowiki> | <pre><nowiki> | ||
mkdir .disk | mkdir .disk | ||
echo Ubuntu-Updates `date +%Y-%m-%d` > .disk/info | echo Ubuntu-Updates `date +%Y-%m-%d` > .disk/info | ||
</nowiki></pre> | </nowiki></pre> | ||
Then we need to put our public keys in it. | Then we need to put our public keys in it. | ||
<pre><nowiki> | <pre><nowiki> | ||
gpg --export -a "Your Name" > public.key | gpg --export -a "Your Name" > public.key | ||
</nowiki></pre> | </nowiki></pre> | ||
Offcourse change Your Name with the name that you use in your PGP. | Offcourse change Your Name with the name that you use in your PGP. | ||
Thats' all | Thats' all | ||
<pre><nowiki> | <pre><nowiki> | ||
exit | exit | ||
</nowiki></pre> | </nowiki></pre> | ||
== Step 4: Burn the cd == | == Step 4: Burn the cd == | ||
Copy the contents of what is contained in /mirrors/debian to a cd. | Copy the contents of what is contained in /mirrors/debian to a cd. | ||
For example you could make an iso by following command: | For example you could make an iso by following command: | ||
<pre><nowiki> | <pre><nowiki> | ||
第123行: | 第90行: | ||
/mirrors/debian | /mirrors/debian | ||
</nowiki></pre> | </nowiki></pre> | ||
Before you could use the CD, you need to add our GPG key to apt GPG keys. Put the CD on CD-ROM Drive, mount it (if it not automatically mounted) then run the following: | Before you could use the CD, you need to add our GPG key to apt GPG keys. Put the CD on CD-ROM Drive, mount it (if it not automatically mounted) then run the following: | ||
<pre><nowiki> | <pre><nowiki> | ||
apt-key add /cdrom/public.key | apt-key add /cdrom/public.key | ||
</nowiki></pre> | </nowiki></pre> | ||
Then you could use the CD like any other Ubuntu CD. | Then you could use the CD like any other Ubuntu CD. | ||
On a non-networked ubuntu machine, you can run synaptic, insert the cd and go into Synaptic -> Edit -> Add Cdrom and it will add the contents of the cd to your repositories. | On a non-networked ubuntu machine, you can run synaptic, insert the cd and go into Synaptic -> Edit -> Add Cdrom and it will add the contents of the cd to your repositories. | ||
You can also do it from the command-line with | You can also do it from the command-line with | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-cdrom add | sudo apt-cdrom add | ||
</nowiki></pre> | </nowiki></pre> | ||
---- | ---- | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 16:07的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/AptMoveHowto }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/af | • {{#if: UbuntuHelp:AptMoveHowto|Afrikaans| [[::AptMoveHowto/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/ar | • {{#if: UbuntuHelp:AptMoveHowto|العربية| [[::AptMoveHowto/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/az | • {{#if: UbuntuHelp:AptMoveHowto|azərbaycanca| [[::AptMoveHowto/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/bcc | • {{#if: UbuntuHelp:AptMoveHowto|جهلسری بلوچی| [[::AptMoveHowto/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/bg | • {{#if: UbuntuHelp:AptMoveHowto|български| [[::AptMoveHowto/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/br | • {{#if: UbuntuHelp:AptMoveHowto|brezhoneg| [[::AptMoveHowto/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/ca | • {{#if: UbuntuHelp:AptMoveHowto|català| [[::AptMoveHowto/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/cs | • {{#if: UbuntuHelp:AptMoveHowto|čeština| [[::AptMoveHowto/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/de | • {{#if: UbuntuHelp:AptMoveHowto|Deutsch| [[::AptMoveHowto/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/el | • {{#if: UbuntuHelp:AptMoveHowto|Ελληνικά| [[::AptMoveHowto/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/es | • {{#if: UbuntuHelp:AptMoveHowto|español| [[::AptMoveHowto/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/fa | • {{#if: UbuntuHelp:AptMoveHowto|فارسی| [[::AptMoveHowto/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/fi | • {{#if: UbuntuHelp:AptMoveHowto|suomi| [[::AptMoveHowto/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/fr | • {{#if: UbuntuHelp:AptMoveHowto|français| [[::AptMoveHowto/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/gu | • {{#if: UbuntuHelp:AptMoveHowto|ગુજરાતી| [[::AptMoveHowto/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/he | • {{#if: UbuntuHelp:AptMoveHowto|עברית| [[::AptMoveHowto/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/hu | • {{#if: UbuntuHelp:AptMoveHowto|magyar| [[::AptMoveHowto/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/id | • {{#if: UbuntuHelp:AptMoveHowto|Bahasa Indonesia| [[::AptMoveHowto/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/it | • {{#if: UbuntuHelp:AptMoveHowto|italiano| [[::AptMoveHowto/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/ja | • {{#if: UbuntuHelp:AptMoveHowto|日本語| [[::AptMoveHowto/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/ko | • {{#if: UbuntuHelp:AptMoveHowto|한국어| [[::AptMoveHowto/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/ksh | • {{#if: UbuntuHelp:AptMoveHowto|Ripoarisch| [[::AptMoveHowto/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/mr | • {{#if: UbuntuHelp:AptMoveHowto|मराठी| [[::AptMoveHowto/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/ms | • {{#if: UbuntuHelp:AptMoveHowto|Bahasa Melayu| [[::AptMoveHowto/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/nl | • {{#if: UbuntuHelp:AptMoveHowto|Nederlands| [[::AptMoveHowto/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/no | • {{#if: UbuntuHelp:AptMoveHowto|norsk| [[::AptMoveHowto/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/oc | • {{#if: UbuntuHelp:AptMoveHowto|occitan| [[::AptMoveHowto/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/pl | • {{#if: UbuntuHelp:AptMoveHowto|polski| [[::AptMoveHowto/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/pt | • {{#if: UbuntuHelp:AptMoveHowto|português| [[::AptMoveHowto/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/ro | • {{#if: UbuntuHelp:AptMoveHowto|română| [[::AptMoveHowto/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/ru | • {{#if: UbuntuHelp:AptMoveHowto|русский| [[::AptMoveHowto/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/si | • {{#if: UbuntuHelp:AptMoveHowto|සිංහල| [[::AptMoveHowto/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/sq | • {{#if: UbuntuHelp:AptMoveHowto|shqip| [[::AptMoveHowto/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/sr | • {{#if: UbuntuHelp:AptMoveHowto|српски / srpski| [[::AptMoveHowto/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/sv | • {{#if: UbuntuHelp:AptMoveHowto|svenska| [[::AptMoveHowto/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/th | • {{#if: UbuntuHelp:AptMoveHowto|ไทย| [[::AptMoveHowto/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/tr | • {{#if: UbuntuHelp:AptMoveHowto|Türkçe| [[::AptMoveHowto/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/vi | • {{#if: UbuntuHelp:AptMoveHowto|Tiếng Việt| [[::AptMoveHowto/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/yue | • {{#if: UbuntuHelp:AptMoveHowto|粵語| [[::AptMoveHowto/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/zh | • {{#if: UbuntuHelp:AptMoveHowto|中文| [[::AptMoveHowto/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/zh-hans | • {{#if: UbuntuHelp:AptMoveHowto|中文(简体)| [[::AptMoveHowto/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptMoveHowto | UbuntuHelp:AptMoveHowto | {{#if: | :}}AptMoveHowto}}/zh-hant | • {{#if: UbuntuHelp:AptMoveHowto|中文(繁體)| [[::AptMoveHowto/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:AptMoveHowto|:AptMoveHowto|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :AptMoveHowto/zh | | {{#ifexist: AptMoveHowto/zh | | {{#ifeq: {{#titleparts:AptMoveHowto|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:AptMoveHowto|1|-1|}} | zh | | }}
For breezy (Ubuntu 5.10) see: UbuntuHelp:AptMoveHowto/breezy This page will describe how to make a cd which contains packages you have downloaded on one machine using apt or synaptic. The cd will be a repository that you can easily use on another machine using synaptic or apt-cdrom. For example, I will show how to make a cd which contains all the security updates that has been downloaded. Except for adding new apt PGP keys, the user of the cd will not need to use the command-line to use it.
Step 1: Install the apt-move package
Apt-move is a tool for creating a debian package repository file structure out of packages that have been downloaded to /var/cache/apt/archives. Installed packages are downloded there by apt for installation. Apt-move will create this local repository in /mirrors/debian, by default. You can install apt-move from the Universe Repository I change the setting in /etc/apt-move.conf from
COPYONLY=no
to
COPYONLY=yes
So that apt-move doesn't delete file from your /var/cache/apt/archives/.
Step 2: Select the packages you want to put on the cd
In this example, we only want to put freshly downloaded packages. We don't want to put old packages or packages that exist in Ubuntu CD. First, we clean up the /var/cache/apt/archives from old packages.
sudo aptitude autoclean
Step 3: Run apt move to create the archive structure
Make sure you have enough disk space first. Because /mirrors/debian is root owned we must become root to make the steps easier.
sudo -s -H
All the following command run as root. First we clean-up previous mirrors (if exists) then we run apt-move.
rm -rf /mirrors/debian apt-move -d dapper update
Because ubuntu repository structure, not all packages are inserted into the Packages.gz file by apt-move. We must remake 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 remake Release file, to do this we must make an apt configuration file named ~/myapt.conf it contents is like this
APT::FTPArchive::Release { Origin "APT-Move"; Label "APT-Move"; Suite "dapper"; Codename "dapper"; Architectures "i386"; Components "main restricted"; Description "Ubuntu Updates CD"; };
Next, run the following commands:
rm dists/dapper/Release apt-ftparchive -c ~/myapt.conf release dists/dapper/ > Release mv Release dists/dapper/
Then we need to make Release.gpg, to make it you must already have your UbuntuHelp:GPGKey set and ready to sign.
gpg -bao dists/dapper/Release.gpg dists/dapper/Release
Next, we delete unwanted .apt-move directory
rm -rf .apt-move
You can identify the cd by making a .disk directory and making an info file in it.
mkdir .disk echo Ubuntu-Updates `date +%Y-%m-%d` > .disk/info
Then we need to put our public keys in it.
gpg --export -a "Your Name" > public.key
Offcourse change Your Name with the name that you use in your PGP. Thats' all
exit
Step 4: Burn the cd
Copy the contents of what is contained in /mirrors/debian to a cd. For example you could make an iso by following command:
mkisofs -r -A "Ubuntu Updates `date +%Y%m%d`" -o ubuntu-updates.iso \ /mirrors/debian
Before you could use the CD, you need to add our GPG key to apt GPG keys. Put the CD on CD-ROM Drive, mount it (if it not automatically mounted) then run the following:
apt-key add /cdrom/public.key
Then you could use the CD like any other Ubuntu CD. On a non-networked ubuntu machine, you can run synaptic, insert the cd and go into Synaptic -> Edit -> Add Cdrom and it will add the contents of the cd to your repositories. You can also do it from the command-line with
sudo apt-cdrom add