I wanted to ask if there is a way to install PostgreSQL packages on Linux without an Internet connection, that is, whether to use the repositories.
There are clients who do not want to enable Internet access on their servers and I need to install PostgreSQL from packages with rpm.
I'm in the exact same situation. Thus, I directly download the relevant RPM packages to my laptop, then scp them to a "version subdirectory" on the Linux hosts.
These are the PowerShell commands which I used a few days ago to download the PG 16.8 packages for RHEL9. Add or remove packages, change to RHEL8, or even RHEL7 as you see fit. Some version numbers will though.