You are not logged in.

#1 2019-01-22 20:48:33

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,933
Website

[solved] Why does mariadb depend on inetutils

I was just cleaning up packages on my server and wanted to uninstall, amongst other packages, inetutils.
However I got surprised when pacman wanted to remove mariadb as a dependency.
My first investigation did not yield any library dependencies, and ineturils does not ship any libraries anyway:

$ pacman -Fsq $(ldd $(pacman -Qlq mariadb) 2>/dev/null | awk '{print $1;}') | sort | uniq
community/aarch64-linux-gnu-gcc
community/aarch64-linux-gnu-glibc
community/aarch64-linux-gnu-gcc
community/aarch64-linux-gnu-glibc
community/gcc7-libs
community/riscv64-linux-gnu-gcc
community/riscv64-linux-gnu-glibc
core/bzip2
core/cracklib
core/e2fsprogs
core/gcc-libs
core/glibc
core/icu
core/keyutils
core/krb5
core/lib32-gcc-libs
core/lib32-glibc
core/libaio
core/libgcrypt
core/libgpg-error
core/libsystemd
core/lz4
core/lzo
core/ncurses
core/openssl
core/pam
core/xz
core/zlib
core/zstd
extra/libxml2

So my question is, why mariadb requires inetutils.
It also is not listed here: http://www.linuxfromscratch.org/blfs/vi … riadb.html
Thank you for a short explanation - I'm sure I'm missing something.

Last edited by schard (2019-01-22 21:07:49)

Offline

#2 2019-01-22 20:52:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [solved] Why does mariadb depend on inetutils

Total blind guess, but hostname is a solid possibility.

Edit: yep, a quick grep shows multiple scripts that call hostname, including mysql_install_db

Last edited by Scimmia (2019-01-22 21:01:59)

Offline

#3 2019-01-22 21:07:39

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,933
Website

Re: [solved] Why does mariadb depend on inetutils

Ah, I see. They use "hostname" in the script and I just searched the files for the full file paths e.g. "/usr/bin/hostname".
Thanks.

Offline

Board footer

Powered by FluxBB