Unable to find and install ImageMagick on CentOS 8 - centos

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

Related

Can't install powertools on RHEL 8.5

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.

Repository epel is listed more than once in the configuration

I want to install MQTT but unable to install on CentOS 8 - Alibaba Cloud because I found following error
sudo yum -y install mosquitto
Repository epel is listed more than once in the configuration
Last metadata expiration check: 0:02:11 ago on Fri 03 Apr 2020 09:51:50 PM CST.
No match for argument: mosquitto
Error: Unable to find a match: mosquitto
Here's my EPEL list
cat epel.*
[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
#baseurl=https://download.fedoraproject.org/pub/epel/$releasever/Everything/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
[epel-debuginfo]
name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug
#baseurl=https://download.fedoraproject.org/pub/epel/$releasever/Everything/$basearch/debug
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux $releasever - $basearch - Source
#baseurl=https://download.fedoraproject.org/pub/epel/$releasever/Everything/SRPMS
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1
Mosquitto do not support CentOS 8. So install on centos 7 and then install mosquito.

Cannot install Flexisip (Linphone SIP server) on Centos 6.8

I am building Voice Call feature for Android app by using Linphone.
On server (CentOS 6.8), I install Flexisip by tutorial on Homepage of Linphone wiki (https://wiki.linphone.org/wiki/index.php/Flexisip:installation).
However in step 1, I cannot install "EPEL repository" for hiredis-devel package because this link is not found: http://mirror.ibcp.fr/pub/epel/7/x86_64/repoview/epel-release.html. If I ignore step 1, then when install Flexisip, it require hiredis-devel with version 0.11 or higher.
So I have some questions:
Can I install Flexisip on CentOS 6.8 ? or Flexisip require CentOS 7 and more recent ?
If I can install Flexisip on CentOS 6.8, how can I install hiredis-devel with version 0.11 or higher ? (because Flexisip require hiredis-devel with version 0.11 or higher, I only can install hiredis-devel with version 0.10 on CentOS 6.8)
Thanks all (sorry I am not native English speaker)
First, you need to download the file using Wget and then install it using RPM on your system to enable the EPEL repository. Use below links based on your Linux OS versions. (Make sure you must be root user).
RHEL/CentOS 7 64 Bit
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
RHEL/CentOS 6 32-64 Bit
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
RHEL/CentOS 6 64-Bit ##
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

Installing vnstat on CentOS 6 shows "No package vnstat available"

I'm trying to install vnstat on CentOS 6. I used the command found in the docs 'yum install vnstat' but it shows the below:
[root#m2 ~]# yum install vnstat
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
* base: mirror.its.dal.ca
* extras: mirror.its.dal.ca
* updates: mirror.its.dal.ca
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 31 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.3 MB 00:03
No package vnstat available.
Error: Nothing to do
Does anyone know how to resolve the No package vnstat available issue?
vnstat is not available in base repository. You first need to enable EPEL (Extra Packages for Enterprise Linux) repository with:
yum install epel-release
After that, yum install vnstat should work.

how to add rhel-beta repo on centos 6.2?

I want to install Xvfb on CentOS 6.2 and I added the repo refered in https://serverfault.com/questions/344793/install-xvfb-via-yum-yum-repository-for-xvfb/361304#361304. I found ftp://ftp.redhat.com/pub/redhat/rhel/beta/6/x86_64/os/repodata/repomd.xml is invalid now, only ...beta/7/... is valid. Can I use this repo?
You can follow these steps to do so.
1) Install the RPM containing the repo definitions
$ su -c 'rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm'
2) Enable the Optional channel for your host by logging into RHN and enabling the Optional channel. According to the EPEL wiki page this is required to resolve package dependencies.
3) Make sure EPEL and the Optional channel are enabled
$ yum repolist
Learn more about configuring EPEL at the Fedora wiki.
If you prefer to configure the EPEL repo by hand, follow these steps:
1) As root, put the following in a separate file (with a name ending in .repo) in /etc/yum.repos.d:
[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
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
2) import the EPEL rpm key:
rpm --import https://fedoraproject.org/static/0608B895.txt
3) Enable the Optional channel for your host by logging into RHN and enabling the Optional channel. According to the EPEL wiki page this is required to resolve package dependencies.
4) Make sure EPEL and the Optional channel are enabled
$ yum repolist
Thanks to my ever-present technical support person, Paul Frields, for providing the file above way back when the RHEL 6 EPEL repo RPM was not available.