I want to enable Powertools on Centos 8 for installing KDE. But i get this error:
```
Errors during downloading metadata for repository 'powertools':
- Status code: 403 for http://vault.centos.org/centos/8/PowerTools/x86_64/os/repodata/repomd.xml (IP: 172.19.93.163)
Error: Failed to download metadata for repo 'powertools': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried ```
My /etc/yum.repos.d/ looks like this :
and my Powertools repo file looks lke this :
``` CentOS-Linux-PowerTools.repo
#
# The ###mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the ###mirrorlist does not work for you, you can try the commented out
# baseurl line instead.
[powertools]
name=CentOS Linux $releasever - PowerTools
###mirrorlist=http://###mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra
baseurl=http://vault.centos.org/$contentdir/$releasever/PowerTools/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
~
~
~
~ ```
i changed the base URL to the one pointing to vault. I understood that it has something to do with Centos 8 reaching end of life in 2021. I ran these commands:
# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
and
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.epel.cloud|g' /etc/yum.repos.d/CentOS-Linux-*
I would just need a valid url where to install the powertools . Is there something i am missing?
i found a working solution:
Rocky Linux has good documentations and it just works.