【问题标题】:Unable to install pgcrypto无法安装 pgcrypto
【发布时间】:2019-07-04 07:47:11
【问题描述】:

我是 postgres 新手,我需要下载并安装 pgcrypto 扩展。我运行了下面的命令,但什么也没发生:

    [root@localhost /]# yum install pgcrypto
   Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.nbrc.ac.in
* extras: mirrors.nhanhoa.com
 * updates: mirror.nbrc.ac.in
No package pgcrypto available.
Error: Nothing to do

然后,我在google上查看了几个命令并尝试了以下:

    [root@localhost ~]# gppkg -r pgcrypto
-bash: gppkg: command not found

我在 centos 上使用 postgres 11.3。请让我知道适当的命令/链接,我可以从那里下载/安装 pgcrypto。任何帮助将不胜感激。

谢谢,

【问题讨论】:

    标签: postgresql encryption centos pgcrypto


    【解决方案1】:

    您可能正在寻找要安装的 postgresql11-contrib 软件包:

    # yum info postgresql11-contrib
    Loaded plugins: fastestmirror, ovl
    Loading mirror speeds from cached hostfile
     * base: centos.mirror.triple-it.nl
     * extras: mirror.nforce.com
     * updates: centos.mirror.triple-it.nl
    Available Packages
    Name        : postgresql11-contrib
    Arch        : x86_64
    Version     : 11.4
    Release     : 1PGDG.rhel7
    Size        : 617 k
    Repo        : pgdg11/7/x86_64
    Summary     : Contributed source and binaries distributed with PostgreSQL
    URL         : https://www.postgresql.org/
    License     : PostgreSQL
    Description : The postgresql11-contrib package contains various extension modules that are
                : included in the PostgreSQL distribution.
    

    【讨论】:

    • 哇..这真的很有效。你解决了我的问题。非常感谢@feike
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-26
    • 1970-01-01
    • 1970-01-01
    • 2020-10-12
    • 2023-01-30
    • 2014-01-08
    相关资源
    最近更新 更多