How to fix Unable to find a match: policycoreutils-python on RHEL/CentOS 8

Updated on March 7, 2022

While I was trying to install GitLab on CentOS 8, encountered the below error: Unable to find a match: policycoreutils-python. Below is the snapshot of the error. This article will help you to fix the error: Unable to find a match: policycoreutils-python.

[root@centos8 ~]# yum install -y curl policycoreutils-python openssh-server perl
Last metadata expiration check: 1:43:22 ago on Mon 07 Mar 2022 10:19:17 AM IST.
Package curl-7.61.1-22.el8.x86_64 is already installed.
No match for argument: policycoreutils-python
Package openssh-server-8.0p1-10.el8.x86_64 is already installed.
Error: Unable to find a match: policycoreutils-python

How to fix Unable to find a match: policycoreutils-python on CentOS 8

The package policycoreutils-python is for CentOS 7 and can’t be installed on CentOS 8. It has been renamed to policycoreutils-python-utilson CentOS 8. Policycoreutils-python-utils package contains the management tools used to manage an SELinux environment. Below is the right yum command to install policycoreutils-python-utils on CentOS 8.

[root@centos8 ~]# yum install policycoreutils-python-utils
Last metadata expiration check: 2:01:00 ago on Mon 07 Mar 2022 10:19:17 AM IST.
Dependencies resolved.
==============================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================
Installing:
policycoreutils-python-utils noarch 2.9-16.el8 baseos 251 k

Transaction Summary
==============================================================================================================================
Install 1 Package

Total download size: 251 k
Installed size: 138 k
Is this ok [y/N]: y
Downloading Packages:
policycoreutils-python-utils-2.9-16.el8.noarch.rpm 272 kB/s | 251 kB 00:00
------------------------------------------------------------------------------------------------------------------------------
Total 139 kB/s | 251 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : policycoreutils-python-utils-2.9-16.el8.noarch 1/1
Running scriptlet: policycoreutils-python-utils-2.9-16.el8.noarch 1/1
Verifying : policycoreutils-python-utils-2.9-16.el8.noarch 1/1

Installed:
policycoreutils-python-utils-2.9-16.el8.noarch

Complete!

That’s it!

Was this article helpful?

Related Articles

Leave a Comment