I'm new to Linux and I'm trying to setup my RHEL 8.5 VM machine.
NAME="Red Hat Enterprise Linux
VERSION="8.5 (Ootpa)
I'm trying to install some scripts for course, and it is giving an error that PowerTools can't be found
No matching repo to modify: powertools.
I have tried several solution in other posts as follows:
# dnf -y install dnf-plugins-core
# dnf upgrade
# dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
# dnf config-manager --set-enabled powertools
The first three commands execute and my system is updated but the last command is still having same error:
Updating Subscription Management repositories.
Error: No matching repo to modify: powertools.
When I try to get repolist, it is not showing powertools
# dnf repolist
Updating Subscription Management repositories.
repo id repo name
BaseOS BaseOS
appstream appstream
codeready-builder-for-rhel-8-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
epel Extra Packages for Enterprise Linux 8 - x86_64
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
I hope someone can help.
Thanks.
There are no exactly "powertools" in RHEL. That's a CentOS alternative name to the trademarked "CodeReady Builder" repo from RHEL.
In RHEL, you enable it like so:
sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
If codeready-builder-for-rhel-8-x86_64-rpms already shows up in "yum repolist", consider that you have "powertools" already enabled, no action is needed.
Related
I'm unable to install ImageMagick and ImageMagick-devel on a CentOS 8 64bit server. It should be as easy as:
dnf install ImageMagick ImageMagick-devel
When I do that I get:
Last metadata expiration check: 0:02:53 ago on Wed 26 May 2021 11:48:26 AM CEST.
All matches were filtered out by exclude filtering for argument: ImageMagick
All matches were filtered out by exclude filtering for argument: ImageMagick-devel
Error: Unable to find a match: ImageMagick ImageMagick-devel
I have already done:
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
Which is installed and enabled. When I look in
dnf repository-packages epel list
no ImageMagick package is listed.
How can I fix this and use dnf to install ImageMagick and ImageMagick-devel?
My repolist is:
appstream: CentOS Linux 8 - AppStream
baseos: CentOS Linux 8 - BaseOS
epel: Extra Packages for Enterprise Linux 8 - x86_64
epel-debuginfo: Extra Packages for Enterprise Linux 8 - x86_64 - Debug
epel-modular: Extra Packages for Enterprise Linux Modular 8 - x86_64
epel-source: Extra Packages for Enterprise Linux 8 - x86_64 - Source
extras: CentOS Linux 8 - Extras
litespeed: LiteSpeed Tech Repository for CentOS 8 - x86_64
litespeed-update: LiteSpeed Tech Update Repository for CentOS 8 - x86_64
powertools: CentOS Linux 8 - PowerTools
remi-modular: Remi's Modular repository for Enterprise Linux 8 - x86_64
remi-safe: Safe Remi's RPM repository for Enterprise Linux 8 - x86_64
yarn: Yarn Repository
Output of dnf repository-packages epel list | grep Image
OpenImageIO.x86_64 2.1.20.0-1.el8 epel
OpenImageIO-devel.x86_64 2.1.20.0-1.el8 epel
OpenImageIO-iv.x86_64 2.1.20.0-1.el8 epel
OpenImageIO-utils.x86_64 2.1.20.0-1.el8 epel
libAfterImage.x86_64 1.20-22.el8 epel
libAfterImage-apps.x86_64 1.20-22.el8 epel
libAfterImage-devel.x86_64 1.20-22.el8 epel
perl-GD-SecurityImage.noarch 1.75-4.el8 epel
perl-Image-Base.noarch 1.17-15.el8 epel
perl-Image-ExifTool.noarch 12.16-3.el8 epel
perl-Image-Info.noarch 1.41-8.el8 epel
perl-Image-Size.noarch 3.300-16.el8 epel
perl-Image-Xbm.noarch 1.10-11.el8 epel
perl-Image-Xpm.noarch 1.13-10.el8 epel
Output of dnf repository-packages epel list | grep image
freeimage.x86_64 3.17.0-4.el8 epel
freeimage-devel.x86_64 3.17.0-4.el8 epel
freeimage-plus.x86_64 3.17.0-4.el8 epel
freeimage-plus-devel.x86_64 3.17.0-4.el8 epel
kf5-kimageformats.x86_64 5.68.0-1.el8 epel
kiwi-systemdeps-disk-images.x86_64 9.23.34-1.el8 epel
kiwi-systemdeps-image-validation.x86_64 9.23.34-1.el8 epel
libimagequant.x86_64 2.12.5-1.el8 epel
libimagequant-devel.x86_64 2.12.5-1.el8 epel
python3-openimageio.x86_64 2.1.20.0-1.el8 epel
qt5-qtimageformats-doc.noarch 5.12.3-1.el8 epel
root-graf-asimage.x86_64 6.22.08-1.el8 epel
It's kinda lame in CentOS 8 how by default, many needed repos are not enabled by default and packages are spread out now among the different repos making life more of a pain in the a$$ instead of easier..
ImageMagick packages are in the epel repo
[root#test35 map]# repoquery -i ImageMagick-devel
Last metadata expiration check: 0:23:13 ago on Wed 26 May 2021 04:52:14 AM PDT.
Name : ImageMagick-devel
Version : 6.9.10.86
Release : 1.el8
Architecture : x86_64
Size : 126 k
Source : ImageMagick-6.9.10.86-1.el8.src.rpm
Repository : epel
Summary : Library links and header files for ImageMagick app development
URL : http://www.imagemagick.org/
License : ImageMagick
Description : ImageMagick-devel contains the library links and header files
: you'll need to develop ImageMagick applications. ImageMagick is
: an image manipulation program.
:
: If you want to create applications that will use ImageMagick code
: or APIs, you need to install ImageMagick-devel as well as
: ImageMagick. You do not need to install it if you just want to
: use ImageMagick, however.
To enable popular repos containing many needed packages for a typical server, run the following
yum install epel-release javapackages-tools
yum config-manager --set-enabled powertools
rebuild yum or dnf:
yum clean all
yum makecache
yum repolist
[root#localhost ~]# yum repolist
repo id repo name
appstream CentOS Linux 8 - AppStream
baseos CentOS Linux 8 - BaseOS
epel Extra Packages for Enterprise Linux 8 - x86_64
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64
extras CentOS Linux 8 - Extras
powertools CentOS Linux 8 - PowerTools
List of rpms in epel where ImageMagick-devel is located:
yum repo-pkgs epel list
[root#test35 map]# dnf clean all
49 files removed
[root#test35 map]# dnf makecache
CentOS Linux 8 - AppStream 3.9 MB/s | 6.3 MB 00:01
CentOS Linux 8 - BaseOS 1.2 MB/s | 2.3 MB 00:01
CentOS Linux 8 - Extras 27 kB/s | 9.6 kB 00:00
CentOS Linux 8 - PowerTools 1.6 MB/s | 2.0 MB 00:01
Extra Packages for Enterprise Linux Modular 8 - 453 kB/s | 610 kB 00:01
Extra Packages for Enterprise Linux 8 - x86_64 4.2 MB/s | 9.4 MB 00:02
Last metadata expiration check: 0:00:01 ago on Wed 26 May 2021 06:09:19 AM PDT.
Metadata cache created.
[root#test35 map]# dnf repository-packages epel list|grep ImageMagick
ImageMagick.x86_64 6.9.10.86-1.el8 epel
ImageMagick-c++.x86_64 6.9.10.86-1.el8 epel
ImageMagick-c++-devel.x86_64 6.9.10.86-1.el8 epel
ImageMagick-devel.x86_64 6.9.10.86-1.el8 epel
ImageMagick-doc.x86_64 6.9.10.86-1.el8 epel
ImageMagick-libs.x86_64 6.9.10.86-1.el8 epel
ImageMagick-perl.x86_64 6.9.10.86-1.el8
Summary
I try to install MYSQL community edition 8.0 on my Amazon Linux server
Command i have done so far
cd /home/ec2-user
wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.16-2.el7.x86_64.rpm-bundle.tar
tar -xvf mysql-8.0.16-2.el7.x86_64.rpm-bundle.tar
rpm -ivh mysql-community-server-8.0.16-2.el7.x86_64.rpm
I get the following error :
error: Failed dependencies:
libsasl2.so.3()(64bit) is needed by mysql-community-server-8.0.16-2.el7.x86_64
systemd is needed by mysql-community-server-8.0.16-2.el7.x86_64
What i tried by now
The library libsasl2.so.3()(64bit) is included in cyrus-sasl-lib
I tried to install it but still the same result
Here is the command i tried : sudo yum install cyrus-sasl-lib
Operating System
Linux ip-172-31-86-163 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Expected Result :
Success
Error Message i have :
Failed dependencies:
libsasl2.so.3()(64bit) is needed by mysql-community-server-8.0.16-2.el7.x86_64
try
yum install /path/to/mysql-8...rpm
then yum will try to find the dependencies you need. If some dependencies cannot be found, you can try downloading them yourself, or enabling repositories. But be careful since you are trying to install recent software on an old os... I don't know if amazon has centos8 machines already, otherwise that would probably help you out :)
There are some Perl modules that could previously be installed with:
yum install "perl(DateTime)"
Under CentOS7. In CentOS8 I get the error:
No match for argument: perl(DateTime)
I have the same problem for perl(Template), perl(YAML::XS), perl(Crypt::Eksblowfish::Bcrypt) and perl(JSON::XS)
I tried searching with:
yum provides *DateTime*
But I can't find anything there either.
perl-DateTime is no longer part of the CentOS 8 base OS. You'll need to enable the PowerTools repository, i.e. as root
# yum config-manager --set-enabled PowerTools
# yum update
# yum repolist
repo id repo name status
...
PowerTools CentOS-8 - PowerTools ...
...
# yum install "perl(DateTime)"
or...
# yum install perl-DateTime
perl(YAML::XS) (AKA perl-YAML-LibYAML) should also be available.
perl(Template) (AKA perl-Template-Toolkit) and perl(Crypt::Eksblowfish::Bcrypt) (AKA perl-Crypt-Eksblowfish) no longer seem to be provided, not even in EPEL8. So you'll have to install them from CPAN.
I am trying to install pgadmin in Red hat 8 by
sudo yum install pgadmin4
However:
No match for argument: pgadmin4
Error: Unable to find a match
Red hat version:
Product Name: Red Hat Enterprise Linux for x86_64
Version: 8.0
Arch: x86_64
Status: Subscribed
You need to add Postgres repository first.
dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
then run following
dnf install pgadmin4
Ref: https://www.postgresql.org/download/linux/redhat/
I don't know if still needed but i had the same problem.
i didn't find pgadmin4 repository on dnf, but it's still available on yum.
you just need to setup this repo :
sudo rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-redhat-repo-1-1.noarch.rpm
then install Pgadmin4 with yum :
# Install for both desktop and web modes.
sudo yum install pgadmin4
# Install for desktop mode only.
sudo yum install pgadmin4-desktop
# Install for web mode only.
sudo yum install pgadmin4-web
got this on pgadmin website https://www.pgadmin.org/download/pgadmin-4-rpm/
if it can help
I am working for some years with debian on engineering/administration level and using apt as packetmanager.
Now I have to work with a RHEL and I need some quick overview of how to handle packetmanagement there. I know the rpm-tool but not very well.
I am looking especially for this:
- how can I link my local PM to a paket-repository in the internet or on CD
- is rpm just for single files (like dpkg) or also for managin (like apt-get: searching etc)
so apt on debian is very cool. is there something comparable in RHEL too??
cheers, chris
is rpm just for single files (like dpkg) or also for managin (like apt-get: searching etc)
Not quite. Rpm is for Redhat what dpkg is for Debian. The Redhat equivalent of apt-tools/aptitute is yum.
I am looking especially for this: - how can I link my local PM to a paket-repository in the internet or on CD
Redhat puts repositories in files, rather then a single sources.list file. You find those repo-definitions in /etc/yum.repos.d/. So see what repositories are available, you use the command yum repolist. For instance, this Scientific Linux system of mine it gives the following output:
# yum repolist
repo id repo name status
epel Extra Packages for Enterprise Linux 6 - x86_64 6.416
sl Scientific Linux 6.1 - x86_64 6.251
sl-security Scientific Linux 6.1 - x86_64 - security updates 336
repolist: 13.003
If you want to add a repository, you either try getting a predefined file (hint: almost any 3rd party repository gives you an rpm which does everything automatically) or write your own repository defintion. Put it in a file called reponame.repo in /etc/yum.repos.d/. This is an example from the EPEL project:
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
$basearch resolves to uname -m, so to x86_64 or i686. If you set everything up correctly (mandatory settings are name, baseurl and enabled=1), run yum update and check with yum repolist if your repository was correctly included.
Usually you'll only use yum; rpm alone is rarely used. If you're used to aptitude, yum won't be much of a challenge for you for the commands like update/upgrade/clean/erase are pretty much the same.
The yum documentation can be found on Fedora's webpage: http://docs.fedoraproject.org/en-US/Fedora/14/html/Software_Management_Guide/index.html
Good luck!
Alex.
Ubuntu "dkpg" -> RHEL -> "rpm"
Ubuntu "apt-get install **" RHEL -> "yum install **"
There are various unofficial available for RHEL and if you are subscribed to RHN then you get the packages directly from Red Hat Network.
Configuration files in /etc/yum.repos.d/