質問編集履歴

3

タイトルの修正

2020/01/24 07:42

投稿

hs_sc
hs_sc

スコア17

test CHANGED
@@ -1 +1 @@
1
- yumでpostgresql95-9.5.15-1PGDG.rhel7.x86_64をアンインストールせずに9.5.20に上げたい
1
+ yumでpostgresql95-9.5.15-1PGDG.rhel7.x86_64をアンインストールせずにpostgresql95-9.5.20-2PGDG.rhel7.x86に上げたい
test CHANGED
File without changes

2

履歴を追加

2020/01/24 07:42

投稿

hs_sc
hs_sc

スコア17

test CHANGED
File without changes
test CHANGED
@@ -30,9 +30,13 @@
30
30
 
31
31
  読み込んだプラグイン:changelog, fastestmirror
32
32
 
33
+ (省略)
34
+
35
+ # yum info postgresql95
36
+
33
- Determining fastest mirrors
37
+ 読み込んだプラグイン:changelog, fastestmirror
34
-
38
+
35
- epel/x86_64/metalink | 9.5 kB 00:00:00
39
+ Loading mirror speeds from cached hostfile
36
40
 
37
41
  * base: ty1.mirror.newmediaexpress.com
38
42
 
@@ -44,50 +48,6 @@
44
48
 
45
49
  * updates: ty1.mirror.newmediaexpress.com
46
50
 
47
- base | 3.6 kB 00:00:00
48
-
49
- epel | 5.3 kB 00:00:00
50
-
51
- extras | 2.9 kB 00:00:00
52
-
53
- remi-safe | 3.0 kB 00:00:00
54
-
55
- updates | 2.9 kB 00:00:00
56
-
57
- (1/8): base/7/x86_64/group_gz | 165 kB 00:00:00
58
-
59
- (2/8): epel/x86_64/group_gz | 90 kB 00:00:00
60
-
61
- (3/8): extras/7/x86_64/primary_db | 153 kB 00:00:00
62
-
63
- (4/8): epel/x86_64/primary_db | 6.9 MB 00:00:00
64
-
65
- (5/8): updates/7/x86_64/primary_db | 5.9 MB 00:00:00
66
-
67
- (6/8): base/7/x86_64/primary_db | 6.0 MB 00:00:00
68
-
69
- (7/8): remi-safe/primary_db | 1.7 MB 00:00:00
70
-
71
- (8/8): epel/x86_64/updateinfo | 1.0 MB 00:00:00
72
-
73
- メールが /var/spool/mail/root にあります
74
-
75
- # yum info postgresql95
76
-
77
- 読み込んだプラグイン:changelog, fastestmirror
78
-
79
- Loading mirror speeds from cached hostfile
80
-
81
- * base: ty1.mirror.newmediaexpress.com
82
-
83
- * epel: www.ftp.ne.jp
84
-
85
- * extras: ty1.mirror.newmediaexpress.com
86
-
87
- * remi-safe: ftp.riken.jp
88
-
89
- * updates: ty1.mirror.newmediaexpress.com
90
-
91
51
  インストール済みパッケージ
92
52
 
93
53
  名前 : postgresql95
@@ -110,25 +70,7 @@
110
70
 
111
71
  説明 : PostgreSQL is an advanced Object-Relational database management system (DBMS).
112
72
 
113
- : The base postgresql package contains the client programs that you'll need to
114
-
115
- : access a PostgreSQL DBMS server, as well as HTML documentation for the whole
116
-
117
- : system. These client programs can be located on the same machine as the
118
-
119
- : PostgreSQL server, or on a remote machine that accesses a PostgreSQL server
120
-
121
- : over a network connection. The PostgreSQL server can be found in the
122
-
123
- : postgresql95-server sub-package.
124
-
125
- :
73
+ (省略)
126
-
127
- : If you want to manipulate a PostgreSQL database on a local or remote PostgreSQL
128
-
129
- : server, you need this package. You also need to install this package
130
-
131
- : if you're installing the postgresql95-server package.
132
74
 
133
75
 
134
76
 
@@ -138,11 +80,207 @@
138
80
 
139
81
  ```
140
82
 
141
- yum remove postgresql95
83
+ # yum remove postgresql95
142
-
84
+
143
- yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm
85
+ # yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm
86
+
144
-
87
+ 読み込んだプラグイン:changelog, fastestmirror
88
+
89
+ pgdg-centos95-9.5-3.noarch.rpm | 5.9 kB 00:00:00
90
+
91
+ /var/tmp/yum-root-BYCr8v/pgdg-centos95-9.5-3.noarch.rpm を調べています: pgdg-redhat-repo-42.0-6.noarch
92
+
93
+ /var/tmp/yum-root-BYCr8v/pgdg-centos95-9.5-3.noarch.rpm をインストール済みとして設定しています
94
+
95
+ 依存性の解決をしています
96
+
97
+ --> トランザクションの確認を実行しています。
98
+
99
+ ---> パッケージ pgdg-redhat-repo.noarch 0:42.0-6 を インストール
100
+
101
+ --> 依存性解決を終了しました。
102
+
103
+
104
+
105
+ 依存性を解決しました
106
+
107
+
108
+
109
+ =========================================================================================================================================
110
+
111
+ Package アーキテクチャー バージョン リポジトリー 容量
112
+
113
+ =========================================================================================================================================
114
+
115
+ インストール中:
116
+
117
+ pgdg-redhat-repo noarch 42.0-6 /pgdg-centos95-9.5-3.noarch 7.5 k
118
+
119
+
120
+
121
+ トランザクションの要約
122
+
123
+ =========================================================================================================================================
124
+
125
+ インストール 1 パッケージ
126
+
127
+
128
+
129
+ 合計容量: 7.5 k
130
+
131
+ インストール容量: 7.5 k
132
+
133
+ Is this ok [y/d/N]: y
134
+
135
+ Downloading packages:
136
+
137
+ Running transaction check
138
+
139
+ Running transaction test
140
+
141
+ Transaction test succeeded
142
+
143
+ Running transaction
144
+
145
+ インストール中 : pgdg-redhat-repo-42.0-6.noarch 1/1
146
+
147
+ 検証中 : pgdg-redhat-repo-42.0-6.noarch 1/1
148
+
149
+
150
+
151
+ インストール:
152
+
153
+ pgdg-redhat-repo.noarch 0:42.0-6
154
+
155
+
156
+
157
+ 完了しました!
158
+
159
+
160
+
145
- yum install postgresql95
161
+ # yum install postgresql95
162
+
163
+ 読み込んだプラグイン:changelog, fastestmirror
164
+
165
+ (省略)
166
+
167
+ 依存性の解決をしています
168
+
169
+ --> トランザクションの確認を実行しています。
170
+
171
+ ---> パッケージ postgresql95.x86_64 0:9.5.20-2PGDG.rhel7 を インストール
172
+
173
+ --> 依存性の処理をしています: postgresql95-libs(x86-64) = 9.5.20-2PGDG.rhel7 のパッケージ: postgresql95-9.5.20-2PGDG.rhel7.x86_64
174
+
175
+ --> トランザクションの確認を実行しています。
176
+
177
+ ---> パッケージ postgresql95-libs.x86_64 0:9.5.15-1PGDG.rhel7 を 更新
178
+
179
+ ---> パッケージ postgresql95-libs.x86_64 0:9.5.20-2PGDG.rhel7 を アップデート
180
+
181
+ --> 依存性解決を終了しました。
182
+
183
+
184
+
185
+ 依存性を解決しました
186
+
187
+
188
+
189
+ =========================================================================================================================================
190
+
191
+ Package アーキテクチャー バージョン リポジトリー 容量
192
+
193
+ =========================================================================================================================================
194
+
195
+ インストール中:
196
+
197
+ postgresql95 x86_64 9.5.20-2PGDG.rhel7 pgdg95 1.3 M
198
+
199
+ 依存性関連での更新をします:
200
+
201
+ postgresql95-libs x86_64 9.5.20-2PGDG.rhel7 pgdg95 225 k
202
+
203
+
204
+
205
+ トランザクションの要約
206
+
207
+ =========================================================================================================================================
208
+
209
+ インストール 1 パッケージ
210
+
211
+ 更新 ( 1 個の依存関係のパッケージ)
212
+
213
+
214
+
215
+ 総ダウンロード容量: 1.6 M
216
+
217
+ Is this ok [y/d/N]: y
218
+
219
+ Downloading packages:
220
+
221
+ Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
222
+
223
+ 警告: /var/cache/yum/x86_64/7/pgdg95/packages/postgresql95-9.5.20-2PGDG.rhel7.x86_64.rpm: ヘッダー V4 DSA/SHA1 Signature、鍵 ID 442df0f8: NOKEY
224
+
225
+ postgresql95-9.5.20-2PGDG.rhel7.x86_64.rpm の公開鍵がインストールされていません
226
+
227
+ (1/2): postgresql95-9.5.20-2PGDG.rhel7.x86_64.rpm | 1.3 MB 00:00:02
228
+
229
+ (2/2): postgresql95-libs-9.5.20-2PGDG.rhel7.x86_64.rpm | 225 kB 00:00:02
230
+
231
+ -----------------------------------------------------------------------------------------------------------------------------------------
232
+
233
+ 合計 681 kB/s | 1.6 MB 00:00:02
234
+
235
+ file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG から鍵を取得中です。
236
+
237
+ Importing GPG key 0x442DF0F8:
238
+
239
+ Userid : "PostgreSQL RPM Building Project <pgsqlrpms-hackers@pgfoundry.org>"
240
+
241
+ Fingerprint: 68c9 e2b9 1a37 d136 fe74 d176 1f16 d2e1 442d f0f8
242
+
243
+ Package : pgdg-redhat-repo-42.0-6.noarch (@/pgdg-centos95-9.5-3.noarch)
244
+
245
+ From : /etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
246
+
247
+ 上記の処理を行います。よろしいでしょうか? [y/N]y
248
+
249
+ Running transaction check
250
+
251
+ Running transaction test
252
+
253
+ Transaction test succeeded
254
+
255
+ Running transaction
256
+
257
+ 更新します : postgresql95-libs-9.5.20-2PGDG.rhel7.x86_64 1/3
258
+
259
+ インストール中 : postgresql95-9.5.20-2PGDG.rhel7.x86_64 2/3
260
+
261
+ 整理中 : postgresql95-libs-9.5.15-1PGDG.rhel7.x86_64 3/3
262
+
263
+ 検証中 : postgresql95-9.5.20-2PGDG.rhel7.x86_64 1/3
264
+
265
+ 検証中 : postgresql95-libs-9.5.20-2PGDG.rhel7.x86_64 2/3
266
+
267
+ 検証中 : postgresql95-libs-9.5.15-1PGDG.rhel7.x86_64 3/3
268
+
269
+
270
+
271
+ インストール:
272
+
273
+ postgresql95.x86_64 0:9.5.20-2PGDG.rhel7
274
+
275
+
276
+
277
+ 依存性を更新しました:
278
+
279
+ postgresql95-libs.x86_64 0:9.5.20-2PGDG.rhel7
280
+
281
+
282
+
283
+ 完了しました!
146
284
 
147
285
  ```
148
286
 

1

順番の変更

2020/01/24 07:40

投稿

hs_sc
hs_sc

スコア17

test CHANGED
File without changes
test CHANGED
@@ -9,28 +9,6 @@
9
9
  バージョン : 9.5.20
10
10
 
11
11
  リリース : 2PGDG.rhel7
12
-
13
-
14
-
15
- 結局、一旦アンインストールして、再インストールすることで、9.5.20にできました。
16
-
17
- ```
18
-
19
- yum remove postgresql95
20
-
21
- yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm
22
-
23
- yum install postgresql95
24
-
25
- ```
26
-
27
-
28
-
29
- このようなときは、一旦PostgreSQLをアンインストールしなければならないものなのでしょうか?
30
-
31
- アンインストールせずに、9.5.20にバージョンアップする方法がありましたら、ご教示いただけますと幸いです。
32
-
33
-
34
12
 
35
13
  ```
36
14
 
@@ -155,3 +133,21 @@
155
133
 
156
134
 
157
135
  ```
136
+
137
+ 結局、一旦アンインストールして、再インストールすることで、9.5.20にできました。
138
+
139
+ ```
140
+
141
+ yum remove postgresql95
142
+
143
+ yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm
144
+
145
+ yum install postgresql95
146
+
147
+ ```
148
+
149
+
150
+
151
+ このようなときは、一旦PostgreSQLをアンインストールしなければならないものなのでしょうか?
152
+
153
+ アンインストールせずに、9.5.20にバージョンアップする方法がありましたら、ご教示いただけますと幸いです。