0

I installed postgres. It created a user account. I don't need postgres anymore. What are the steps I have to proceed to uninstall it completely from Ubuntu 14.04? (I didn't install the software over the Software-Center.

muru
  • 193,181
  • 53
  • 473
  • 722
empedokles
  • 3,843
  • 15
  • 44
  • 68
  • if not software center, then how? did you use apt-get or aptitude? – mchid Jan 26 '15 at 08:16
  • I think I did `deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main` as mentioned here: http://www.postgresql.org/download/linux/ubuntu/. I'm not sure though and I do not know where the source directory rests. – empedokles Jan 26 '15 at 13:42
  • okay, there you go – mchid Jan 26 '15 at 16:16
  • Unfortunately it doesn't find anything on the two first commands. However, I can see that there is a user PostgreSQL at the top right in Ubuntu. – empedokles Jan 27 '15 at 17:11

1 Answers1

0

First:

execute the following command:

sudo apt-get purge postgres

review the changes to be made and if you are happy accept the changes and continue.

Next:

remove the repository from /etc/apt/sources.list.d like so:

sudo rm /etc/apt/sources.list.d/pgdg.list

Finally:

sudo apt-get update
sudo apt-get autoclean
sudo apt-get autoremove

done.

mchid
  • 42,315
  • 7
  • 94
  • 147