apt-cdrom add

Di ubuntu kita bisa melakukan instalasi program menggunakan dvd repo yg terdiri dari 5 dvd (hardy heron). Nah cara berikut ini digunakan untuk membuat file iso yang bisa digunakan untuk menggantikan dvd disk. Biar dvd nya gak cepet rusak.

Masukkan dvd repo 1, kemudian buat file iso menggunakan perintah

dd if=/dev/cdrom of=/home/ndet/repo1.iso

lalu di-mount, berhubung default cdrom (hardware) juga kebaca di /media/cdrom, kita rename dulu (backup). Gak perlu takut, itu cuman shortcut kok
sudo mv /media/cdrom /media/cdrom.bck
sudo mkdir /media/cdrom
sudo apt-cdrom add 
 ndet@kucing:~$ sudo apt-cdrom add
 [sudo] password for ndet: 
 Using CD-ROM mount point /cdrom/
 Unmounting CD-ROM
 Waiting for disc...
 Please insert a Disc in the drive and press enter 

sudo mount -o loop /home/ndet/repo1.iso /media/cdrom
 
 Waiting for disc...
 Please insert a Disc in the drive and press enter 
 Mounting CD-ROM...
 Identifying.. [c1d618279cfb4e10ca09f0e1bc5dd8b4-2]
 Scanning disc for index files..
 Found 2 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
 This disc is called: 
 'Ubuntu 8.04 _Hardy Heron_ - i386 - DVD Repository - Disc 1 of 5'
 Reading Package Indexes... Done
 Writing new source list
 Source list entries for this disc are:
 deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - i386 - DVD Repository - Disc 1 of 5]/ hardy main restricted
 Unmounting CD-ROM...
 Repeat this process for the rest of the CDs in your set.
ulang lagi prosesnya sampai dvd 5.

Trus kalo mau install program :

sudo apt-get install apache2
...........
Media change: please insert the disc labeled
 'Ubuntu 8.04 _Hardy Heron_ - i386 - DVD Repository - Disc 1 of 5'
in the drive '/cdrom/' and press enter
Buka shell baru
sudo mount -o loop /home/ndet/repo1.iso /media/cdrom
Balik lagi ke shell yg ngejalanin apt-get, trus tekan enter

Setelah mencoba beberapa kali, ternyata tetep ada paket yang kadang masih diambil ke server luar (kambing) :(

Link : http://ubuntuforums.org/showthread.php?t=677699

UPDATE (19-6-08)
Kayaknya lebih efektif kalo dijadikan local repo, silakan coba link ini

agus

0 Responses to "apt-cdrom add"

Post a Comment