PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Fedora Core 1 - Howto apt-enable CDROMs



[WCM]Manx
02.03.04, 09:17
Ursprüngliche Frage:
http://www.linuxforen.de/forums/showthread.php?s=&threadid=123994&highlight=fedora+apt
Dort bitte auch Fragen und Anregungen posten, vor allem was die mkisofs-Optionen betrifft bin ich noch etwas unsicher.

Hi!

Die CD-ROMs von Fedora Core 1 (meine sind aus dem RedHat Magazin) sind nicht apt-enabled.
Das heißt nicht mittels apt-cdrom ansprechbar.
Somit wird eine Minimalinstallation, die per apt weitergeführt werden soll, bei einer schwachen Internetanbindung (bei mir ISDN) zur Geduldsprobe.
Aber das läßt sich ändern:

Fedora Core 1 CD einlegen (no na ned)
cd /tmp/
mount /mnt/cdrom/
cp -a /mnt/cdrom /tmp/fedora-1
ls -al
=>


[manx@d600 tmp]$ ll fedora-1
total 212
dr-xr-xr-x 4 manx users 4096 Dec 11 19:44 Fedora
-r--r--r-- 1 manx users 18385 Nov 4 00:29 GPL
-r--r--r-- 1 manx users 5454 Nov 4 00:29 README
-r--r--r-- 1 manx users 12667 Nov 4 00:29 README-Accessibility
-r--r--r-- 1 manx users 47778 Nov 4 00:29 RELEASE-NOTES
-r--r--r-- 1 manx users 61144 Nov 4 00:29 RELEASE-NOTES.html
...

chmod -R 755 fedora-1
mkdir -p /tmp/fedora-1/apt/base
mkdir -p /tmp/fedora-1/apt/RPMS.os
cd /tmp/fedora-1/apt/RPMS.os
ln -s ../../Fedora/RPMS/* /tmp/fedora-1/apt/RPMS.os/
cd /tmp/fedora-1/apt/RPMS.os
ls -al


lrwxrwxrwx 1 manx users 44 Mar 1 23:11 4Suite-1.0-0.0.a3.i386.rpm -> ../../Fedora/RPMS/4Suite-1.0-0.0.a3.i386.rpm
lrwxrwxrwx 1 manx users 41 Mar 1 23:11 GConf2-2.4.0-1.i386.rpm -> ../../Fedora/RPMS/GConf2-2.4.0-1.i386.rpm
lrwxrwxrwx 1 manx users 45 Mar 1 23:11 Glide3-20010520-25.i386.rpm -> ../../Fedora/RPMS/Glide3-20010520-25.i386.rpm
...

cd ../base
genbasedir --flat --bz2only /tmp/fedora-1/apt os
ls -al


-rw-r--r-- 1 manx users 183647 Mar 1 23:14 pkglist.os.bz2
-rw-r--r-- 1 manx users 349 Mar 1 23:14 release
-rw-r--r-- 1 manx users 121 Mar 1 23:14 release.os

release* editieren
z.B nach Vorbild ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/fedora/fedora/1/i386/base/


Label: Fedora Linux
Suite: Fedora Core 1
Codename: Severn
Date: Mon, 01 Mar 2004 23:14:18 +0100
Architectures: i386 i586 i686 athlon noarch
Components: os
Description: Fedora Core 1 "apt-enabled" CD-ROMs - Redhat Magazin
MD5Sum:
3a7d4e14ecdf489cec4546a8ed08d839 1375819 base/pkglist.os
c1394588e9e3e0e7553b197628fd41fa 183647 base/pkglist.os.bz2
ba12ace4ef7a120970ae2ed81b7dd474 121 base/release.os

release.os detto
cd /tmp/
cp -a /mnt/cdrom/isolinux /tmp/
chmod u+w isolinux/*
mkisofs -pad -l -r -J -v -V "Fedora 1 CD1" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o FC-1_CD-1.iso fedora-1

cdrecord -v -dev=/dev/hdd speed=32 driveropts=burnfree FC-1_CD-1.iso

su


[root@d600 manx]# apt-cdrom add
Using CD-ROM mount point /mnt/cdrom/
Unmounting CD-ROM
Please insert a Disc in the drive and press enter
Mounting CD-ROM
Identifying.. [e3bbe02ffb1f70761156d26677903f7b-2]
Scanning Disc for index files.. Found 1 package indexes and 0 source indexes.
Please provide a name for this Disc, such as 'Conectiva Disk 1':
Fedora Core 1 - CD 1
This Disc is called:
'Fedora Core 1 - CD 1'
Reading Indexes... Done
Writing new source list
Source List entries for this Disc are:
rpm cdrom:[Fedora Core 1 - CD 1]/ apt os
Repeat this process for the rest of the CDs in your set.

in der /etc/apt/sources.list steht nun "rpm cdrom:[Fedora Core 1 - CD 1]/ apt os"

TEST


[root@d600 manx]# apt-get install ImageMagick
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
ImageMagick
0 upgraded, 1 newly installed, 0 removed and 30 not upgraded.
Need to get 0B/2944kB of archives.
After unpacking 9127kB of additional disk space will be used.
Media Change: Please insert the disc labeled
'Fedora Core 1 - CD 1'
in the drive '/mnt/cdrom/' and press enter

Get:1 cdrom://Fedora Core 1 - CD 1 apt/os ImageMagick 5.5.6-5 [2944kB]
Fetched 2944kB in 44s (65.7kB/s)
Executing RPM (-Uvh)...
Preparing... ########################################### [100%]
1:ImageMagick ########################################### [100%]

...FUNKTIONIERT ;)

Die erste CD bootet auch, ich hab den rescue-Modus probiert.
Die weiteren CD ohne isolinux Optionen brennen.

Grüße

Manx