rainer at ultra-secure.de
2020-Feb-24 10:42 UTC
[CentOS] Problems with reposync and createrepo on CentOS 7 for RHEL8/CentOS8 repo?
Hi, I'm trying to mirror the PostgreSQL12 RHEL8 repo: https://download.postgresql.org/pub/repos/yum/12/redhat/rhel-8-x86_64/ [root at 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 at 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?
Marek Blaha
2020-Feb-25 12:50 UTC
[CentOS] 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. -- Marek Blaha <mblaha at redhat.com> Red Hat Czech s.r.o. Software Engineer -- Marek Blaha <mblaha at redhat.com> Red Hat Czech s.r.o. Software Engineer On Mon, Feb 24, 2020 at 11:45 AM <rainer at ultra-secure.de> wrote:> > Hi, > > I'm trying to mirror the PostgreSQL12 RHEL8 repo: > > https://download.postgresql.org/pub/repos/yum/12/redhat/rhel-8-x86_64/ > > > [root at 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 at 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? > > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
rainer at ultra-secure.de
2020-Feb-25 13:35 UTC
[CentOS] Problems with reposync and createrepo on CentOS 7 for RHEL8/CentOS8 repo?
Am 2020-02-25 13:50, schrieb Marek Blaha:> 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):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
Apparently Analagous Threads
- Problems with reposync and createrepo on CentOS 7 for RHEL8/CentOS8 repo?
- How to Mirror CentOS8 repository in CentOS7 Server via reposync
- [PATCH] build: make linux download more flexible
- Any alternatives for the horrible reposync
- Using reposync to mirror updates