Lists: | pgsql-fr-generale |
---|
From: | Michel PAYAN <michel(dot)payan(at)dbsqware(dot)com> |
---|---|
To: | pgsql-fr-generale <pgsql-fr-generale(at)postgresql(dot)org>, pgsql-fr-generale-owner(at)lists(dot)postgresql(dot)org |
Subject: | Repos "archive" pour PostgreSQL 9.6 sur Rocky 8 🐘 ? |
Date: | 2023-11-01 12:18:22 |
Message-ID: | CA+e-ryg-hqvfgsROCTkBrP4exZ+G-w9RffgdUYEX2mgKU+mYpw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-fr-generale |
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 ?
Cordialement, Best regards
--------------------------------------------
*Michel PAYAN*
*M: +33 (0)6 03 62 54 86*
*T: **+33 (0)4 84 91 00 96*
*E*: michel(dot)payan(at)dbsqware(dot)com
*dbSQWare*
Hôtel technologique "Puits Morandat"
1480 avenue d'Arménie - 13120 Gardanne
Siège social / Adresse administrative
397 rue Carraire du Boulard
13480 Cabriès - France
--------------------------------------------
From: | Sébastien Lardière <sebastien(at)lardiere(dot)net> |
---|---|
To: | Michel PAYAN <michel(dot)payan(at)dbsqware(dot)com>, 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 16:31:14 |
Message-ID: | 30caab5c-1013-4649-b44b-4ae7d447d8c6@lardiere.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-fr-generale |
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 :/
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
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 |
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 :/
> 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
From: | "Jehan-Guillaume (ioguix) de Rorthais" <ioguix(at)free(dot)fr> |
---|---|
To: | Michel PAYAN <michel(dot)payan(at)dbsqware(dot)com> |
Cc: | pgsql-fr-generale <pgsql-fr-generale(at)postgresql(dot)org> |
Subject: | Re: Repos "archive" pour PostgreSQL 9.6 sur Rocky 8 🐘 ? |
Date: | 2023-11-01 22:08:25 |
Message-ID: | 20231101230825.36c649d4@karst |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-fr-generale |
On Wed, 1 Nov 2023 13:18:22 +0100
Michel PAYAN <michel(dot)payan(at)dbsqware(dot)com> 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 ?
Si tu veux utiliser les paquets fournis par le repo PGDG, il te manque juste
une étape dans ta procédure: désactiver le module stream "postgresql":
dnf module disable postgresql
J'ai vérifié avant/après cette commande, les paquets 9.6 PGDG apparaissent bien.
Mais il y a encore plus simple, la 9.6 est dispo en module stream pour
PostgreSQL. Tu peux donc installer la 9.6 (ou d'autres) sans passer par les
paquets PGDG si besoin. Voici un exemple:
# dnf module enable postgresql:9.6
# dnf module list postgresql
...
Rocky Linux 8 - AppStream
Name Stream Profiles Summary
postgresql 9.6 [e] client, server [d] PostgreSQL server and client module
postgresql 10 [d] client, server [d] PostgreSQL server and client module
postgresql 12 client, server [d] PostgreSQL server and client module
postgresql 13 client, server [d] PostgreSQL server and client module
postgresql 15 client, server [d] PostgreSQL server and client module
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
# dnf install postgresql postgresql-server
[...]
Dependencies resolved.
===========================================================================
Package Arch Version Repo Size
===========================================================================
Installing:
postgresql x86_64 9.6.22-1.module+el8.5.0+687+7cd82e08 appstream 1.4 M
postgresql-server
x86_64 9.6.22-1.module+el8.5.0+687+7cd82e08 appstream 5.0 M
Installing dependencies:
libpq x86_64 13.5-1.el8 appstream 197 k
Transaction Summary
===========================================================================
Install 3 Packages
[...]
++