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.
Asked
Active
Viewed 244 times
0
1 Answers
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
- 43,546
- 8
- 97
- 150
-
E: Paket postgres couldn't be found. There is a user called postgres however. – empedokles Jan 28 '15 at 10:09
-
Okay, run
sudo apt-get install postgresand thensudo apt-get purge postgres– mchid Feb 03 '15 at 03:46 -
deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg mainas 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