If you are getting the following response when trying to use the yum or dnf command,
This system is not registered with an entitlement server. You can use subscription-manager to register.
Try editing the subscription-manager.conf file, and disable it by changing enable=1 to enable=0
sudo nano /etc/yum/pluginconf.d/subscription-manager.conf
After you may run
That should take care of the problem.
The reason is probably because the chrooted environment can’t resolve DNS.
Test it with
If it is not resolving, edit “/etc/resolv.conf” and change/add your nameserver. Or just replace everything in it with
echo "nameserver 22.214.171.124" > /etc/resolv.conf
It should now be able to resolve and you should be able to use yum, or dnf.
semanage is part of the policycoreutils-python package, as is seen when you run “yum provides semanage”. So you need to install the package to get the semanage functionality.
yum install policycoreutils-python
You should be good to go.