1 |
On 29/07/2017 17:25, Mick wrote: |
2 |
> On Saturday 29 Jul 2017 17:11:06 Alan McKinnon wrote: |
3 |
> |
4 |
>> Backup the postgres configs and database files, emerge -C all postgres |
5 |
>> versions, make sure there are no files left with postgres in the name, |
6 |
>> and emerge the version back that you want. Restore your backed up |
7 |
>> configs just in case the ebuild wreaked them. Start postgres, the db |
8 |
>> should be unaffected as all you did was replace binary code files. |
9 |
> |
10 |
> Thank you Alan for your help. I reinstalled the previous version 9.5.7, ran |
11 |
> eselect to (re)set postgresql to 9.6. Then uninstalled 9.5.7 and ended up |
12 |
> with a boxfull of broken symlinks again. o_O |
13 |
> |
14 |
> At this stage I could have done what you suggested, but instead I ran: |
15 |
> |
16 |
> find /usr/include -type l | while read f; do if [ ! -e "$f" ]; then ls -l |
17 |
> "$f"; fi; done |
18 |
> |
19 |
> which came up with a list of broken symlinks and repeated for /usr/bin and |
20 |
> /var/lib64. Removed/restored all broken symlinks to point to the new version |
21 |
> and restarted the database. |
22 |
> |
23 |
> Everything seems to be working as it should now. I don't know what to blame |
24 |
> now. My upgrade process which seems to have gone sideways this time, or the |
25 |
> eselect tool which may need to get cleverer with this package. |
26 |
> |
27 |
|
28 |
Glad to hear you got it all fixed. |
29 |
|
30 |
btw, there's a useful tool symlinks from the app-misc/symlinks packages |
31 |
that doues what you wanted with find without having to use find |
32 |
|
33 |
-- |
34 |
Alan McKinnon |
35 |
alan.mckinnon@×××××.com |