You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

CentOS7下无法安装BDR-postgres:执行yum命令提示无可用包

Fixing "NO package postgresql-bdr94-bdr available" Error

Hey there, let's work through this error you're hitting when running sudo yum install postgresql-bdr94-bdr. That "package not available" message almost always ties back to a missing repository or a configuration hiccup—here's how to troubleshoot it step by step:

  • Check if the BDR repository is configured
    PostgreSQL BDR packages aren't included in default YUM repositories, so you need the BDR-specific repo set up first. Run this command to see if it's already enabled:

    yum repolist enabled | grep bdr
    

    If you get no output, the repo isn't configured yet—let's fix that next.

  • Add the PostgreSQL BDR 9.4 repository
    You have two options here:

    1. Obtain the official repository configuration package from the BDR maintainer's official resources and install it (this will automatically set up the repo for you)
    2. Create a repo file manually:
      • Make a new file named bdr94.repo in the /etc/yum.repos.d/ directory
      • Fill it with configuration details matching your OS version and architecture. This includes a valid base URL pointing to the BDR 9.4 package repository, and the correct GPG key info for package validation (you can get these specifics from the official BDR 9.4 documentation)
        Example structure for the repo file:
      [bdr94]
      name=PostgreSQL BDR 9.4 for [Your OS Version] - $basearch
      baseurl=[Valid BDR 9.4 Repository URL for Your OS]
      enabled=1
      gpgcheck=1
      gpgkey=[Valid GPG Key URL for the Repository]
      
  • Clean and refresh YUM cache
    Old or corrupted cache can sometimes stop YUM from detecting new packages. Run these commands to clear and rebuild the cache:

    sudo yum clean all
    sudo yum makecache
    
  • Double-check the package name
    While postgresql-bdr94-bdr is the correct name for BDR 9.4, it's worth verifying available packages to be sure. Run this search command:

    yum search postgresql-bdr
    

    If you don't see the 9.4 version listed, it might mean your OS doesn't support this older BDR release.

  • Verify system compatibility
    PostgreSQL BDR 9.4 is an older version, and it may not be supported on newer OS releases (like CentOS 8/RHEL 8 or later). If your system is too new, you'll need to either upgrade to a newer supported BDR version or use an OS release that's compatible with BDR 9.4 (like CentOS 7).

After working through these steps, try running the install command again:

sudo yum install postgresql-bdr94-bdr

内容的提问来源于stack exchange,提问作者Renjith JR

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 10:02:25