최대 1 분 소요

php설치를 위한 repository 작업

epel repository 설치
# dnf update -y
# subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
# dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
epel repository 설치 확인
# dnf repolist
RHEL9용 remi repository 설치
# dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm
# dnf config-manager --set-enabled remi
remi repository 설치 확인
# dnf repolist
dnf를 이용한 PHP 8.1설치
# dnf module install php:remi-8.1
# php --version

댓글남기기