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
  • 207,228
empedokles
  • 4,023

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
  • 44,904
  • 8
  • 102
  • 162