Skip to content Skip to sidebar Skip to footer

Repo Centos 6 2022

Repo Centos 6.x 2022 (work) dimana sudah tutup usia sejak November 2020 dan semenjak itu maka repositori centos 6 berpindah alamat ke https://vault.centos.org/.


Repo Centos 6 2022


Jika anda melakukan update maka akan keluar error seperti ini

  1. YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
  2. Eg. Invalid release/repo/arch combination/
  3. removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/extras/mirrorlist.txt

atau anda mendapati error seperti ini

  1. Loaded plugins: fastestmirror
  2. Setting up Install Process
  3. Loading mirror speeds from cached hostfile
  4. http://vault.centos.org/6.10/os/x86_64/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer
  5. cert invalid
  6. Trying other mirror.
  7. It was impossible to connect to the CentOS servers.
  8. This could mean a connectivity issue in your environment, such as the requirement to configure a proxy,
  9. or a transparent proxy that tampers with TLS security, or an incorrect system clock.
  10. You can try to solve this issue by using the instructions on https://wiki.centos.org/yum-errors
  11. If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
  12. Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try
  13. again

Maka solusinya adalah

  1. nano /etc/yum.conf

setelah [main] tambahkan

sslverify=false

Ubah Base Repo

  1. nano /etc/yum.repos.d/CentOS-Base.repo

 

[base]
name=CentOS-$releasever - Base
baseurl=https://vault.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=https://vault.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=https://vault.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=https://vault.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=https://vault.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Simpan file tersebut dan selanjutnya lakukan yum update.

  1. yum clean all
  2. yum makecache

Demikian sekedar catatan repositori centos 6 dan semoga bermanfaat.

Post a Comment for "Repo Centos 6 2022"