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.

4
  • if not software center, then how? did you use apt-get or aptitude? Commented Jan 26, 2015 at 8:16
  • I think I did deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main as mentioned here: postgresql.org/download/linux/ubuntu. I'm not sure though and I do not know where the source directory rests. Commented Jan 26, 2015 at 13:42
  • okay, there you go Commented Jan 26, 2015 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. Commented Jan 27, 2015 at 17:11

1 Answer 1

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.

3
  • E: Paket postgres couldn't be found. There is a user called postgres however. Commented Jan 28, 2015 at 10:09
  • Okay, run sudo apt-get install postgres and then sudo apt-get purge postgres Commented Feb 3, 2015 at 3:46
  • Again the same message: E: Paket postgres could not be found Commented Feb 4, 2015 at 8:42

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.