質問するログイン新規登録

質問編集履歴

3

タイトルの修正

2020/01/24 07:42

投稿

hs_sc
hs_sc

スコア17

title CHANGED
@@ -1,1 +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に上げたい
body CHANGED
File without changes

2

履歴を追加

2020/01/24 07:42

投稿

hs_sc
hs_sc

スコア17

title CHANGED
File without changes
body CHANGED
@@ -14,27 +14,7 @@
14
14
  Other repos take up 15 M of disk space (use --verbose for details)
15
15
  # yum check-update postgresql95
16
16
  読み込んだプラグイン:changelog, fastestmirror
17
- Determining fastest mirrors
18
- epel/x86_64/metalink | 9.5 kB 00:00:00
19
- * base: ty1.mirror.newmediaexpress.com
20
- * epel: www.ftp.ne.jp
17
+ (省略)
21
- * extras: ty1.mirror.newmediaexpress.com
22
- * remi-safe: ftp.riken.jp
23
- * updates: ty1.mirror.newmediaexpress.com
24
- base | 3.6 kB 00:00:00
25
- epel | 5.3 kB 00:00:00
26
- extras | 2.9 kB 00:00:00
27
- remi-safe | 3.0 kB 00:00:00
28
- updates | 2.9 kB 00:00:00
29
- (1/8): base/7/x86_64/group_gz | 165 kB 00:00:00
30
- (2/8): epel/x86_64/group_gz | 90 kB 00:00:00
31
- (3/8): extras/7/x86_64/primary_db | 153 kB 00:00:00
32
- (4/8): epel/x86_64/primary_db | 6.9 MB 00:00:00
33
- (5/8): updates/7/x86_64/primary_db | 5.9 MB 00:00:00
34
- (6/8): base/7/x86_64/primary_db | 6.0 MB 00:00:00
35
- (7/8): remi-safe/primary_db | 1.7 MB 00:00:00
36
- (8/8): epel/x86_64/updateinfo | 1.0 MB 00:00:00
37
- メールが /var/spool/mail/root にあります
38
18
  # yum info postgresql95
39
19
  読み込んだプラグイン:changelog, fastestmirror
40
20
  Loading mirror speeds from cached hostfile
@@ -54,23 +34,112 @@
54
34
  URL : http://www.postgresql.org/
55
35
  ライセンス : PostgreSQL
56
36
  説明 : PostgreSQL is an advanced Object-Relational database management system (DBMS).
57
- : The base postgresql package contains the client programs that you'll need to
58
- : access a PostgreSQL DBMS server, as well as HTML documentation for the whole
59
- : system. These client programs can be located on the same machine as the
60
- : PostgreSQL server, or on a remote machine that accesses a PostgreSQL server
61
- : over a network connection. The PostgreSQL server can be found in the
62
- : postgresql95-server sub-package.
63
- :
37
+ (省略)
64
- : If you want to manipulate a PostgreSQL database on a local or remote PostgreSQL
65
- : server, you need this package. You also need to install this package
66
- : if you're installing the postgresql95-server package.
67
38
 
68
39
  ```
69
40
  結局、一旦アンインストールして、再インストールすることで、9.5.20にできました。
70
41
  ```
71
- yum remove postgresql95
42
+ # yum remove postgresql95
72
- yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm
43
+ # yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm
44
+ 読み込んだプラグイン:changelog, fastestmirror
45
+ pgdg-centos95-9.5-3.noarch.rpm | 5.9 kB 00:00:00
46
+ /var/tmp/yum-root-BYCr8v/pgdg-centos95-9.5-3.noarch.rpm を調べています: pgdg-redhat-repo-42.0-6.noarch
47
+ /var/tmp/yum-root-BYCr8v/pgdg-centos95-9.5-3.noarch.rpm をインストール済みとして設定しています
48
+ 依存性の解決をしています
49
+ --> トランザクションの確認を実行しています。
50
+ ---> パッケージ pgdg-redhat-repo.noarch 0:42.0-6 を インストール
51
+ --> 依存性解決を終了しました。
52
+
53
+ 依存性を解決しました
54
+
55
+ =========================================================================================================================================
56
+ Package アーキテクチャー バージョン リポジトリー 容量
57
+ =========================================================================================================================================
58
+ インストール中:
59
+ pgdg-redhat-repo noarch 42.0-6 /pgdg-centos95-9.5-3.noarch 7.5 k
60
+
61
+ トランザクションの要約
62
+ =========================================================================================================================================
63
+ インストール 1 パッケージ
64
+
65
+ 合計容量: 7.5 k
66
+ インストール容量: 7.5 k
67
+ Is this ok [y/d/N]: y
68
+ Downloading packages:
69
+ Running transaction check
70
+ Running transaction test
71
+ Transaction test succeeded
72
+ Running transaction
73
+ インストール中 : pgdg-redhat-repo-42.0-6.noarch 1/1
74
+ 検証中 : pgdg-redhat-repo-42.0-6.noarch 1/1
75
+
76
+ インストール:
77
+ pgdg-redhat-repo.noarch 0:42.0-6
78
+
79
+ 完了しました!
80
+
73
- yum install postgresql95
81
+ # yum install postgresql95
82
+ 読み込んだプラグイン:changelog, fastestmirror
83
+ (省略)
84
+ 依存性の解決をしています
85
+ --> トランザクションの確認を実行しています。
86
+ ---> パッケージ postgresql95.x86_64 0:9.5.20-2PGDG.rhel7 を インストール
87
+ --> 依存性の処理をしています: postgresql95-libs(x86-64) = 9.5.20-2PGDG.rhel7 のパッケージ: postgresql95-9.5.20-2PGDG.rhel7.x86_64
88
+ --> トランザクションの確認を実行しています。
89
+ ---> パッケージ postgresql95-libs.x86_64 0:9.5.15-1PGDG.rhel7 を 更新
90
+ ---> パッケージ postgresql95-libs.x86_64 0:9.5.20-2PGDG.rhel7 を アップデート
91
+ --> 依存性解決を終了しました。
92
+
93
+ 依存性を解決しました
94
+
95
+ =========================================================================================================================================
96
+ Package アーキテクチャー バージョン リポジトリー 容量
97
+ =========================================================================================================================================
98
+ インストール中:
99
+ postgresql95 x86_64 9.5.20-2PGDG.rhel7 pgdg95 1.3 M
100
+ 依存性関連での更新をします:
101
+ postgresql95-libs x86_64 9.5.20-2PGDG.rhel7 pgdg95 225 k
102
+
103
+ トランザクションの要約
104
+ =========================================================================================================================================
105
+ インストール 1 パッケージ
106
+ 更新 ( 1 個の依存関係のパッケージ)
107
+
108
+ 総ダウンロード容量: 1.6 M
109
+ Is this ok [y/d/N]: y
110
+ Downloading packages:
111
+ Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
112
+ 警告: /var/cache/yum/x86_64/7/pgdg95/packages/postgresql95-9.5.20-2PGDG.rhel7.x86_64.rpm: ヘッダー V4 DSA/SHA1 Signature、鍵 ID 442df0f8: NOKEY
113
+ postgresql95-9.5.20-2PGDG.rhel7.x86_64.rpm の公開鍵がインストールされていません
114
+ (1/2): postgresql95-9.5.20-2PGDG.rhel7.x86_64.rpm | 1.3 MB 00:00:02
115
+ (2/2): postgresql95-libs-9.5.20-2PGDG.rhel7.x86_64.rpm | 225 kB 00:00:02
116
+ -----------------------------------------------------------------------------------------------------------------------------------------
117
+ 合計 681 kB/s | 1.6 MB 00:00:02
118
+ file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG から鍵を取得中です。
119
+ Importing GPG key 0x442DF0F8:
120
+ Userid : "PostgreSQL RPM Building Project <pgsqlrpms-hackers@pgfoundry.org>"
121
+ Fingerprint: 68c9 e2b9 1a37 d136 fe74 d176 1f16 d2e1 442d f0f8
122
+ Package : pgdg-redhat-repo-42.0-6.noarch (@/pgdg-centos95-9.5-3.noarch)
123
+ From : /etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
124
+ 上記の処理を行います。よろしいでしょうか? [y/N]y
125
+ Running transaction check
126
+ Running transaction test
127
+ Transaction test succeeded
128
+ Running transaction
129
+ 更新します : postgresql95-libs-9.5.20-2PGDG.rhel7.x86_64 1/3
130
+ インストール中 : postgresql95-9.5.20-2PGDG.rhel7.x86_64 2/3
131
+ 整理中 : postgresql95-libs-9.5.15-1PGDG.rhel7.x86_64 3/3
132
+ 検証中 : postgresql95-9.5.20-2PGDG.rhel7.x86_64 1/3
133
+ 検証中 : postgresql95-libs-9.5.20-2PGDG.rhel7.x86_64 2/3
134
+ 検証中 : postgresql95-libs-9.5.15-1PGDG.rhel7.x86_64 3/3
135
+
136
+ インストール:
137
+ postgresql95.x86_64 0:9.5.20-2PGDG.rhel7
138
+
139
+ 依存性を更新しました:
140
+ postgresql95-libs.x86_64 0:9.5.20-2PGDG.rhel7
141
+
142
+ 完了しました!
74
143
  ```
75
144
 
76
145
  このようなときは、一旦PostgreSQLをアンインストールしなければならないものなのでしょうか?

1

順番の変更

2020/01/24 07:40

投稿

hs_sc
hs_sc

スコア17

title CHANGED
File without changes
body CHANGED
@@ -4,18 +4,7 @@
4
4
  利用可能なパッケージ
5
5
  バージョン : 9.5.20
6
6
  リリース : 2PGDG.rhel7
7
-
8
- 結局、一旦アンインストールして、再インストールすることで、9.5.20にできました。
9
7
  ```
10
- yum remove postgresql95
11
- yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm
12
- yum install postgresql95
13
- ```
14
-
15
- このようなときは、一旦PostgreSQLをアンインストールしなければならないものなのでしょうか?
16
- アンインストールせずに、9.5.20にバージョンアップする方法がありましたら、ご教示いただけますと幸いです。
17
-
18
- ```
19
8
  # psql --version
20
9
  psql (PostgreSQL) 9.5.15
21
10
  # yum clean all
@@ -76,4 +65,13 @@
76
65
  : server, you need this package. You also need to install this package
77
66
  : if you're installing the postgresql95-server package.
78
67
 
79
- ```
68
+ ```
69
+ 結局、一旦アンインストールして、再インストールすることで、9.5.20にできました。
70
+ ```
71
+ yum remove postgresql95
72
+ yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm
73
+ yum install postgresql95
74
+ ```
75
+
76
+ このようなときは、一旦PostgreSQLをアンインストールしなければならないものなのでしょうか?
77
+ アンインストールせずに、9.5.20にバージョンアップする方法がありましたら、ご教示いただけますと幸いです。