pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Deinstallation
3+ messages / 3 participants
[nested] [flat]

* Deinstallation
@ 2006-02-23 16:18 Moritz Bayer <moritz.bayer@googlemail.com>
  2006-02-23 16:28 ` Re: Deinstallation Andy Shellam <andy@andycc.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Moritz Bayer @ 2006-02-23 16:18 UTC (permalink / raw)
  To: pgsql-admin

Hello again,

I've installed Postgres Version 8.1.3 on my Linux machine from sourcecode.
Before that, there was already the version 7.4 running.
May be a dumn question, but how do I deinstall the Version 7.4?

Thanks for your help,

Moritz

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Deinstallation
  2006-02-23 16:18 Deinstallation Moritz Bayer <moritz.bayer@googlemail.com>
@ 2006-02-23 16:28 ` Andy Shellam <andy@andycc.net>
  2006-02-23 23:23   ` Re: Deinstallation Andy Shellam <andy.shellam@mailnetwork.co.uk>
  0 siblings, 1 reply; 3+ messages in thread

From: Andy Shellam @ 2006-02-23 16:28 UTC (permalink / raw)
  To: Moritz Bayer <moritz.bayer@googlemail.com>; +Cc: pgsql-admin

Hi Moritz - you got 8.1.3 going then? Excellent :-D

You need to try a number of things to find the exact package for 7.4 to 
remove.

Firstly, see if either apt-get or yum is installed on your system.  Then 
you can do

apt-get remove pgsql
apt-get remove postgres
apt-get remove postgresql

(or replace apt-get with yum) - one of the above should work.

Make sure BEFORE YOU CONFIRM the uninstall that it is only removing the 
7.4 PGSQL binaries and nothing else.

Regards

Andy

Moritz Bayer wrote:
> Hello again,
>  
> I've installed Postgres Version 8.1.3 on my Linux machine from 
> sourcecode. Before that, there was already the version 7.4 running.
> May be a dumn question, but how do I deinstall the Version 7.4?
>  
> Thanks for your help,
>  
> Moritz
>
>  
> !DSPAM:43fde16715195598417964! 

-- 
the mail network - an alternative in a standardised world 	Andy Shellam
*the mail network (Server Support)*

0 845 838 0879   	Phone
www.mailnetwork.co.uk <http://www.mailnetwork.co.uk;   	Web
andy.shellam@mailnetwork.co.uk 
<mailto:andy.shellam@mailnetwork.co.uk>   	E-mail

Attachments:

logo_15p.gif (image/gif, 5.4K) download view image
phone.gif (image/gif, 1.1K) download view image
internet.gif (image/gif, 1.2K) download view image
email.gif (image/gif, 1.2K) download view image
^ permalink raw reply [nested|flat] 3+ messages in thread

* Re: Deinstallation
  2006-02-23 16:18 Deinstallation Moritz Bayer <moritz.bayer@googlemail.com>
  2006-02-23 16:28 ` Re: Deinstallation Andy Shellam <andy@andycc.net>
@ 2006-02-23 23:23   ` Andy Shellam <andy.shellam@mailnetwork.co.uk>
  0 siblings, 0 replies; 3+ messages in thread

From: Andy Shellam @ 2006-02-23 23:23 UTC (permalink / raw)
  To: Moritz Bayer <moritz.bayer@googlemail.com>; +Cc: pgsql-admin

Moritz,

The only problem you'll have with regard to configuration issues, is 
your local applications might try connecting using the 7.4 client 
libraries as opposed to the 8.1, however if you didn't add a --prefix 
option to your configure, it should overwrite the old libraries with the 
new references (not sure if this is definitely true or not.)

All your Postgres configuration files will be inside your data directory 
(created with initdb).  When upgrading from a major version (i.e. 7 to 
8) you need to dump the contents of your database from the 7.4 server 
FIRST using pg_dump BEFORE YOU KILL YOUR OLD SERVER - then when you're 
up with 8.1, use pg_restore.  I found this out the hard way!!

It is always best to avoid version conflicts.  If I were you, I would do 
the following:

1. With your 7.4 server running, dump your databases using pg_dump or 
pg_dumpall
2. Kill your 7.4 server and take a backup of your data directory (e.g. 
mv /path/to/pg_data /path/to/pg_data.OLD
3. Remove your PGSQL 8.1.3 install (cd into the source directory and do 
'make uninstall')
4. Install Yum (download RPM for your linux distro from 
http://rpmseek.com/rpm-pl/yum.html?hl=com&cs=yum:PN:0:0:0:0)
5. Use 'yum remove postgresql' to get rid of 7.4
6. Re-install your PGSQL 8.1.3 install (cd into the source directory and 
do 'make install')
7. initdb a new data directory (DON'T use your old one) and configure 
your 8.1 server
8. Start up your 8.1 server
9. Restore your dump using pg_restore
10. Configure user access in pg_hba.conf

The reason I've said to remove the PG 8.1.3 install first is that when 
removing 7.4, it might inadvertently remove the 8.1.3 libraries as well 
(if they've taken over the 7.4 ones.)

Note I've confirmed on Redhat Fedora the package is called "postgresql" 
- which is v7.4.

Regards

Andy

Moritz Bayer wrote:
> Hi Andy,
>  
> I guess I can call you my teacher pretty soon :-)
> Yes, the installation worked fine, the configuration isn't done yet. 
> I've the feeling, that there are some conflicts with the old version,
> although I followed the installation-procedere defined in the 
> INSTALL-file of the source-package and also from the book "Beginning 
> Database with PostgreSQL" from Neil Matthew.
>  
> So I want to get rid of the old version and start the configuration again.
> Now the System has neither apt-get nor yum installed. Do you have the 
> rpm or source to get both/either of one?
>  
> Thank you again,
> Moritz
>




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2006-02-23 23:23 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-23 16:18 Deinstallation Moritz Bayer <moritz.bayer@googlemail.com>
2006-02-23 16:28 ` Andy Shellam <andy@andycc.net>
2006-02-23 23:23   ` Andy Shellam <andy.shellam@mailnetwork.co.uk>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox