# Problems installing Postgresql

**URL:** <https://discussion.fedoraproject.org/t/problems-installing-postgresql/149990>\
**Category:** Ask Fedora\
**Created:** [April 22, 2025, 5:45am UTC](https://discussion.fedoraproject.org/t/problems-installing-postgresql/149990 "2025-04-22T05:45:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jolupa](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/jolupa/32/6613_2.png) [@jolupa](https://discussion.fedoraproject.org/u/jolupa)\
**Post date:** [April 22, 2025, 5:45am UTC](https://discussion.fedoraproject.org/t/problems-installing-postgresql/149990/1 "2025-04-22T05:45:55Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![ernie-07](https://avatars.discourse-cdn.com/v4/letter/e/603e79/32.png) [@ernie-07](https://discussion.fedoraproject.org/u/ernie-07)\
**Post date:** [April 22, 2025, 5:56am UTC](https://discussion.fedoraproject.org/t/problems-installing-postgresql/149990/2 "2025-04-22T05:56:46Z")

</div>

Have a look at these docs:

[PostgreSQL](https://docs.fedoraproject.org/en-US/quick-docs/postgresql/)

[Install pgAdmin 4 on Fedora 41/40/39/38](https://computingforgeeks.com/how-to-install-pgadmin-on-centos-fedora/)

---

<div class="post-metadata">

**Author:** ![jolupa](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/jolupa/32/6613_2.png) [@jolupa](https://discussion.fedoraproject.org/u/jolupa)\
**Post date:** [April 22, 2025, 7:06am UTC](https://discussion.fedoraproject.org/t/problems-installing-postgresql/149990/4 "2025-04-22T07:06:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jolupa](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/jolupa/32/6613_2.png) [@jolupa](https://discussion.fedoraproject.org/u/jolupa)\
**Post date:** [April 22, 2025, 7:09am UTC](https://discussion.fedoraproject.org/t/problems-installing-postgresql/149990/5 "2025-04-22T07:09:03Z")

</div>

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… 🧐

---

<div class="post-metadata">

**Author:** ![Espionage724](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/espionage724/32/6543_2.png) [@Espionage724](https://discussion.fedoraproject.org/u/Espionage724)\
**Post date:** [April 22, 2025, 9:18am UTC](https://discussion.fedoraproject.org/t/problems-installing-postgresql/149990/7 "2025-04-22T09:18:36Z")

</div>

> [@jolupa](#):
>
> Anyone can point me to another solution instead of enabling and disabling repos?

Do you have to use Postgresql from a special repo?

16 exists [for F41](https://koji.fedoraproject.org/koji/packageinfo?packageID=39023), but 17 also exists [for F42](https://koji.fedoraproject.org/koji/packageinfo?packageID=41049) 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](https://discussion.fedoraproject.org/t/postgres-not-turning-on/148575)

---

<div class="post-metadata">

**Author:** ![jolupa](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/jolupa/32/6613_2.png) [@jolupa](https://discussion.fedoraproject.org/u/jolupa)\
**Post date:** [April 22, 2025, 12:04pm UTC](https://discussion.fedoraproject.org/t/problems-installing-postgresql/149990/8 "2025-04-22T12:04:13Z")

</div>

I will try this later. Thanks!

---

<div class="post-metadata">

**Author:** ![jolupa](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/jolupa/32/6613_2.png) [@jolupa](https://discussion.fedoraproject.org/u/jolupa)\
**Post date:** [April 22, 2025, 12:05pm UTC](https://discussion.fedoraproject.org/t/problems-installing-postgresql/149990/9 "2025-04-22T12:05:55Z")

</div>

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…
