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

回答編集履歴

1

おまけの探し方を追記

2019/05/29 02:26

投稿

CHERRY
CHERRY

スコア25234

answer CHANGED
@@ -1,3 +1,102 @@
1
1
  https://download.postgresql.org/pub/repos/yum/9.6/ のパッケージを使ったのであれば、`/usr/pgsql-9.6/bin/pg_ctl` に存在しないでしょうか?
2
2
 
3
- `/usr/pgsql-9.6/bin/pg_ctl` がありましたら、 `/usr/pgsql-9.6/bin` を PATH に追加してください。
3
+ `/usr/pgsql-9.6/bin/pg_ctl` がありましたら、 `/usr/pgsql-9.6/bin` を PATH に追加してください。
4
+
5
+ ----
6
+ (おまけ)
7
+ ` yum provides コマンド ` で、パッケージ内のコマンドを検索できるので、うちのテスト環境で、パッケージ内の `pg_ctl` を検索した結果をみて、上記を推測。
8
+
9
+ ```
10
+ # yum provides */pg_ctl
11
+ Loaded plugins: fastestmirror
12
+ Loading mirror speeds from cached hostfile
13
+ * base: ftp.iij.ad.jp
14
+ * epel: mirrors.aliyun.com
15
+ * epel-debuginfo: mirrors.aliyun.com
16
+ * epel-source: mirrors.aliyun.com
17
+ * extras: ftp.iij.ad.jp
18
+ * ius: hkg.mirror.rackspace.com
19
+ * remi-php72: ftp.riken.jp
20
+ * remi-safe: ftp.riken.jp
21
+ * updates: ftp.iij.ad.jp
22
+
23
+ postgresql-server-9.2.24-1.el7_5.x86_64 : The programs needed to create and run a PostgreSQL server
24
+ Repo : base
25
+ Matched from:
26
+ Filename : /usr/bin/pg_ctl
27
+
28
+
29
+ postgresql-upgrade-9.2.24-1.el7_5.x86_64 : Support for upgrading from the previous major release of
30
+ : PostgreSQL
31
+ Repo : base
32
+ Matched from:
33
+ Filename : /usr/lib64/pgsql/postgresql-8.4/bin/pg_ctl
34
+
35
+
36
+ postgresql92-postgresql-server-9.2.18-1.el7.x86_64 : The programs needed to create and run a PostgreSQL
37
+ : server
38
+ Repo : centos-sclo-rh
39
+ Matched from:
40
+ Filename : /opt/rh/postgresql92/root/usr/bin/pg_ctl
41
+
42
+
43
+ postgresql92-postgresql-upgrade-9.2.18-1.el7.x86_64 : Support for upgrading from the previous major release
44
+ : of PostgreSQL
45
+ Repo : centos-sclo-rh
46
+ Matched from:
47
+ Filename : /opt/rh/postgresql92/root/usr/lib64/pgsql/postgresql-8.4/bin/pg_ctl
48
+
49
+
50
+ postgresql96-server-9.6.11-1PGDG.rhel7.x86_64 : The programs needed to create and run a PostgreSQL server
51
+ Repo : pgdg96
52
+ Matched from:
53
+ Filename : /usr/pgsql-9.6/bin/pg_ctl
54
+
55
+
56
+ postgresql96-server-9.6.12-1PGDG.rhel7.x86_64 : The programs needed to create and run a PostgreSQL server
57
+ Repo : pgdg96
58
+ Matched from:
59
+ Filename : /usr/pgsql-9.6/bin/pg_ctl
60
+
61
+
62
+ postgresql96-server-9.6.13-1PGDG.rhel7.x86_64 : The programs needed to create and run a PostgreSQL server
63
+ Repo : pgdg96
64
+ Matched from:
65
+ Filename : /usr/pgsql-9.6/bin/pg_ctl
66
+
67
+
68
+ rh-postgresql10-postgresql-server-10.3-2.el7.x86_64 : The programs needed to create and run a PostgreSQL
69
+ : server
70
+ Repo : centos-sclo-rh
71
+ Matched from:
72
+ Filename : /opt/rh/rh-postgresql10/root/usr/bin/pg_ctl
73
+ Matched from:
74
+ Filename : /opt/rh/rh-postgresql96/root/usr/bin/pg_ctl
75
+
76
+
77
+ rh-postgresql96-postgresql-server-9.6.10-1.el7.x86_64 : The programs needed to create and run a PostgreSQL
78
+ : server
79
+ Repo : centos-sclo-rh
80
+ Matched from:
81
+ Filename : /opt/rh/rh-postgresql96/root/usr/bin/pg_ctl
82
+
83
+
84
+ rh-postgresql96-postgresql-server-syspaths-9.6.5-2.el7.x86_64 : Convenient wrappers for the
85
+ ...: rh-postgresql96-postgresql-server package; replaces the postgresql-server package
86
+ Repo : centos-sclo-rh
87
+ Matched from:
88
+ Filename : /usr/bin/pg_ctl
89
+
90
+
91
+ rh-postgresql96-postgresql-server-syspaths-9.6.10-1.el7.x86_64 : Convenient wrappers for the
92
+ ...: rh-postgresql96-postgresql-server package; replaces the postgresql-server package
93
+ Repo : centos-sclo-rh
94
+ Matched from:
95
+ Filename : /usr/bin/pg_ctl
96
+
97
+
98
+ postgresql96-server-9.6.11-1PGDG.rhel7.x86_64 : The programs needed to create and run a PostgreSQL server
99
+ Repo : @pgdg96
100
+ Matched from:
101
+ Filename : /usr/pgsql-9.6/bin/pg_ctl
102
+ ```