remicollet / remirepo

Issue tracker for
https://rpms.remirepo.net/
278 stars 53 forks source link

Can't update to php 8.3 #246

Closed RV7PR closed 11 months ago

RV7PR commented 11 months ago

I can't update php 8.2 to php 8.3. I have tried the following commands:

[root@dev ~]# yum-config-manager --enable remi-php83
Loaded plugins: fastestmirror
[root@dev ~]# yum update php\*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.nluug.nl
 * epel: ftp.nluug.nl
 * extras: centos.mirror.triple-it.nl
 * remi-safe: cdn.centos.no
 * rpmfusion-free-updates: mirror.netsite.dk
 * updates: centos.mirror.triple-it.nl
No packages marked for update
[root@dev ~]# yum install --enablerepo=remi-php83 php php-*
Loaded plugins: fastestmirror

Error getting repository data for remi-php83, repository not found
remicollet commented 11 months ago

On which distro ?

For proper howto, follow the Wizard instructions https://rpms.remirepo.net/wizard/

RV7PR commented 11 months ago

@remicollet CentOS 7

remicollet commented 11 months ago

Notice: EL-7 is close to its end of live, in ~7 months so I recommend using a more modern version (EL-8 of even better, EL-9), especially for modern feature such as PHP 8.3

BTW, it works, again see the Wizard.

remicollet commented 11 months ago

Oh, You're right, php 8.3 repository config is missing.

remicollet commented 11 months ago

Fixed by https://git.remirepo.net/cgit/rpms/remi-release.git/commit/?h=el

remicollet commented 11 months ago
#     yum-config-manager --enable   remi-php83
Loaded plugins: fastestmirror, langpacks
=========================================================== repo: remi-php83 ============================================================
[remi-php83]
async = True
...

# yum update
...
=========================================================================================================================================
 Package                         Arch                      Version                                   Repository                     Size
=========================================================================================================================================
Updating:
 php                             x86_64                    8.3.0-1.el7.remi                          remi-php83                    2.1 M
 php-cli                         x86_64                    8.3.0-1.el7.remi                          remi-php83                    6.2 M
 php-common                      x86_64                    8.3.0-1.el7.remi                          remi-php83                    1.2 M
 php-oci8                        x86_64                    8.3.0-1.el7.remi                          remi-php83                    178 k
 php-pdo                         x86_64                    8.3.0-1.el7.remi                          remi-php83                    160 k
 php-pecl-zip                    x86_64                    1.22.3-1.el7.remi.8.3                     remi-php83                     74 k
 php-process                     x86_64                    8.3.0-1.el7.remi                          remi-php83                    106 k
 php-sodium                      x86_64                    8.3.0-1.el7.remi                          remi-php83                    100 k
 php-xml                         x86_64                    8.3.0-1.el7.remi                          remi-php83                    253 k

Transaction Summary
=========================================================================================================================================
Upgrade  9 Packages

Total download size: 10 M
...

# php -v
PHP 8.3.0 (cli) (built: Nov 21 2023 14:40:35) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.3.0, Copyright (c) Zend Technologies
RV7PR commented 11 months ago

@remicollet Yes it's working now, thx!