How to yum install php 5.6 from repo centos 6
Download epel release and remi repo
[root@localhost ~]# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
--2018-10-12 19:13:43-- https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
Connecting to 192.168.71.17:9898... connected.
Proxy request sent, awaiting response... 200 OK
Length: 14540 (14K) [application/x-rpm]
Saving to: “epel-release-latest-6.noarch.rpm”
100%[============================================================================================>] 14,540 68.9K/s in 0.2s
2018-10-12 19:13:44 (68.9 KB/s) - “epel-release-latest-6.noarch.rpm” saved [14540/14540]
[root@localhost ~]#
[root@localhost ~]# wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
--2018-10-12 19:13:58-- http://rpms.remirepo.net/enterprise/remi-release-6.rpm
Connecting to 192.168.71.17:9898... connected.
Proxy request sent, awaiting response... 200 OK
Length: 14960 (15K) [application/x-rpm]
Saving to: “remi-release-6.rpm”
100%[============================================================================================>] 14,960 --.-K/s in 0s
2018-10-12 19:14:00 (840 MB/s) - “remi-release-6.rpm” saved [14960/14960]
[root@localhost ~]#
Install both packages
[root@localhost ~]# rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm
warning: remi-release-6.rpm: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
warning: epel-release-latest-6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [100%]
1:epel-release ########################################### [ 50%]
2:remi-release ########################################### [100%]
[root@localhost ~]#
Install yum utils package
[root@localhost ~]# yum install yum-utils
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink | 55 kB 00:00
* base: centos.biz.net.id
* epel: del-repos.extreme-ix.org
* extras: centos.biz.net.id
* remi-safe: fr2.rpmfind.net
* updates: centos.biz.net.id
epel | 3.2 kB 00:00
epel/primary | 3.2 MB 00:01
epel 12516/12516
remi-safe | 2.9 kB 00:00
remi-safe/primary_db | 1.1 MB 00:01
Package yum-utils-1.1.30-42.el6_10.noarch already installed and latest version
Nothing to do
[root@localhost ~]#
Install the php package with enable remi repo as shown on following figure
[root@localhost ~]# yum --enablerepo=remi-test install php56
Tidak ada komentar :
Posting Komentar