Problems With Reposync And Createrepo On CentOS 7 For RHEL8/CentOS8 Repo?

Home » CentOS » Problems With Reposync And Createrepo On CentOS 7 For RHEL8/CentOS8 Repo?
CentOS 2 Comments

Hi,

I’m trying to mirror the PostgreSQL12 RHEL8 repo:

https://download.PostgreSQL.org/pub/repos/yum/12/redhat/rhel-8-x86_64/

[root@cobbler yum.repos.d]# cat pgdg-12-CentOS8.repo

# PGDG Red Hat Enterprise Linux / CentOS stable repositories:

[pgdg12-rhel8]
name=PostgreSQL 12 for RHEL/CentOS $releasever – $basearch baseurl=https://download.PostgreSQL.org/pub/repos/yum/12/redhat/rhel-8-x86_64
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG

# Source RPMs (SRPM), and their testing repositories:

Then I run:

reposync –repoid=pgdg12-rhel8 –download_path=/repo/8

createrepo /repo/8/pgdg12-rhel8

However, when I try to install it on the target-server, it just doesn’t find the PostgreSQL12 binaries.

[root@my-db11-test yum.repos.d]# dnf search PostgreSQL12
Last metadata expiration check: 0:24:06 ago on Mon 24 Feb 2020 11:18:20
AM CET.
===================================================================================================================Name & Summary Matched: PostgreSQL12
====================================================================================================================PostgreSQL12-debugsource.x86_64 : Debug sources for package PostgreSQL12
PostgreSQL12-debuginfo.x86_64 : Debug information for package PostgreSQL12
PostgreSQL12-libs-debuginfo.x86_64 : Debug information for package PostgreSQL12-libs PostgreSQL12-test-debuginfo.x86_64 : Debug information for package PostgreSQL12-test PostgreSQL12-devel-debuginfo.x86_64 : Debug information for package PostgreSQL12-devel PostgreSQL12-pltcl-debuginfo.x86_64 : Debug information for package PostgreSQL12-pltcl PostgreSQL12-plperl-debuginfo.x86_64 : Debug information for package PostgreSQL12-plperl PostgreSQL12-server-debuginfo.x86_64 : Debug information for package PostgreSQL12-server PostgreSQL12-contrib-debuginfo.x86_64 : Debug information for package PostgreSQL12-contrib PostgreSQL12-llvmjit-debuginfo.x86_64 : Debug information for package PostgreSQL12-llvmjit PostgreSQL12-plpython-debuginfo.x86_64 : Debug information for package PostgreSQL12-plpython PostgreSQL12-plpython3-debuginfo.x86_64 : Debug information for package PostgreSQL12-plpython3
========================================================================================================================Name Matched: PostgreSQL12
=========================================================================================================================PostgreSQL12-libs.x86_64 : The shared libraries required for any PostgreSQL clients PostgreSQL12-odbc.x86_64 : PostgreSQL ODBC driver PostgreSQL12-devel.x86_64 : PostgreSQL development header files and libraries PostgreSQL12-llvmjit.x86_64 : Just-in-time compilation support for PostgreSQL
PostgreSQL12-plpython.x86_64 : The Python procedural language for PostgreSQL

Is there something obvious (or not so obvious) that I forgot?

2 thoughts on - Problems With Reposync And Createrepo On CentOS 7 For RHEL8/CentOS8 Repo?

  • Hi, I tried to reproduce the issue but without success, everything seems to be working fine (I’ve copied repodata directory created by the reposync on CentOS7 machine to RHEL8
    server to /tmp/pg12repo directory):

    RHEL8 # dnf search PostgreSQL12 –repofrompath=a,/tmp/pg12repo –repoid=a Added a repo from /tmp/pg12repo a
    204 MB/s | 784 kB 00:00
    ==================================== Name Exactly Matched:
    PostgreSQL12 ===================================PostgreSQL12.x86_64 : PostgreSQL client programs and libraries
    =================================== Name & Summary Matched:
    PostgreSQL12 ==================================PostgreSQL12-debugsource.x86_64 : Debug sources for package PostgreSQL12
    PostgreSQL12-debuginfo.x86_64 : Debug information for package PostgreSQL12
    PostgreSQL12-libs-debuginfo.x86_64 : Debug information for package PostgreSQL12-libs PostgreSQL12-test-debuginfo.x86_64 : Debug information for package PostgreSQL12-test PostgreSQL12-devel-debuginfo.x86_64 : Debug information for package PostgreSQL12-devel PostgreSQL12-pltcl-debuginfo.x86_64 : Debug information for package PostgreSQL12-pltcl PostgreSQL12-plperl-debuginfo.x86_64 : Debug information for package PostgreSQL12-plperl PostgreSQL12-server-debuginfo.x86_64 : Debug information for package PostgreSQL12-server PostgreSQL12-contrib-debuginfo.x86_64 : Debug information for package PostgreSQL12-contrib PostgreSQL12-llvmjit-debuginfo.x86_64 : Debug information for package PostgreSQL12-llvmjit PostgreSQL12-plpython-debuginfo.x86_64 : Debug information for package PostgreSQL12-plpython PostgreSQL12-plpython3-debuginfo.x86_64 : Debug information for package PostgreSQL12-plpython3
    ======================================== Name Matched: PostgreSQL12
    =======================================PostgreSQL12-docs.x86_64 : Extra documentation for PostgreSQL
    PostgreSQL12-libs.x86_64 : The shared libraries required for any PostgreSQL clients PostgreSQL12-odbc.x86_64 : PostgreSQL ODBC driver PostgreSQL12-test.x86_64 : The test suite distributed with PostgreSQL
    PostgreSQL12-devel.x86_64 : PostgreSQL development header files and libraries PostgreSQL12-pltcl.x86_64 : The Tcl procedural language for PostgreSQL
    PostgreSQL12-plperl.x86_64 : The Perl procedural language for PostgreSQL
    PostgreSQL12-server.x86_64 : The programs needed to create and run a PostgreSQL server PostgreSQL12-contrib.x86_64 : Contributed source and binaries distributed with PostgreSQL
    PostgreSQL12-llvmjit.x86_64 : Just-in-time compilation support for PostgreSQL
    PostgreSQL12-plpython.x86_64 : The Python procedural language for PostgreSQL
    PostgreSQL12-plpython3.x86_64 : The Python3 procedural language for PostgreSQL

    Are you sure that the packages from the ‘reposync
    –repoid=pgdg12-rhel8 –download_path=/repo/8’
    were correctly downloaded? For deeper investigation the generated repository metadata
    (/repo/8/pgdg12-rhel8/repodata directory) would be needed. As far as your question is concerned – no, I do not see anything you forgot.

    M.

  • Am 2020-02-25 13:50, schrieb Marek Blaha:

    Hi,

    you are right. I later realized that I forgot to add a step:

    dnf -qy module disable PostgreSQL

    I’m sorry for the noise.

    It would probably do well for me to read the documentation…

    Even more so, as RedHat seems to be the only one in Linux-land that produces coherent and up-to-date documentation – and receives comparatively little praise for it.

    Best Regards Rainer