Re: Repos "archive" pour PostgreSQL 9.6 sur Rocky 8 🐘 ?

From: Sébastien Lardière <sebastien(at)lardiere(dot)net>
To: Michel PAYAN <michel(dot)payan(at)dbsqware(dot)com>
Cc: pgsql-fr-generale <pgsql-fr-generale(at)postgresql(dot)org>, pgsql-fr-generale-owner(at)lists(dot)postgresql(dot)org
Subject: Re: Repos "archive" pour PostgreSQL 9.6 sur Rocky 8 🐘 ?
Date: 2023-11-01 18:09:21
Message-ID: 79ecaf7b-05c5-49c6-b16b-9c86fc2cd202@lardiere.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-fr-generale

On 01/11/2023 18:00, Michel PAYAN wrote:
> Merci Sébastien,
>
> "Rassuré" de voir que ça fonctionne pour toi !
>
> J'ai tout refais de 0, "dnf clean dbcache", "dnf clean all" et remis
> le repo comme ton fichier.
> Résultat idem qu'avant ...
>
 À tout hasard, est-ce que ces paquets n'auraient pas été « freezé »
auparavant ? que donne la commande :

|dnf versionlock list|

> # dnf search postgresql96
> Last metadata expiration check: 0:01:52 ago on Wed 01 Nov 2023
> 05:53:25 PM CET.
> ==========================================================================
> Name Matched: postgresql96
> ===========================================================================
> postgresql96-devel.x86_64 : PostgreSQL development header files and
> libraries
> postgresql96-libs.x86_64 : The shared libraries required for any
> PostgreSQL clients
> postgresql96-odbc.x86_64 : PostgreSQL ODBC driver
> postgresql96-plpython.x86_64 : The Python procedural language for
> PostgreSQL
> postgresql96-tcl.x86_64 : A Tcl client library for PostgreSQL
>
> Bizarre, pourtant je suis en dernière version de Rocky "Rocky Linux
> release 8.8 (Green Obsidian)" !
> Etonnant de n'avoir qu'une partie du repo et pas l'autre ... :(
>
>
> Le mer. 1 nov. 2023 à 17:31, Sébastien Lardière
> <sebastien(at)lardiere(dot)net> a écrit :
>
> On 01/11/2023 13:18, Michel PAYAN wrote:
>> Bonjour à tous,
>>
>> J'utilise toujours des versions les plus courantes de PG mais
>> parfois, on nous demande de "faire moins bien".
>> Il me faut faire une install PostgreSQL 9.6 sur Rocky 8 pour
>> pouvoir faire plus tard une migration.
>> J'ai suivi ce MODOP :
>> https://yum.postgresql.org/repopackages/#pgredhatoldrepos
>>
>> _Donc :_
>> cat << EOF > /etc/yum.repos.d/pgdg-96.repo
>> [pgdg96]
>> name=PostgreSQL 9.6 RPMs for RHEL/CentOS 8
>> baseurl=https://yum-archive.postgresql.org/9.6/redhat/rhel-8-x86_64
>> enabled=1
>> gpgcheck=0
>> gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-96
>> EOF
>>
>> _Mais quand je cherche les packages :_
>>  # yum search postgresql96
>> Last metadata expiration check: 0:02:15 ago on Wed 01 Nov 2023
>> 01:00:38 PM CET.
>> ==============================================================================================
>> Name Matched: postgresql96
>> ==============================================================================================
>> postgresql96-devel.x86_64 : PostgreSQL development header files
>> and libraries
>> postgresql96-libs.x86_64 : The shared libraries required for any
>> PostgreSQL clients
>> postgresql96-odbc.x86_64 : PostgreSQL ODBC driver
>> postgresql96-plpython.x86_64 : The Python procedural language for
>> PostgreSQL
>> postgresql96-tcl.x86_64 : A Tcl client library for PostgreSQL
>>
>> Je n'ai ni le client postgresql96, ni le
>> serveur postgresql96-server ? (pas plus que les contribs d'ailleurs)
>>
>> Le repo archive n'est pas complet où je m'y prend mal ?
>>
>
> Bonjour,
>
> Je ne reproduis pas le problème : en appliquant la procédure,
> adaptée comme vous à RHEL8, je trouve bien le paquet postgresql96 :
>
>
> [root(at)pgrocky8 yum.repos.d]# cat pgdg-96.repo
> [pgdg96]
> name=PostgreSQL 9.6 RPMs for RHEL/CentOS 8
> baseurl=https://yum-archive.postgresql.org/9.6/redhat/rhel-8-x86_64
> enabled=1
> gpgcheck=0
> gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
> [root(at)pgrocky8 yum.repos.d]# dnf search postgresql96
> Last metadata expiration check: 0:01:48 ago on mer. 01 nov. 2023 17:24:09 CET.
> ======================================================================================= Name Exactly Matched: postgresql96 ========================================================================================
> postgresql96.x86_64 : PostgreSQL client programs and libraries
> =========================================================================================== Name Matched: postgresql96 ============================================================================================
> postgresql96-contrib.x86_64 : Contributed source and binaries distributed with PostgreSQL
> postgresql96-devel.x86_64 : PostgreSQL development header files and libraries
> postgresql96-docs.x86_64 : Extra documentation for PostgreSQL
> postgresql96-libs.x86_64 : The shared libraries required for any PostgreSQL clients
> postgresql96-odbc.x86_64 : PostgreSQL ODBC driver
> postgresql96-plperl.x86_64 : The Perl procedural language for PostgreSQL
> postgresql96-plpython.x86_64 : The Python procedural language for PostgreSQL
> postgresql96-plpython3.x86_64 : The Python3 procedural language for PostgreSQL
> postgresql96-pltcl.x86_64 : The Tcl procedural language for PostgreSQL
> postgresql96-server.x86_64 : The programs needed to create and run a PostgreSQL server
> postgresql96-tcl.x86_64 : A Tcl client library for PostgreSQL
> postgresql96-test.x86_64 : The test suite distributed with PostgreSQL
> [root(at)pgrocky8 yum.repos.d]# dnf info postgresql96
> Last metadata expiration check: 0:01:52 ago on mer. 01 nov. 2023 17:24:09 CET.
> Available Packages
> Name         : postgresql96
> Version      : 9.6.23
> Release      : 1PGDG.rhel8
> Architecture : x86_64
> Size         : 1.5 M
> Source       : postgresql96-9.6.23-1PGDG.rhel8.src.rpm
> Repository   : pgdg96
> Summary      : PostgreSQL client programs and libraries
> URL          :https://www.postgresql.org/
> License      : PostgreSQL
> Description  : PostgreSQL is an advanced Object-Relational database management system (DBMS).
>              : The base postgresql package contains the client programs that you'll need to
>              : access a PostgreSQL DBMS server, as well as HTML documentation for the whole
>              : system.  These client programs can be located on the same machine as the
>              : PostgreSQL server, or on a remote machine that accesses a PostgreSQL server
>              : over a network connection.  The PostgreSQL server can be found in the
>              : postgresql96-server sub-package.
>              :
>              : If you want to manipulate a PostgreSQL database on a local or remote PostgreSQL
>              : server, you need this package. You also need to install this package
>              : if you're installing the postgresql96-server package.
>
>
> Je ne vois pas ce qui ne va pas dans ce que vous avez fait, mais
> la procédure semble correcte.
>
> Ici, j'utilise dnf, mais yum donne les mêmes résultats.
>
>

--
Sébastien

In response to

Browse pgsql-fr-generale by date

  From Date Subject
Next Message Jehan-Guillaume (ioguix) de Rorthais 2023-11-01 22:08:25 Re: Repos "archive" pour PostgreSQL 9.6 sur Rocky 8 🐘 ?
Previous Message Sébastien Lardière 2023-11-01 16:31:14 Re: Repos "archive" pour PostgreSQL 9.6 sur Rocky 8 🐘 ?