2 Answers
- Newest
- Most votes
- Most comments
0
please refer the below commands.
# cat /etc/amazon-linux-release
Amazon Linux release 2023.4.20240401 (Amazon Linux)
# dnf info php8.2
Last metadata expiration check: 0:00:40 ago on Thu Apr 4 07:56:33 2024.
Available Packages
Name : php8.2
Version : 8.2.15
Release : 1.amzn2023.0.2
Architecture : x86_64
Size : 11 k
Source : php8.2-8.2.15-1.amzn2023.0.2.src.rpm
Repository : amazonlinux
Summary : PHP scripting language for creating dynamic web sites
URL : http://www.php.net/
License : PHP and Zend and BSD and MIT and ASL 1.0 and NCSA and Boost
Description : PHP 8.2 is an HTML-embedded scripting language. PHP 8.2 attempts to make it
: easy for developers to write dynamically generated web pages. PHP 8.2 also
: offers built-in database integration for several commercial and
: non-commercial database management systems, so writing a
: database-enabled webpage with PHP 8.2 is fairly simple. The most common
: use of PHP 8.2 coding is probably as a replacement for CGI scripts.
# dnf install php
or
# dnf update php
# rpm -qa | grep php
php8.2-common-8.2.15-1.amzn2023.0.2.x86_64
php8.2-cli-8.2.15-1.amzn2023.0.2.x86_64
php8.2-mbstring-8.2.15-1.amzn2023.0.2.x86_64
php8.2-opcache-8.2.15-1.amzn2023.0.2.x86_64
php8.2-pdo-8.2.15-1.amzn2023.0.2.x86_64
php8.2-process-8.2.15-1.amzn2023.0.2.x86_64
php8.2-fpm-8.2.15-1.amzn2023.0.2.x86_64
php8.2-xml-8.2.15-1.amzn2023.0.2.x86_64
php8.2-sodium-8.2.15-1.amzn2023.0.2.x86_64
php8.2-8.2.15-1.amzn2023.0.2.x86_64
0
Running dnf install php-8.3
gives the conflicting error
# dnf install php8.3
Last metadata expiration check: 0:37:16 ago on Fri Nov 8 02:43:26 2024.
Error:
Problem: problem with installed package php8.2-8.2.23-1.amzn2023.0.1.x86_64
- package php8.2-8.2.23-1.amzn2023.0.1.x86_64 from @System conflicts with php > 8.2.99 provided by php8.3-8.3.7-1.amzn2023.0.1.x86_64 from amazonlinux
- package php8.3-8.3.7-1.amzn2023.0.1.x86_64 from amazonlinux conflicts with php < 8.3.0 provided by php8.2-8.2.23-1.amzn2023.0.1.x86_64 from @System
- package php8.2-8.2.15-1.amzn2023.0.1.x86_64 from amazonlinux conflicts with php > 8.2.99 provided by php8.3-8.3.7-1.amzn2023.0.1.x86_64 from amazonlinux
# dnf info php8.3
Last metadata expiration check: 0:38:34 ago on Fri Nov 8 02:43:26 2024.
Available Packages
Name : php8.3
Version : 8.3.10
Release : 1.amzn2023.0.1
Architecture : x86_64
Size : 10 k
Source : php8.3-8.3.10-1.amzn2023.0.1.src.rpm
Repository : amazonlinux
answered a month ago
Relevant content
- Accepted Answerasked a year ago
- asked 2 years ago
- asked 5 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
Thank you!!