Re: issue with Postgres uninstallation - Mailing list pgsql-admin

From Greg Smith
Subject Re: issue with Postgres uninstallation
Date
Msg-id 4C930518.1090402@2ndquadrant.com
Whole thread Raw
In response to Re: issue with Postgres uninstallation  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-admin
Scott Marlowe wrote:
> You do not need the packages to uninstall them.  do this:
>
> rpm -qa|grep -i postgres
>
> and see what packages are listed.
>
> Then
>
> rpm -e packagename1 packagename2 ...
>
> to remove them all.
>

Note that you may have issues removing the compat-postgresql-libs
packages, as things other than the main database sofware you can have
installed will rely on those.  Here's what I do to get rid of all the
rest of them in one easy command:

rpm -qa | egrep "^postgresql" | xargs rpm -e

--
Greg Smith, 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD
PostgreSQL Training, Services and Support  www.2ndQuadrant.us
Author, "PostgreSQL 9.0 High Performance"    Pre-ordering at:
https://www.packtpub.com/postgresql-9-0-high-performance/book


pgsql-admin by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: issue with Postgres uninstallation
Next
From: Anuj Pankaj
Date:
Subject: Re: issue with Postgres uninstallation