Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pkg management

1 view
Skip to first unread message

James B. Byrne via freebsd-questions

unread,
Jan 12, 2017, 6:08:18 PM1/12/17
to
In December past I installed these packages using pkg:

postgresql96-server-9.6.1_1
postgresql96-client-9.6.1
postgresql96-contrib-9.6.1
postgresql96-docs-9.6.1_1

When I ran pkg upgrade today I saw this:

pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
[root@inet13 /usr/ports/databases]# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking for upgrades (53 candidates): 100%
Processing candidates (53 candidates): 100%
Checking integrity... done (2 conflicting)
- postgresql93-client-9.3.15_1 conflicts with
postgresql96-client-9.6.1 on /usr/local/bin/clusterdb
- postgresql93-client-9.3.15_1 conflicts with
postgresql96-client-9.6.1 on /usr/local/bin/clusterdb
Checking integrity... done (0 conflicting)
The following 6 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
postgresql96-server-9.6.1_1
postgresql96-client-9.6.1
postgresql96-contrib-9.6.1
postgresql96-docs-9.6.1_1

New packages to be INSTALLED:
postgresql93-client: 9.3.15_1

Installed packages to be REINSTALLED:
p5-DBD-Pg-3.5.3 (direct dependency changed: postgresql93-client)

Number of packages to be removed: 4
Number of packages to be installed: 1
Number of packages to be reinstalled: 1

The operation will free 37 MiB.

Proceed with this action? [y/N]: n

Why is pkg trying to remove the version I have installed and replace
it with an older one? Is there some switch I am to set somewhere to
tell pkg not to do this?


--
*** e-Mail is NOT a SECURE channel ***
Do NOT transmit sensitive data via e-Mail
Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne mailto:Byr...@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3

_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Matthew Seaman

unread,
Jan 13, 2017, 2:53:32 AM1/13/17
to
On 12/01/2017 16:21, James B. Byrne via freebsd-questions wrote:
> Why is pkg trying to remove the version I have installed and replace
> it with an older one? Is there some switch I am to set somewhere to
> tell pkg not to do this?

You're trying to install a different package that has a dependency on
postgresql93-client -- but postgresql93-client conflicts with
postgresql96-client so pkg would have to remove it to install
postgresql93 as you requested. Then it also has to remove
postgresql96-{server,contrib,docs} as those all depend on
postgresql96-client.

postgresql93 is the default version of postgresql in ports at the
moment. If you're using the standard system packages then anything that
depends on postgresql will cause the installation of
postgresql93-client, and result in the effect you described. If you
want to use postgresql96 instead, then you need to build your own packages

Cheers,

Matthew


signature.asc

James B. Byrne via freebsd-questions

unread,
Jan 13, 2017, 7:07:30 PM1/13/17
to

On Fri, January 13, 2017 02:52, Matthew Seaman wrote:

>
> postgresql93 is the default version of postgresql in ports at the
> moment. If you're using the standard system packages then anything
> that
> depends on postgresql will cause the installation of
> postgresql93-client, and result in the effect you described. If you
> want to use postgresql96 instead, then you need to build your own
> packages
>

Which is exactly what I am trying to do. However, what once worked
when building a port with a different default version for postgesql no
longer does.

Damien Fleuriot

unread,
Jan 13, 2017, 7:11:08 PM1/13/17
to
On 13 January 2017 at 22:39, James B. Byrne via freebsd-questions
<freebsd-...@freebsd.org> wrote:
>
> On Fri, January 13, 2017 02:52, Matthew Seaman wrote:
>
>>
>> postgresql93 is the default version of postgresql in ports at the
>> moment. If you're using the standard system packages then anything
>> that
>> depends on postgresql will cause the installation of
>> postgresql93-client, and result in the effect you described. If you
>> want to use postgresql96 instead, then you need to build your own
>> packages
>>
>
> Which is exactly what I am trying to do. However, what once worked
> when building a port with a different default version for postgesql no
> longer does.
>


James you got anything in make.conf with regards to the PG version you
want to use ?

https://wiki.freebsd.org/DEFAULT_VERSIONS

James B. Byrne via freebsd-questions

unread,
Jan 14, 2017, 7:02:41 PM1/14/17
to

On Fri, January 13, 2017 19:10, Damien Fleuriot wrote:
>
>
>
> James you got anything in make.conf with regards to the PG version you
> want to use ?
>
> https://wiki.freebsd.org/DEFAULT_VERSIONS
>

Yes, the default version for PostgreSQL is set to 9.6

cat /etc/make.conf
DEFAULT_VERSIONS=pgsql=9.6

--
*** e-Mail is NOT a SECURE channel ***
Do NOT transmit sensitive data via e-Mail
Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne mailto:Byr...@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3

0 new messages