- Dalam mengupdate repository harus menambah atau mengupdate file “CentOS-Base.repo”. Anda harus terkoneksi dengan internet. Backup CentOS-Base.repo, caranya : [root@maxserver ~]#mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.asli
- Kemudian buat repository baru dengan nama CentOS-Base.repo.
[root@maxserver ~]# vi /etc/yum.repos.d/CentOS-Base.repo
- Isi kan seperti berikut :
[SCL]
name=CentOS
baseurl=http://mirror.smartmedia.net.id/centos/6.5/SCL/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirror.smartmedia.net.id/centos/RPM-GPG-KEY-CentOS-6[centosplus]
name=CentOS
baseurl=http://mirror.smartmedia.net.id/centos/6.5/centosplus/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirror.smartmedia.net.id/centos/RPM-GPG-KEY-CentOS-6[contrib]
name=CentOS
baseurl=http://mirror.smartmedia.net.id/centos/6.5/contrib/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirror.smartmedia.net.id/centos/RPM-GPG-KEY-CentOS-6[cr]
name=CentOS
baseurl=http://mirror.smartmedia.net.id/centos/6.5/cr/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirror.smartmedia.net.id/centos/RPM-GPG-KEY-CentOS-6[extras]
name=CentOS
baseurl=http://mirror.smartmedia.net.id/centos/6.5/extras/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirror.smartmedia.net.id/centos/RPM-GPG-KEY-CentOS-6[fasttrack]
name=CentOS
baseurl=http://mirror.smartmedia.net.id/centos/6.5/fasttrack/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirror.smartmedia.net.id/centos/RPM-GPG-KEY-CentOS-6[isos]
name=CentOS
baseurl=http://mirror.smartmedia.net.id/centos/6.5/isos/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirror.smartmedia.net.id/centos/RPM-GPG-KEY-CentOS-6[os]
name=CentOS
baseurl=http://mirror.smartmedia.net.id/centos/6.5/os/x86_64/
enabled=1
gpgcheck=1
pgkey=http://mirror.smartmedia.net.id/centos/RPM-GPG-KEY-CentOS-6[updates]
name=CentOS
baseurl=http://mirror.smartmedia.net.id/centos/6.5/updates/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirror.smartmedia.net.id/centos/RPM-GPG-KEY-CentOS-6[xen4]
name=CentOS
baseurl=http://mirror.smartmedia.net.id/centos/6.5/xen4/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirror.smartmedia.net.id/centos/RPM-GPG-KEY-CentOS-6
- Lalu update dengan perintah
[root@maxserver ~]# yum update