Minor EDB Postgres Extended Server upgrade of RPM packages v17
If you used dnf
to install an RPM package of EDB Postgres Extended Server (on RHEL, AlmaLinux, Rocky Linux), use dnf
to perform a minor version upgrade of the packages.
Overview
Check for available updates with
dnf check-update
.Upgrade the EDB Postgres Extended Server packages with
dnf update
.Restart the server with
pg_ctl
.Verify the server version with psql.
Worked example
To list the package updates available for your system, open a command line, assume root privileges, and enter the command:
sudo dnf check-update <package_name>
For example, if you want to upgrade to the latest minor version of EDB Postgres Extended Server 17, run:
sudo dnf check-update edb-postgresextended17
Note
You can include wildcard values in the search term. For example, if you're looking for EDB Packages, you can run
sudo dnf check-update edb-*
. For more information about usingdnf
commands and options, enterdnf --help
at the command line.Once you've figured the name and version of the package you want to install, use
dnf update
to install the package:sudo dnf update edb-postgresextended17
Output================================================================================ Package Arch Version Repository Size ================================================================================ Upgrading: edb-postgresextended17 x86_64 17.2-1.el9 enterprisedb-enterprise 1.7 M edb-postgresextended17-contrib x86_64 17.2-1.el9 enterprisedb-enterprise 724 k edb-postgresextended17-libs x86_64 17.2-1.el9 enterprisedb-enterprise 330 k edb-postgresextended17-server x86_64 17.2-1.el9 enterprisedb-enterprise 6.8 M Transaction Summary ================================================================================ Upgrade 4 Packages Total download size: 9.5 M Is this ok [y/N]
Confirm with
y
. The output displays an overview of all performed processes, where you can see the packages that were upgraded:y
Outputedb-postgresextended17-17.2-1.el9.x86_64 edb-postgresextended17-contrib-17.2-1.el9.x86_64 edb-postgresextended17-libs-17.2-1.el9.x86_64 edb-postgresextended17-server-17.2-1.el9.x86_64
To finalize the upgrade, restart the server. Replace
<path_to_data_directory>
with the path to the data directory of the server or servers you're upgrading:/usr/edb/pge17/bin/pg_ctl -D <path_to_data_directory> restart
For example:
/usr/edb/pge17/bin/pg_ctl -D /var/lib/edb-pge/17/upgrade restart
Verify the expected database version is running by connecting to psql:
/usr/edb/pge17/bin/psql
Check the server version:
SHOW server_version;
Outputserver_version -------------------------------------------- 17.2 (EDB Postgres Extended Server 17.2.0)
- On this page
- Overview
- Worked example