Topic: Switch back from Remi's 7.4 to Fedora 34 default

Hello,

For years I have been using Remi's PHP on my Fedora. As Fedora 34 is said to provide php 8 I decided to simplify maintenance and switch back to Fedora's default php. I've succeeded with this a few months ago on a two other computers, but this time I have forgotten something and possibly messed a bit.

How to do this properly?

I've tried:
1)

# dnf module reset php
# dnf config-manager --disable remi remi-modular
# dnf update php\*

Nothing to be done.

2)

# dnf module reset php
# dnf config-manager --enable remi remi-modular
# dnf module disable php:remi-7.4

Only module name is required. Ignoring not needed information in the parameter: "php:remi-7.4"

It informed that php module was turned off.

# dnf update php\*

3)

# dnf module reset php
# dnf module switch-to php:8.0

Error: Issues in request: missing groups or modules: php:8.0.

Currently installed Remi packages:

# dnf list installed | grep @remi*
ImageMagick.x86_64                               1:6.9.12.60-1.fc34.remi                @remi                     
ImageMagick-libs.x86_64                          1:6.9.12.60-1.fc34.remi                @remi                     
composer.noarch                                  2.4.0-1.fc34.remi                      @remi                     
gd.x86_64                                        2.3.3-2.fc34.remi                      @remi                     
libc-client.x86_64                               2007f-30.fc34.remi                     @remi                     
libicu69.x86_64                                  69.1-4.fc34.remi                       @remi                     
libmemcached-awesome.x86_64                      1.1.2-1.fc34.remi                      @remi                     
libzip.x86_64                                    1.9.2-1.fc34.remi                      @remi                     
php.x86_64                                       7.4.30-1.fc34.remi                     @remi                     
php-PsrLog.noarch                                1.1.4-1.fc34.remi                      @remi                     
php-bcmath.x86_64                                7.4.30-1.fc34.remi                     @remi                     
php-cli.x86_64                                   7.4.30-1.fc34.remi                     @remi                     
php-code-lts-u2f-php-server.noarch               1.2.0-1.fc34.remi                      @remi                     
php-common.x86_64                                7.4.30-1.fc34.remi                     @remi                     
php-composer-ca-bundle.noarch                    1.3.3-1.fc34.remi                      @remi                     
php-composer-metadata-minifier.noarch            1.0.0-1.fc34.remi                      @remi                     
php-composer-pcre.noarch                         1.0.1-1.fc34.remi                      @remi                     
php-composer-semver.noarch                       1.7.2-1.fc34.remi                      @remi                     
php-composer-semver3.noarch                      3.3.2-1.fc34.remi                      @remi                     
php-composer-spdx-licenses.noarch                1.5.7-1.fc34.remi                      @remi                     
php-composer-xdebug-handler.noarch               1.4.6-1.fc34.remi                      @remi                     
php-composer-xdebug-handler2.noarch              2.0.5-1.fc34.remi                      @remi                     
php-enchant.x86_64                               7.4.30-1.fc34.remi                     @remi                     
php-fpm.x86_64                                   7.4.30-1.fc34.remi                     @remi                     
php-gd.x86_64                                    7.4.30-1.fc34.remi                     @remi                     
php-gmp.x86_64                                   7.4.30-1.fc34.remi                     @remi                     
php-imap.x86_64                                  7.4.30-1.fc34.remi                     @remi                     
php-intl.x86_64                                  7.4.30-1.fc34.remi                     @remi                     
php-json.x86_64                                  7.4.30-1.fc34.remi                     @remi                     
php-jsonlint.noarch                              1.9.0-1.fc34.remi                      @remi                     
php-justinrainbow-json-schema5.noarch            5.2.12-1.fc34.remi                     @remi                     
php-kolab-net-ldap3.noarch                       1.1.4-1.fc34.remi                      @remi                     
php-ldap.x86_64                                  7.4.30-1.fc34.remi                     @remi                     
php-masterminds-html5.noarch                     2.7.5-1.fc34.remi                      @remi                     
php-mbstring.x86_64                              7.4.30-1.fc34.remi                     @remi                     
php-mysqlnd.x86_64                               7.4.30-1.fc34.remi                     @remi                     
php-nikic-fast-route.noarch                      1.3.0-6.fc34.remi                      @remi                     
php-opcache.x86_64                               7.4.30-1.fc34.remi                     @remi                     
php-paragonie-constant-time-encoding.noarch      2.6.3-1.fc34.remi                      @remi                     
php-pdo.x86_64                                   7.4.30-1.fc34.remi                     @remi                     
php-pear.noarch                                  1:1.10.13-1.fc34.remi                  @remi                     
php-pear-Console-CommandLine.noarch              1.2.2-12.fc34.remi                     @remi                     
php-pear-Mail-Mime.noarch                        1.10.11-1.fc34.remi                    @remi                     
php-pear-Net-IDNA2.noarch                        0.2.0-11.fc34.remi                     @remi                     
php-pear-Net-SMTP.noarch                         1.10.0-1.fc34.remi                     @remi                     
php-pear-Net-Sieve.noarch                        1.4.5-1.fc34.remi                      @remi                     
php-pear-crypt-gpg.noarch                        1.6.6-1.fc34.remi                      @remi                     
php-pecl-apcu.x86_64                             5.1.21-1.fc34.remi.7.4                 @remi                     
php-pecl-igbinary.x86_64                         3.2.7-1.fc34.remi.7.4                  @remi                     
php-pecl-imagick-im6.x86_64                      3.7.0-1.fc34.remi.7.4                  @remi                     
php-pecl-krb5.x86_64                             1.1.4-3.fc34.remi.7.4                  @remi                     
php-pecl-mcrypt.x86_64                           1.0.5-1.fc34.remi.7.4                  @remi                     
php-pecl-memcached.x86_64                        3.2.0-1.fc34.remi.7.4                  @remi                     
php-pecl-msgpack.x86_64                          2.1.2-2.fc34.remi.7.4                  @remi                     
php-pecl-redis5.x86_64                           5.3.7-1.fc34.remi.7.4                  @remi                     
php-pecl-zip.x86_64                              1.21.0-3.fc34.remi.7.4                 @remi                     
php-pgsql.x86_64                                 7.4.30-1.fc34.remi                     @remi                     
php-phpmyadmin-motranslator5.noarch              5.3.0-1.fc34.remi                      @remi                     
php-phpmyadmin-sql-parser5.noarch                5.5.0-1.fc34.remi                      @remi                     
php-phpseclib.noarch                             2.0.37-1.fc34.remi                     @remi                     
php-pimple.noarch                                3.5.0-1.fc34.remi                      @remi                     
php-process.x86_64                               7.4.30-1.fc34.remi                     @remi                     
php-pspell.x86_64                                7.4.30-1.fc34.remi                     @remi                     
php-psr-container.noarch                         1.1.2-1.fc34.remi                      @remi                     
php-react-promise.noarch                         2.9.0-1.fc34.remi                      @remi                     
php-sabre-vobject4.noarch                        4.4.3-1.fc34.remi                      @remi                     
php-sabre-xml2.noarch                            2.2.5-1.fc34.remi                      @remi                     
php-seld-phar-utils.noarch                       1.2.0-1.fc34.remi                      @remi                     
php-smbclient.x86_64                             1.0.6-1.fc34.remi.7.4                  @remi                     
php-sodium.x86_64                                7.4.30-1.fc34.remi                     @remi                     
php-symfony-contracts.noarch                     1.1.13-1.fc34.remi                     @remi                     
php-symfony-polyfill.noarch                      1.26.0-1.fc34.remi                     @remi                     
php-symfony3-common.noarch                       3.4.49-1.fc34.remi                     @remi                     
php-symfony3-translation.noarch                  3.4.49-1.fc34.remi                     @remi                     
php-symfony4-cache.noarch                        4.4.44-1.fc34.remi                     @remi                     
php-symfony4-common.noarch                       4.4.44-1.fc34.remi                     @remi                     
php-symfony4-config.noarch                       4.4.44-1.fc34.remi                     @remi                     
php-symfony4-console.noarch                      4.4.44-1.fc34.remi                     @remi                     
php-symfony4-debug.noarch                        4.4.44-1.fc34.remi                     @remi                     
php-symfony4-dependency-injection.noarch         4.4.44-1.fc34.remi                     @remi                     
php-symfony4-expression-language.noarch          4.4.44-1.fc34.remi                     @remi                     
php-symfony4-filesystem.noarch                   4.4.44-1.fc34.remi                     @remi                     
php-symfony4-finder.noarch                       4.4.44-1.fc34.remi                     @remi                     
php-symfony4-process.noarch                      4.4.44-1.fc34.remi                     @remi                     
php-symfony4-var-exporter.noarch                 4.4.44-1.fc34.remi                     @remi                     
php-symfony4-yaml.noarch                         4.4.44-1.fc34.remi                     @remi                     
php-tcpdf.noarch                                 6.5.0-1.fc34.remi                      @remi                     
php-tcpdf-dejavu-sans-fonts.noarch               6.5.0-1.fc34.remi                      @remi                     
php-tidy.x86_64                                  7.4.30-1.fc34.remi                     @remi                     
php-twig.noarch                                  1.44.6-1.fc34.remi                     @remi                     
php-twig2.noarch                                 2.15.2-1.fc34.remi                     @remi                     
php-williamdes-mariadb-mysql-kbs.noarch          1.2.13-1.fc34.remi                     @remi                     
php-xml.x86_64                                   7.4.30-1.fc34.remi                     @remi                     
phpMyAdmin.noarch                                5.2.0-1.fc34.remi                      @remi                     
remi-release.noarch                              34-7.fc34.remi                         @remi                     
roundcubemail.noarch                             1.6.0-1.fc34.remi                      @remi

Re: Switch back from Remi's 7.4 to Fedora 34 default

> As Fedora 34 is said to provide php 8

No Fedora 34 have 7.4.28

Only Fedora 35 have 8.0 (Fedora 36/37 have 8.1, Fedora 38 will have 8.2)

As Fedora 34 reached its End of Life a few months ago, I recommend you upgrade to a supported version


> # dnf module switch-to php:8.0

Need to be php:remi-8.0  (see "dnf module list php")

> # dnf update php\*

To switch back to system old version you need to "downgrade"

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

Re: Switch back from Remi's 7.4 to Fedora 34 default

Thank you Remi for reply.

Following you advice I tried to downgrade, but was informed that, there are no older version, than mine.
So I have upgraded Fedora to 36 and once again tried as in point 1 and 3 of my initial post.
Only to find out it is not the right way.

Among problems issued by

dnf update php\*

are multiple errors
cannot install both php*.fc36 and php-*fc36.remi.
So apparently I haven't switched from Remi's modules to system default.

I guess that my syntax of

dnf module switch-to php:8.1

is also wrong as I get only
missing groups or modules: php:8.1

How should I proceed to do this properly?

Re: Switch back from Remi's 7.4 to Fedora 34 default

I don't understand your goal, and your tries.

> dnf module switch-to php:8.1

Again this is not the right name, again see "dnf module list php"

> are multiple errors

Sorry I don't have any cristal ball.


In short:
- If you want to use default stock package, simply don't use my repo
- if you need alternative versions or more extensions, simply follow the
wizard instructions (top/right link on all pages of the blog / repo / forum)
to get a proper configuration / installation

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

Re: Switch back from Remi's 7.4 to Fedora 34 default

Sorry for being unclear and puzzling you.

Please put my tries aside. They are wrong as I guess I messed up more, than get closer to my goal.
Lets focus on my goal. And it is switching from php from your repo to php from Fedora's repo. Currently I use php from your repo, remi-7.4 stream, common profile. I would like to switch to Fedora 36 default stock package.

At the moment "dnf module list php" lists: remi-7.4, remi-8.0, remi-8.1 and remi-8.2 with common profile being default one.
No php modules from the Fedora repo get listed.

I guess I should switch to a stream provided by Fedora, shouldn't I?
I can recall that indeed it was simple thing to switch, but lost my way.

Re: Switch back from Remi's 7.4 to Fedora 34 default

1/ disable any php stream enabled from my repo

dnf module reset php

or even remove "remi-release" package

2/ sync installation with enabled repo

dnf distro-sync

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

Re: Switch back from Remi's 7.4 to Fedora 34 default

Thank you Remi.

I wasn't forced to remove "remi-release" package.
The only thing was php-imap was missing from among the stock packages. But as it seemed not to dependency for any other installed package I simply removed it.