# ¿Cómo desinstalar versiones antiguas de postgres?

**URL:** <https://meta.discourse.org/t/how-to-uninstall-old-versions-of-postgres/172506>\
**Category:** Self-hosting\
**Created:** [7 Diciembre, 2020 16:31 UTC](https://meta.discourse.org/t/how-to-uninstall-old-versions-of-postgres/172506 "2020-12-07T16:31:52Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)\
**Post date:** [7 Diciembre, 2020 16:31 UTC](https://meta.discourse.org/t/how-to-uninstall-old-versions-of-postgres/172506/1 "2020-12-07T16:31:52Z")

</div>

He notado que mi servidor tiene varias versiones de PostgreSQL instaladas:

```plaintext
grep -H '^port' /etc/postgresql/*/main/postgresql.conf
/etc/postgresql/10/main/postgresql.conf:port = 5432 # (el cambio requiere reinicio)
/etc/postgresql/12/main/postgresql.conf:port = 5434 # (el cambio requiere reinicio)
/etc/postgresql/13/main/postgresql.conf:port = 5435 # (el cambio requiere reinicio)

```

Creo que esto podría estar causando problemas al iniciar o detener el servicio de PostgreSQL mediante `service postgresql restart`.

Tengo dos preguntas:

1. ¿Cuál utiliza la versión más reciente de Discourse?
2. ¿Cómo puedo desinstalar de forma segura las otras versiones?

---

_[View the full topic](https://meta.discourse.org/t/how-to-uninstall-old-versions-of-postgres/172506)._
