Masuk ke terminal, kemudian ikuti langkah berikut :
1. Backup file asli repository'nya :
ale@ucok:-$ sudo cp /etc/yum.repos.d/Centos-Base.repo /etc/yum.repos.d/Centos-Base.repo.org
2. Edit file Centos.Base.repo , dalam hal ini menggunakan editor "nano"
ale@ucok:-$ sudo nano /etc/yum.repos.d/Centos-Base.repo
3. Ganti file /etc/yum.repos.d/Centos-Base.repo menjadi seperti ini :
[Add Ons]
name=CentOS
baseurl=ftp://kambing.ui.ac.id/centos/5.4/addons/i386/
enabled=1
gpgcheck=1
gpgkey=ftp://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
name=CentOS
baseurl=ftp://kambing.ui.ac.id/centos/5.4/addons/i386/
enabled=1
gpgcheck=1
gpgkey=ftp://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[CentOS Plus]
name=CentOS
baseurl=ftp://kambing.ui.ac.id/centos/5.4/centosplus/i386/
enabled=1
gpgcheck=1
gpgkey=ftp://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
name=CentOS
baseurl=ftp://kambing.ui.ac.id/centos/5.4/centosplus/i386/
enabled=1
gpgcheck=1
gpgkey=ftp://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[Extras]
name=CentOS
baseurl=ftp://kambing.ui.ac.id/centos/5.4/extras/i386/
enabled=1
gpgcheck=1
gpgkey=ftp://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
name=CentOS
baseurl=ftp://kambing.ui.ac.id/centos/5.4/extras/i386/
enabled=1
gpgcheck=1
gpgkey=ftp://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[Fasttrack]
name=CentOS
baseurl=ftp://kambing.ui.ac.id/centos/5.4/fasttrack/i386/
enabled=1
gpgcheck=1
gpgkey=ftp://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
name=CentOS
baseurl=ftp://kambing.ui.ac.id/centos/5.4/fasttrack/i386/
enabled=1
gpgcheck=1
gpgkey=ftp://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[OS]
name=CentOS
baseurl=ftp://kambing.ui.ac.id/centos/5.4/os/i386/
enabled=1
gpgcheck=1
gpgkey=ftp://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
name=CentOS
baseurl=ftp://kambing.ui.ac.id/centos/5.4/os/i386/
enabled=1
gpgcheck=1
gpgkey=ftp://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[Update]
name=CentOS
baseurl=ftp://kambing.ui.ac.id/centos/5.4/updates/i386/
enabled=1
gpgcheck=1
gpgkey=ftp://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
name=CentOS
baseurl=ftp://kambing.ui.ac.id/centos/5.4/updates/i386/
enabled=1
gpgcheck=1
gpgkey=ftp://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
5. Kalau sudah selesai, simpan konfigurasi dengan menekan tombol Ctrl + O lalu tekan tombol ENTER dan dilanjutkan dengan menekan tombol Ctrl + X untuk keluar dari editor nano.
6. Lanjutkan dengan perintah :
ale@ucok:-$ sudo yum update
Beres dehhh :)
6. Lanjutkan dengan perintah :
ale@ucok:-$ sudo yum update
Beres dehhh :)
0 komentar:
Posting Komentar