Saturday, 25 September 2021

Rebuild Default Repository Centos 8

 /etc/distro.repos.d

  1. Create mkdir /opt/tmp  cd /opt/tmp-repo

  2. Download file centos-repos-8.1-1.1911.0.8.el8.x86_64.rpm (sesuaikan dengan  “cat /etc/centosrelease” atau “rpm query centosrelease“)
    wget http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-repos-8.1-1.1911.0.8.el8.x86_64.rpm
  3. Extract file 
    rpm2cpio centos-repos-8.1-1.1911.0.8.el8.x86_64.rpm | cpio –extract –make-directories –verbose “*.repo”
  4. Atau copy file hasil download ke  /etc/distro.repos.d/
  • sudo dnf makecache
  • sudo dnf check-update
  • sudo dnf update
  • // or
  • sudo dnf upgrade

No comments:

Post a Comment