Got this error in Centos 8.
The PowerTools repository is not enabled by default on CentOS 8 / RHEL 8 Linux. This repository contains a number of packages required as dependencies when installing other applications, and mostly building applications from source code.
To be able to enable PowerTools Repository on CentOS 8 / RHEL 8 from command line interface. First install DNF plugins package:
sudo dnf -y install dnf-plugins-core
Install EPEL repository – PowerTools repository & EPEL repository are best friends. So enable EPEL repository as well.
sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Enable PowerTools Repository on CentOS 8 / RHEL 8:
sudo dnf config-manager --set-enabled powertools
Confirm it is enabled:
sudo dnf repolist
Then you can try to download it automatically:
sudo yum -y install libedit-devel
https://computingforgeeks.com/enable-powertools-repository-on-centos-rhel-linux/