|
发表于 2004-10-22 08:38:36
|
显示全部楼层
[root@fudaming ~]# apt-
apt-cache apt-cdrom apt-config apt-get apt-shell
可以添加cdrom
Creating apt-enabled Red Hat Linux CD-ROMs
Since apt needs metadata about available packages, the original Red Hat Linux CD-ROMs can't be used directly with the apt-cdrom tool, which is why apt is generally used only through the network. You can however get or create the needed metadata and burn new CDs which include it. Planet CCRMA has detailed instructions about this process for Red Hat Linux 8.0, and you can do the same for Red Hat Linux 9 using the files and instructions below.
Required files :
* shrike-i386-disc1-apt.tar.gz (377K)
* shrike-i386-disc2-apt.tar.gz (619K)
* shrike-i386-disc3-apt.tar.gz (341K)
Instructions :
* Mount the CD or ISO image :
mount /mnt/cdrom
mount -o loop /path/to/shrike-i386-disc1.iso /mnt/cdrom (requires root privileges)
* Copy the content somewhere :
mkdir -p /somewhere
cp -a /mnt/cdrom /somewhere/shrike-cd1 (do the same when needed for discs 2 and 3)
* Extract the apt metadata files downloaded from above into the content :
cd /somewhere/shrike-cd1
tar xzvf /path/to/shrike-i386-disc1-apt.tar.gz
* For disc 1, make a new bootable ISO image of the modified content :
mkisofs -J -r -T -l -V 'Apt-enabled Shrike disc1' \
-b images/bootdisk.img \
-c boot.catalog \
-o /path/to/put/isos/shrike-cd1.iso .
* For discs 2 and 3, make new ISO images of the modified content :
mkisofs -J -r -T -l -V 'Apt-enabled Shrike disc2' \
-o /path/to/put/isos/shrike-cd2.iso .
(see the mkisofs( man page for details about these options)
* Repeat the above with all 3 binary discs, you don't need to do it for the 3 source discs as it wouldn't be useful. |
|