how to change pkg dependencies

Is there any easy way to change pkg dependencies? or do i need use the Ports Collection to compile and install..


I would like to use mariadb instead of mysql.


# pkg install zabbix62-server-6.2.7_1
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (2 conflicting)
- mysql80-client-8.0.31 conflicts with mariadb106-client-10.6.11 on /usr/local/bin/my_print_defaults
- mysql80-client-8.0.31 conflicts with mariadb106-server-10.6.11 on /usr/local/bin/perror
Checking integrity... done (0 conflicting)
The following 20 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
mariadb106-client: 10.6.11
mariadb106-server: 10.6.11

New packages to be INSTALLED:
cyrus-sasl: 2.1.28
fping: 5.0_2
groff: 1.22.4_4
hidapi: 0.13.1
libcbor: 0.10.1
libcjson: 1.7.15
libevent: 2.1.12
libfido2: 1.12.0
libpaper: 1.1.28
libunwind: 20211201_1
mysql80-client: 8.0.31
net-snmp: 5.9.1_2,1
openldap26-client: 2.6.3
protobuf: 3.21.12,1
psutils: 1.17_5
uchardet: 0.0.8
zabbix62-server: 6.2.7_1

Installed packages to be REINSTALLED:
pkg-1.19.1_1

Number of packages to be removed: 2
Number of packages to be installed: 17
Number of packages to be reinstalled: 1

The process will require 27 MiB more space.

Proceed with this action? [y/N]:


I also tried to use pkg set command but maybe i did something worng. no sucess there... is this the right way?



1676813962923.png
 
Is there any easy way to change pkg dependencies? or do i need use the Ports Collection to compile and install..

I would like to use mariadb instead of mysql.

MariaDB is not a *binary* replacement for MySQL, it just offers a compatible API, so yes, if you want *that*, you have to compile yourself from ports.

The mechanism in ports for this kind of thing is DEFAULT_VERSIONS. Something like DEFAULT_VERSIONS+= mysql=10.6m should work here (untested).
 
If you want to use mariadb (like i do) it's best to compile and install all from ports.
[Because binary packages use mysql which conflicts with mariadb , so that does not work]
You just need one line in make.conf:
Code:
DEFAULT_VERSIONS+= mysql=10.6m
 
Back
Top