Problems installing Postgresql

Hi!
I normally install Postgresql from the Postgresql repository without any problem.
But starting from F41 to install it I have to disable updates repo and enable the postgres repository, to install the correct package.
Anyone can point me to another solution instead of enabling and disabling repos?
Thanks a lot!

Have a look at these docs:

PostgreSQL

Install pgAdmin 4 on Fedora 41/40/39/38

Yeah! I read the docs :sweat_smile: and the installation in F40 was working perfectly.

The dnf repolist shows the Postgresql repo activated, in the last positions of the list, maybe is an order problem? But the packages are called different in fedora repos is called postgresql-server and in the postgres repos is called postgres16-server… :face_with_monocle:

Here’s the workaround:

sudo dnf config-manager setopt postgresql\*.priority=1

The repo ID should mach the output:

dnf repolist

Do you have to use Postgresql from a special repo?

16 exists for F41, but 17 also exists for F42 all in default Fedora repos.

Someone had issues with starting the server presumably from Postgresql’s official repo, but 16 and 17 started fine from a clean install for me F42: Postgres not turning on

I will try this later. Thanks!

1 Like

I use it for a container I made. I don’t know why I used postgres from another repo, some problem I have I time ago?! Maybe I should try to use postgres from the fedora repos…