Backup dan Hapus file repository CentOS-Base.repo
[root@cloud-one ~]# rm /etc/yum.repos.d/CentOS-Base.repo rm: remove regular file '/etc/yum.repos.d/CentOS-Base.repo'? yes [root@cloud-one ~]# [root@cloud-one ~]# vi /etc/yum.repos.d/CentOS-Base.repo [root@cloud-one ~]#
Buat atau Ganti isi dari file Centos-Base.repo dengan isi sebagai berikut :
[base] name=CentOS-7 - Base baseurl=http://vault.centos.org/7.9.2009/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 [updates] name=CentOS-7 - Updates baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 [extras] name=CentOS-7 - Extras baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 [centosplus] name=CentOS-7 - Plus baseurl=http://vault.centos.org/7.9.2009/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 [root@cloud-tam ~]#
[root@cloud-one ~]# yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 15 kB 00:00:00 * epel: mirror.papua.go.id * remi-safe: cdn.centos.no base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 remi-safe | 3.0 kB 00:00:00 updates | 2.9 kB 00:00:00 (1/4): base/x86_64/group_gz | 153 kB 00:00:00 (2/4): extras/x86_64/primary_db | 253 kB 00:00:00 (3/4): base/x86_64/primary_db | 6.1 MB 00:00:01 (4/4): updates/x86_64/primary_db | 27 MB 00:00:02 Resolving Dependencies --> Running transaction check ---> Package GeoIP.x86_64 0:1.5.0-13.el7 will be updated ---> Package GeoIP.x86_64 0:1.5.0-14.el7 will be an update --> Processing Dependency: geoipupdate for package: GeoIP-1.5.0-14.el7.x86_64 .... .... vim-minimal.x86_64 2:7.4.629-8.el7_9 virt-what.x86_64 0:1.18-4.el7_9.1 wpa_supplicant.x86_64 1:2.6-12.el7_9.2 xfsprogs.x86_64 0:4.5.0-22.el7 xmlsec1.x86_64 0:1.2.20-8.el7_9 xmlsec1-openssl.x86_64 0:1.2.20-8.el7_9 xz.x86_64 0:5.2.2-2.el7_9 xz-libs.i686 0:5.2.2-2.el7_9 xz-libs.x86_64 0:5.2.2-2.el7_9 yum.noarch 0:3.4.3-168.el7.centos yum-plugin-fastestmirror.noarch 0:1.1.31-54.el7_8 zlib.i686 0:1.2.7-21.el7_9 zlib.x86_64 0:1.2.7-21.el7_9 Replaced: iwl7265-firmware.noarch 0:22.0.7.0-69.el7 Complete! [root@cloud-one ~]#