I'm used to Debian, but this time I'm about to install PHP-FPM on CentOS. I've tried maybe 10 different guides (as this one), but every time I run yum install php-fpm I get this output:
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* base: yum.singlehop.com
* epel: mirrors.solfo.com
* extras: linux.mirrors.es.net
* remi: mirrors.mediatemple.net
* remi-php55: mirrors.mediatemple.net
* updates: mirrors.easynews.com
Setting up Install Process
No package php-fpm available.
Error: Nothing to do
This is my remi.repo:
[remi]
name=Les RPM de remi pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-php55]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/php55/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/php55/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-test]
name=Les RPM de remi en test pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/test/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/test/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-debuginfo]
name=Les RPM de remi pour Enterprise Linux 6 - $basearch - debuginfo
baseurl=http://rpms.famillecollet.com/enterprise/6/debug-remi/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-php55-debuginfo]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - $basearch - debuginfo
baseurl=http://rpms.famillecollet.com/enterprise/6/debug-php55/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-test-debuginfo]
name=Les RPM de remi en test pour Enterprise Linux 6 - $basearch - debuginfo
baseurl=http://rpms.famillecollet.com/enterprise/6/debug-test/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
And this is my epel.repo:
[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
I've also tried yum clean all and yum update without any success what so ever.
This is driving me crazy. What am I doing wrong?
It is showing this type of error,because php-fpm is not available in repo. You can Try this following piece of code.
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum --enablerepo=remi install php-fpm php-mysql
Here is the Source
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
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.
I'm trying to install NagiosXI.5.5.8 on a fresh VM image of RHEL7.6 minimal install. It fails on the step 1 of running ./fullinstall with an error of [Errno 256] No more mirrors to try.
It looks like the nagios-7.repo repo in /etc/yum.repos.d is incorrect. It is looking for an http url but nagios is using https.
nagios-7.repo:
[nagios-base]
name=Nagios
baseurl=http://repo.nagios.com/nagios/7/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2
[nagiosxi-deps]
name=Nagios XI Dependencies
baseurl=http://repo.nagios.com/nagiosxi-deps/7/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2
This seems to work:
[nagios-base]
name=Nagios
baseurl=https://repo.nagios.com/nagios/7/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2
[nagiosxi-deps]
name=Nagios XI Dependencies
baseurl=https://repo.nagios.com/nagiosxi-deps/7/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2
After installing the EPEL repo via RPM on a 6.1 RHEL box, I have the following yum config
[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
The box has internet connectivity, and can download the mirrorlist fine, but the first server on the mirror list is currently down, and any yum command gives me:
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
Maybe I'm wrong, but shouldn't yum skip to the next mirror in the list in this instance?
Is there a configuration setting missing/incorrect that prevents this from happening? Or is my assumption of how this should be working flawed?
Remove that **# sign beside name in the configuration file and check if it works.**
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.