[CentOS Stream 8]: Unknown repo crb : [Solved]

Updated on November 22, 2022

While executing the below command, encountered the error “Unknown repo crb“.

# dnf --enablerepo=centos-openstack-yoga,epel,crb -y install openstack-glance
Error: Unknown repo: 'crb'

Solution: CRB is known as  CodeReady Linux Builder. However, it is trademarked, and as such, available only in CentOS which has a different name – PowerTools. The PowerTools repository provides most of the developer tools required by many EPEL packages. Disabled by default

Install the EPEL release package for CentOS Stream 8. Enable both the EPEL and CodeReady Builder repositories as below:

# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y 

# /usr/bin/crb enable
Enabling CRB repo
CRB repo is enabled and named: powertools

[OR]

# 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-* 
# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y 
# dnf config-manager --set-enabled powertools

Now use the renamed repo name in your dnf installation as below:

# dnf --enablerepo=centos-openstack-yoga,epel,powertools -y install openstack-glance

Was this article helpful?

Related Articles

Leave a Comment