|
发表于 2004-7-12 00:13:02
|
显示全部楼层
制作用于 apt 管理的安装光盘 ( RedHat 8.0, 9, Fedora Core 1)(翻译)
创建可用于 apt 的 Redhat 或 Fedora 安装光盘
[原文出处]
http://ccrma.stanford.edu/planet ... teredhatcdroms.html
The custom Planet CCRMA RedHat 8.0, 9 or Fedora Core 1(http://ccrma.stanford.edu/planet ... redhatinstallcdroms) install cdroms are replicas of the original RedHat or Fedora Core iso images with an added apt database of their contents. That enables to use them as local repositories for all the original RedHat or Fedora packages so that you can manage ALL your packages using apt-get or synaptic.
此处定制的Planet CCRMA RedHat 8.0,9.0或Fedora Core1光盘,是在 RedHat 或 Fedora Core 原始 iso 映像的基础上添加了光盘内容 apt 数据库的复本。你可以用它们作为原始 RedHat 或 Fedora Core 软件包的本地仓库,从而使用 apt-get 或 synaptic 管理你的软件包。
You can download them from this site or you can just create them yourself if you have the original RedHat 8.0, 9 or Fedora Core 1 cdroms, a working linux machine with enough disk space and a working cdwriter. Just follow the following instructions:
你可以从本站下载这些光盘。如果你有原始的 RedHat 8.0, 9.0 或 Fedora Core 1 光盘,装有 linux 系统的机器,足够的硬盘空间和刻录机,只需按照下述步骤,你就可以自己动手制作这些光盘。
1. download the apt databases
下载 apt 数据库
For Fedora Core 1:
* Planet CCRMA Fedora Core 1 disk 1 database
http://ccrma.stanford.edu/planet ... 86-disc1-apt.tar.gz
* Planet CCRMA Fedora Core 1 disk 2 database
http://ccrma.stanford.edu/planet ... 86-disc2-apt.tar.gz
* Planet CCRMA Fedora Core 1 disk 3 database
http://ccrma.stanford.edu/planet ... 86-disc3-apt.tar.gz
For RedHat 9:
* Planet CCRMA RedHat 9 disk 1 database
http://ccrma.stanford.edu/planet ... 86-disc1-apt.tar.gz
* Planet CCRMA RedHat 9 disk 2 database
http://ccrma.stanford.edu/planet ... 86-disc2-apt.tar.gz
* Planet CCRMA RedHat 9 disk 3 database
http://ccrma.stanford.edu/planet ... 86-disc3-apt.tar.gz
For RedHat 8.0:
* Planet CCRMA RedHat 8.0 disk 1 database
http://ccrma.stanford.edu/planet ... 86-disc1-apt.tar.gz
* Planet CCRMA RedHat 8.0 disk 2 database
http://ccrma.stanford.edu/planet ... 86-disc2-apt.tar.gz
* Planet CCRMA RedHat 8.0 disk 3 database
http://ccrma.stanford.edu/planet ... 86-disc3-apt.tar.gz
2. make a directory where you will copy the contents of the cdroms, make sure the partition the directory is in has enough space to hold two complete cdroms (or just one if you know what you are doing and you are going to burn the cdrom on-the-fly from the output of mkisofs). The directory is going to be named /whatever.
创建一个目录来复制光盘内容,确保目录所在分区有足够的空间来存放两个完整的光盘(或者你有经验,打算直接从 mkisofs 的输出烧录光盘)。目录命名为(什么都行) /whatever。
cd /whatever
mkdir image
3. mount the cdrom
加载光盘
mount /mnt/cdrom
4. copy the cdrom to the hard disk, we can copy everything with a back-to-back tar invocation (this assumes the cdrom is mounted in /mnt/cdrom):
复制光盘到硬盘,我们可以用背靠背的 tar 命令来复制所有内容(假定光盘挂载点是 /mnt/cdrom):
(cd /mnt/; tar cvf - cdrom)|(cd /whatever/image; tar xvpf -)
When this is done you will have a copy of the cdrom in /whatever/image/cdrom.
复制完成,你就有了一个光盘的拷贝 /whatever/image/cdrom。
5. add the apt database to the cdrom copy, replace the file name of the tarfile with the one that corresponds to the cdrom you are recreating (the example below is for RedHat 8.0, disc 1):
添加 apt 数据库到光盘拷贝,将例子中的 tar 文件换成与你创建的光盘相对应的(下面的以 RedHat 8.0 第一张盘为例):
cd /whatever/image/cdrom
tar xvzf path_to_tarfile/psyche-i386-disc1-apt.tar.gz
6. create an iso image of the new cdrom:
创建新光盘的 iso 映像文件:
first change directory to be in the root directory of the cdrom copy:
首先进入光盘拷贝的根目录:
cd /whatever/image/cdrom
Then create the iso image. If you are building the first cdrom (the example is for RedHat 8.0, disc1):
创建 iso 映像文件。如果你要建立第一张光盘(以 RedHat 8.0 第一张盘为例):
mkisofs -v -r -T -J -V 'RedHat 8.0 for Planet CCRMA' -b images/boot.img -c boot.catalog -l -R -o /whatever/image.iso .
Or in the case of RedHat 9 (disc 1, the name of the boot image file is different):
或者是 RedHat 9 (第一张盘,启动映像文件的名字不同):
mkisofs -v -r -T -J -V 'RedHat 9 for Planet CCRMA' -b images/bootdisk.img -c boot.catalog -l -R -o /whatever/image.iso .
Or for Fedora Core 1 (disc 1, the catalog is in a subdirectory):
或者是 Fedora Core 1 (第一张盘,编目在子目录下):
mkisofs -v -r -T -J -V 'Fedora Core 1 for Planet CCRMA' -b images/bootdisk.img -c isolinux/boot.cat -l -R -o /whatever/image.iso .
For the other two cdroms (they do not need to be bootable cdroms):
另外两张光盘(不需要制成可启动光盘):
mkisofs -v -r -T -J -V 'RedHat 8.0 for Planet CCRMA' -l -R -o /whatever/image.iso .
7. use your favorite tool to burn the image into a cdr or cdrw, the image has been created in /whatever/image.iso.
用你喜欢的工具将映像文件烧录到 cdr (刻录光盘) 或 cdrw (可擦写光盘)上,映像文件生成位置 /whatever/image.iso。
附:Planet CCRMA RedHat 8.0, 9 ,Fedora Core 1 光盘下载页面:
http://ccrma.stanford.edu/planet ... redhatinstallcdroms |
|