回答編集履歴
1
リポジトリの有効化方法(永続)
answer
CHANGED
@@ -1,4 +1,48 @@
|
|
1
1
|
ああw remi や remi-php71 を有効化した状態で
|
2
2
|
|
3
3
|
yum install php で php 7.1 が php コマンドとしてインストールされます
|
4
|
-
yum install php71 で php 7.1 が php71 コマンドとしてインストールされます
|
4
|
+
yum install php71 で php 7.1 が php71 コマンドとしてインストールされます
|
5
|
+
|
6
|
+
# remi-php71 有効化 ( 7.2 の場合は 71 -> 72 )
|
7
|
+
|
8
|
+
```
|
9
|
+
$ vi /etc/yum.repos.d/remi-php71.repo
|
10
|
+
```
|
11
|
+
|
12
|
+
```diff
|
13
|
+
# This repository only provides PHP 7.1 and its extensions
|
14
|
+
# NOTICE: common dependencies are in "remi-safe"
|
15
|
+
|
16
|
+
[remi-php71]
|
17
|
+
name=Remi's PHP 7.1 RPM repository for Enterprise Linux 7 - $basearch
|
18
|
+
#baseurl=http://rpms.remirepo.net/enterprise/7/php71/$basearch/
|
19
|
+
#mirrorlist=https://rpms.remirepo.net/enterprise/7/php71/httpsmirror
|
20
|
+
mirrorlist=http://cdn.remirepo.net/enterprise/7/php71/mirror
|
21
|
+
- enabled=0
|
22
|
+
+ enabled=1
|
23
|
+
gpgcheck=1
|
24
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
|
25
|
+
|
26
|
+
[remi-php71-debuginfo]
|
27
|
+
name=Remi's PHP 7.1 RPM repository for Enterprise Linux 7 - $basearch - debuginfo
|
28
|
+
baseurl=http://rpms.remirepo.net/enterprise/7/debug-php71/$basearch/
|
29
|
+
enabled=0
|
30
|
+
gpgcheck=1
|
31
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
|
32
|
+
|
33
|
+
[remi-php71-test]
|
34
|
+
name=Remi's PHP 7.1 test RPM repository for Enterprise Linux 7 - $basearch
|
35
|
+
#baseurl=http://rpms.remirepo.net/enterprise/7/test71/$basearch/
|
36
|
+
#mirrorlist=https://rpms.remirepo.net/enterprise/7/test71/httpsmirror
|
37
|
+
mirrorlist=http://cdn.remirepo.net/enterprise/7/test71/mirror
|
38
|
+
enabled=0
|
39
|
+
gpgcheck=1
|
40
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
|
41
|
+
|
42
|
+
[remi-php71-test-debuginfo]
|
43
|
+
name=Remi's PHP 7.1 test RPM repository for Enterprise Linux 7 - $basearch - debuginfo
|
44
|
+
baseurl=http://rpms.remirepo.net/enterprise/7/debug-test71/$basearch/
|
45
|
+
enabled=0
|
46
|
+
gpgcheck=1
|
47
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
|
48
|
+
```
|