IUS not pulling latest PHP 7.1 packages

J. Doe asked:

I have a RHEL 7 64 bit machine that that IUS installed on it. We are trying to get the latest hotfix version of php 7.1. The version I am trying to download is 7.1.22, and we are on 7.1.21. I have cleaned our cache with yum clean all and then rebuilt it using yum makecache.

Here is the IUS webpage – https://dl.iuscommunity.org/pub/ius/stable/Redhat/7/x86_64/repoview/letter_p.group.html

I have installed the RPM with IUS installed, and enabled the IUS repositories.

[ius-archive]
name=IUS Community Packages for Enterprise Linux 7 - $basearch - Archive
#baseurl=https://dl.iuscommunity.org/pub/ius/archive/Redhat/7/$basearch
mirrorlist=https://mirrors.iuscommunity.org/mirrorlist?repo=ius-el7-archive&arch=$basearch&protocol=http
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY

However when I do a yum upgrade on any of the php packages that need to be updated (even if I do something like yum upgrade php71u), I get – No packages marked for update.

Here is a snapshot of the packages on the server –

[[email protected] yum.repos.d]# rpm -qa | grep php71u
php71u-bcmath-7.1.21-1.ius.el7.x86_64
php71u-pdo-7.1.21-1.ius.el7.x86_64
php71u-tidy-7.1.21-1.ius.el7.x86_64
php71u-xml-7.1.21-1.ius.el7.x86_64
php71u-mcrypt-7.1.21-1.ius.el7.x86_64
php71u-xmlrpc-7.1.21-1.ius.el7.x86_64
php71u-json-7.1.21-1.ius.el7.x86_64
php71u-dba-7.1.21-1.ius.el7.x86_64
php71u-common-7.1.21-1.ius.el7.x86_64
php71u-ldap-7.1.21-1.ius.el7.x86_64
php71u-pecl-igbinary-2.0.5-2.ius.el7.x86_64
php71u-devel-7.1.21-1.ius.el7.x86_64
php71u-opcache-7.1.21-1.ius.el7.x86_64
php71u-cli-7.1.21-1.ius.el7.x86_64

However when I run a yum update php71u-cli, it tells me No packages marked for update. However, on the IUS stable site, the package is on version 7.1.22 (which is what I want to update to). https://dl.iuscommunity.org/pub/ius/stable/Redhat/7/x86_64/repoview/php71u-cli.html.

This problem is replicated for each php package that I try to update to version 7.1.22. When I try to do a yum install of that specific version, it gives me the same error, and when I do a yum --showduplicates list php71u-cli I dont see the expected version inside of the list.

How can I get the 7.1.22 hotfix from IUS?

Thanks.

My answer:


Your local yum metadata, which tells among other things what packages are in a repository, is cached locally and only updated periodically. You can remove the cache to force it to be updated:

yum clean metadata

After that point, yum will download fresh metadata on the next attempt to install or update packages.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.