Created
April 21, 2015 02:51
-
-
Save 85636682/6fbdd74ac1a3c1f91bdb to your computer and use it in GitHub Desktop.
ubuntu删除postgresql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps that worked for me on Ubuntu 8.04.2 to remove postgres 8.3 | |
List All Postgres related packages | |
dpkg -l | grep postgres | |
ii postgresql 8.3.17-0ubuntu0.8.04.1 object-relational SQL database (latest versi | |
ii postgresql-8.3 8.3.9-0ubuntu8.04 object-relational SQL database, version 8.3 | |
ii postgresql-client 8.3.9-0ubuntu8.04 front-end programs for PostgreSQL (latest ve | |
ii postgresql-client-8.3 8.3.9-0ubuntu8.04 front-end programs for PostgreSQL 8.3 | |
ii postgresql-client-common 87ubuntu2 manager for multiple PostgreSQL client versi | |
ii postgresql-common 87ubuntu2 PostgreSQL database-cluster manager | |
ii postgresql-contrib 8.3.9-0ubuntu8.04 additional facilities for PostgreSQL (latest | |
ii postgresql-contrib-8.3 8.3.9-0ubuntu8.04 additional facilities for PostgreSQL | |
Remove all above listed | |
sudo apt-get --purge remove postgresql postgresql-8.3 postgresql-client postgresql-client-8.3 postgresql-client-common postgresql-common postgresql-contrib postgresql-contrib-8.3 | |
Remove the following folders | |
sudo rm -rf /var/lib/postgresql/ | |
sudo rm -rf /var/log/postgresql/ | |
sudo rm -rf /etc/postgresql/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment