CentOS7下使用yum安装PostgreSQL9.6

CentOS7下使用yum安装PostgreSQL9.6

实验环境

操作系统:CentOS Linux release 7.3.1611 (Core)

数据库系统: PostgreSQL 9.6.5

IP: 192.168.230.142

创建PostgreSQL9.6的yum源文件

[root@localhost ~]# yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
Loaded plugins: fastestmirror, langpacks
pgdg-centos96-9.6-3.noarch.rpm                                                                              | 4.7 kB  00:00:00     
Examining /var/tmp/yum-root-6xDwYA/pgdg-centos96-9.6-3.noarch.rpm: pgdg-centos96-9.6-3.noarch
Marking /var/tmp/yum-root-6xDwYA/pgdg-centos96-9.6-3.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package pgdg-centos96.noarch 0:9.6-3 will be installed
--> Finished Dependency Resolution
base/7/x86_64                                                                                               | 3.6 kB  00:00:00     
extras/7/x86_64                                                                                             | 3.4 kB  00:00:00     
updates/7/x86_64                                                                                            | 3.4 kB  00:00:00     

Dependencies Resolved

===================================================================================================================================
 Package                        Arch                    Version                 Repository                                    Size
===================================================================================================================================
Installing:
 pgdg-centos96                  noarch                  9.6-3                   /pgdg-centos96-9.6-3.noarch                  2.7 k

Transaction Summary
===================================================================================================================================
Install  1 Package

Total size: 2.7 k
Installed size: 2.7 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : pgdg-centos96-9.6-3.noarch                                                                                      1/1 
  Verifying  : pgdg-centos96-9.6-3.noarch                                                                                      1/1 

Installed:
  pgdg-centos96.noarch 0:9.6-3                                                                                                     

Complete!

安装PostgreSQL客户端

[root@localhost ~]# yum install postgresql96
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.sohu.com
 * extras: mirrors.sohu.com
 * updates: mirrors.sohu.com
Resolving Dependencies
--> Running transaction check
---> Package postgresql96.x86_64 0:9.6.5-1PGDG.rhel7 will be installed
--> Processing Dependency: postgresql96-libs(x86-64) = 9.6.5-1PGDG.rhel7 for package: postgresql96-9.6.5-1PGDG.rhel7.x86_64
--> Processing Dependency: libpq.so.5()(64bit) for package: postgresql96-9.6.5-1PGDG.rhel7.x86_64
--> Running transaction check
---> Package postgresql96-libs.x86_64 0:9.6.5-1PGDG.rhel7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值