View previous topic :: View next topic |
Author |
Message |
revoohc Tux's lil' helper
Joined: 12 Oct 2002 Posts: 128
|
Posted: Thu May 06, 2004 6:48 pm Post subject: Help with postgresql install |
|
|
Does anyone know how to get postgrsql to install from portage w/o overwriting the older version?
I have an app at my work that runs on postgres 7.3 and I would like to install both 7.3 and 7.4 on my system so that I can start testing for the upgrade. I have installed 7.3.6 on my system and it is running fine, but am not sure how to get portage to install the 7.4 version w/o losing my 7.3.6.
How can I do this?
chris |
|
Back to top |
|
|
mathd n00b
Joined: 16 Apr 2004 Posts: 4
|
Posted: Thu May 06, 2004 7:35 pm Post subject: |
|
|
I don't know how to install the two version side by side but the data folder is not compatible between the two version.
You'll have to do a pg_dump first an reinsert the data in postgresql 7.4
math |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Thu May 06, 2004 9:57 pm Post subject: |
|
|
You would have to edit the ebuilds to get them to work together. At the moment the SLOT variable is set to zero, which means that you can only have one version of that program installed. You would have to change the SLOT variable in both ebuilds that you do to reflect the different versions.
You'll probably also want to change the directory where each ebuild installs things so that they don't overwrite each other. There's a guide to writing ebuilds here, which should help:
http://www.gentoo.org/doc/en/gentoo-howto.xml
When you modify ebuilds they get overwritten at the next emerge sync, so you should use the portage overlay in /usr/local/portage. And make a backup of any important data before doing anything. _________________ Search | Read | Answer | Report | Strip |
|
Back to top |
|
|
|