Topic: Query regarding yum update and remi repository

Hi,
This is a fairly basic question about how the remi repository interacts with others:


The latest version of php available in the official centos repositories is 5.x. I have installed the remi repository, but leave it disabled by default.

By then explicitly enabling it at the command line, using yum I have successfully upgraded the default php from 5.5 to 7

If I later run a "yum update", this time without explicitly enabling the remi repository, yum does not attempt to downgrade the installed php version, even though the latest version available in the official repositories (5.x) does not match the installed version (5.7)

This is good - but I was wondering why...? Is it that yum does not merely look for a difference between repository and installed versions, but rather will only ever propose an upgrade, not a downgrade?

Re: Query regarding yum update and remi repository

yum update only does ... update... as its name says
yum downgrade is used to downgrade
yum distro-sync to sync all versions (with enabled repo)


BTW, as remi-php70 only contains php 7 and nothing else, if you want this version, much more simpler to enable it permanently.

See Wizard instructions => https://rpms.remirepo.net/wizard/

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi