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.
1 Answer
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.
- E: Paket postgres couldn't be found. There is a user called postgres however.empedokles– empedokles2015-01-28 10:09:20 +00:00Commented Jan 28, 2015 at 10:09
- Okay, run
sudo apt-get install postgresand thensudo apt-get purge postgresmchid– mchid2015-02-03 03:46:27 +00:00Commented Feb 3, 2015 at 3:46 - Again the same message:
E: Paket postgres could not be foundempedokles– empedokles2015-02-04 08:42:24 +00:00Commented Feb 4, 2015 at 8:42
deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg mainas mentioned here: postgresql.org/download/linux/ubuntu. I'm not sure though and I do not know where the source directory rests.