回答編集履歴

1

リポジトリの有効化方法(永続)

2018/05/09 01:39

投稿

退会済みユーザー
test CHANGED
@@ -5,3 +5,91 @@
5
5
  yum install php で php 7.1 が php コマンドとしてインストールされます
6
6
 
7
7
  yum install php71 で php 7.1 が php71 コマンドとしてインストールされます
8
+
9
+
10
+
11
+ # remi-php71 有効化 ( 7.2 の場合は 71 -> 72 )
12
+
13
+
14
+
15
+ ```
16
+
17
+ $ vi /etc/yum.repos.d/remi-php71.repo
18
+
19
+ ```
20
+
21
+
22
+
23
+ ```diff
24
+
25
+ # This repository only provides PHP 7.1 and its extensions
26
+
27
+ # NOTICE: common dependencies are in "remi-safe"
28
+
29
+
30
+
31
+ [remi-php71]
32
+
33
+ name=Remi's PHP 7.1 RPM repository for Enterprise Linux 7 - $basearch
34
+
35
+ #baseurl=http://rpms.remirepo.net/enterprise/7/php71/$basearch/
36
+
37
+ #mirrorlist=https://rpms.remirepo.net/enterprise/7/php71/httpsmirror
38
+
39
+ mirrorlist=http://cdn.remirepo.net/enterprise/7/php71/mirror
40
+
41
+ - enabled=0
42
+
43
+ + enabled=1
44
+
45
+ gpgcheck=1
46
+
47
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
48
+
49
+
50
+
51
+ [remi-php71-debuginfo]
52
+
53
+ name=Remi's PHP 7.1 RPM repository for Enterprise Linux 7 - $basearch - debuginfo
54
+
55
+ baseurl=http://rpms.remirepo.net/enterprise/7/debug-php71/$basearch/
56
+
57
+ enabled=0
58
+
59
+ gpgcheck=1
60
+
61
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
62
+
63
+
64
+
65
+ [remi-php71-test]
66
+
67
+ name=Remi's PHP 7.1 test RPM repository for Enterprise Linux 7 - $basearch
68
+
69
+ #baseurl=http://rpms.remirepo.net/enterprise/7/test71/$basearch/
70
+
71
+ #mirrorlist=https://rpms.remirepo.net/enterprise/7/test71/httpsmirror
72
+
73
+ mirrorlist=http://cdn.remirepo.net/enterprise/7/test71/mirror
74
+
75
+ enabled=0
76
+
77
+ gpgcheck=1
78
+
79
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
80
+
81
+
82
+
83
+ [remi-php71-test-debuginfo]
84
+
85
+ name=Remi's PHP 7.1 test RPM repository for Enterprise Linux 7 - $basearch - debuginfo
86
+
87
+ baseurl=http://rpms.remirepo.net/enterprise/7/debug-test71/$basearch/
88
+
89
+ enabled=0
90
+
91
+ gpgcheck=1
92
+
93
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
94
+
95
+ ```