langkah :
1. masukkan DVD Centos 5.4 ke DVD ROM/RW
2. buat direktori baru dengan nama adenuxer di bawah direktori mnt
   # mkdir -p /mnt/adenuxer
3. mounting DVD atau 5.4 ke /mnt/adenuxer
   # mount -o loop /dev/dvdrw /mnt/adenuxer 
   
4. edit file di /etc/yum.conf
     # vi /etc/yum.conf
     [main]
     cachedir=/var/cache/yum
     keepcache=0
     debuglevel=2
     logfile=/var/log/yum.log
     distroverpkg=redhat-release
     tolerant=1
     exactarch=1
     obsoletes=1
     gpgcheck=1 ==> ubah gpgcheck=1 menjadi gpgcheck=0
     plugins=1
     # Note: yum-RHN-plugin doesn't honor this.
     metadata_expire=1h
     # Default.
     # installonly_limit = 3
     # PUT YOUR REPOS HERE OR IN separate files named file.repo
     # in /etc/yum.repos.d
5. edit 2 file didalam /etc/yum.repos.d/
   a. nonaktifkan CentOS-Base.repo dengan cara :
      # mv CentOS-Base.repo CentOS-Base.repo.bak
   b. lakukan edit ulang didalam file CentOS-Media.repo 
      # vi CentOS-Media.repo
 
        # CentOS-Media.repo
        #
        # This repo is used to mount the default locations for a CDROM / DVD on
        # CentOS-5.  You can use this repo and yum to install items directly off the
        # DVD ISO that we release.
        #
        # To use this repo, put in your DVD and use it with the other repos too:
        # yum --enablerepo=c5-media [command]
        #
        # or for ONLY the media repo, do this:
        #
        # yum --disablerepo=\* --enablerepo=c5-media [command]
        [c5-media]
        name=CentOS-$releasever - Media
        baseurl=file:///mnt/adenuxer                ==> sesuaikan dengan posisi mounting saat melakukan langkah ke-3
        # file:///media/cdrom/       ==> nonaktifkan
        # file:///media/cdrecorder/  ==> nonaktifkan
        gpgcheck=0
        enabled=0                    ==> rubah enabled=0 menjadi enabled=1
        gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
6. simpan file konfigurasi tersebut diatas dengan menekan :x atau :wq
7. lakukan perintah berikut
   # yum -y check-update
   
   # yum -y update
8. oke selamat mencoba
1 komentar:
hai 4d3 Nux3r!
very thanks for this tutorial... i very help ... thanks, ya
Posting Komentar