Installing sshfs pulls insane dependencies

Hey everyone, I’m pretty new to Fedora, just giving Server Edition / 43 a try.
Installed a few tools and it works nicely, but then I wanted to get sshfs, which shows very unexpected dependencies:

# dnf install sshfs
Updating and loading repositories:
Repositories loaded.
Package                                       Arch        Version                                        Repository                    Size
Installing:
 fuse-sshfs                                   x86_64      3.7.5-1.fc43                                   updates                  125.4 KiB
Installing dependencies:
 adwaita-cursor-theme                         noarch      49.0-1.fc43                                    fedora                    11.4 MiB
 adwaita-icon-theme                           noarch      49.0-1.fc43                                    fedora                     1.2 MiB
 adwaita-icon-theme-legacy                    noarch      46.2-4.fc43                                    fedora                     2.1 MiB
 alsa-lib                                     x86_64      1.2.15.3-1.fc43                                updates                    1.5 MiB
 aribb24                                      x86_64      1.0.3^20160216git5e9be27-3.fc43                fedora                    83.1 KiB
 at-spi2-atk                                  x86_64      2.58.3-1.fc43                                  updates                  283.7 KiB
 at-spi2-core                                 x86_64      2.58.3-1.fc43                                  updates                    1.5 MiB
 atk                                          x86_64      2.58.3-1.fc43                                  updates                  248.6 KiB
 avahi-glib                                   x86_64      0.9~rc2-6.fc43                                 fedora                    19.6 KiB
 cdparanoia-libs                              x86_64      10.2-48.fc43                                   fedora                   113.5 KiB
 cjson                                        x86_64      1.7.18-3.fc43                                  fedora                    63.9 KiB
 codec2                                       x86_64      1.2.0-7.fc43                                   fedora                     1.4 MiB
 colord-libs                                  x86_64      1.4.8-2.fc43                                   fedora                   830.7 KiB
 exempi                                       x86_64      2.6.4-8.fc43                                   fedora                     1.4 MiB
 exiv2-libs                                   x86_64      0.28.6-2.fc43                                  fedora                     2.8 MiB
 fdk-aac-free                                 x86_64      2.0.0-16.fc43                                  fedora                   611.8 KiB
 fftw-libs-single                             x86_64      3.3.10-16.fc43                                 fedora                     3.6 MiB
 flac-libs                                    x86_64      1.5.0-5.fc43                                   updates                  611.5 KiB
 fuse3                                        x86_64      3.16.2-5.fc42                                  fedora                   129.7 KiB
 game-music-emu                               x86_64      0.6.4-2.fc43                                   fedora                   351.8 KiB
 geoclue2                                     x86_64      2.8.0-1.fc43                                   updates                  401.7 KiB
 giflib                                       x86_64      5.2.2-8.fc43                                   fedora                   112.1 KiB
 gpgmepp                                      x86_64      1.24.3-6.fc43                                  fedora                   429.2 KiB
 graphene                                     x86_64      1.10.8-2.fc43                                  fedora                   158.4 KiB
 gsm                                          x86_64      1.0.23-1.fc43                                  fedora                    65.3 KiB
 gstreamer1                                   x86_64      1.26.10-1.fc43                                 updates                    5.4 MiB
 gstreamer1-plugins-base                      x86_64      1.26.10-1.fc43                                 updates                    7.4 MiB
 gtk-update-icon-cache                        x86_64      3.24.51-2.fc43                                 fedora                    62.2 KiB
 gtk3                                         x86_64      3.24.51-2.fc43                                 fedora                    22.4 MiB
 ilbc                                         x86_64      3.0.4-17.fc43                                  fedora                    91.4 KiB
 inih-cpp                                     x86_64      62-1.fc43                                      fedora                    36.1 KiB
 iso-codes                                    noarch      4.18.0-2.fc43                                  fedora                    21.5 MiB
 jbigkit-libs                                 x86_64      2.1-32.fc43                                    fedora                   113.5 KiB
 lame-libs                                    x86_64      3.100-20.fc43                                  fedora                     1.2 MiB
 libX11-xcb                                   x86_64      1.8.12-1.fc43                                  fedora                    10.9 KiB
 libXcomposite                                x86_64      0.4.6-6.fc43                                   fedora                    40.5 KiB
 libXcursor                                   x86_64      1.2.3-3.fc43                                   fedora                    53.4 KiB
 libXdamage                                   x86_64      1.1.6-6.fc43                                   fedora                    39.6 KiB
 libXfixes                                    x86_64      6.0.1-6.fc43                                   fedora                    26.2 KiB
 libXi                                        x86_64      1.8.2-3.fc43                                   fedora                    80.6 KiB
 libXinerama                                  x86_64      1.1.5-9.fc43                                   fedora                    15.0 KiB
 libXrandr                                    x86_64      1.5.4-6.fc43                                   fedora                    51.8 KiB
 libXtst                                      x86_64      1.2.5-3.fc43                                   fedora                    33.5 KiB
 libXv                                        x86_64      1.0.13-3.fc43                                  fedora                    26.0 KiB
 libXxf86vm                                   x86_64      1.1.6-3.fc43                                   fedora                    25.3 KiB
 libaribcaption                               x86_64      1.1.1-3.fc43                                   fedora                   244.5 KiB
 libasyncns                                   x86_64      0.8-31.fc43                                    fedora                    55.5 KiB
 libavcodec-free                              x86_64      7.1.2-4.fc43                                   updates                    9.8 MiB
 libavformat-free                             x86_64      7.1.2-4.fc43                                   updates                    2.6 MiB
 libavutil-free                               x86_64      7.1.2-4.fc43                                   updates                  942.5 KiB
 libbluray                                    x86_64      1.3.4-11.fc43                                  updates                  393.7 KiB
 libcamera                                    x86_64      0.5.2-5.fc43                                   updates                    2.2 MiB
 libcanberra                                  x86_64      0.30-38.fc43                                   fedora                   266.5 KiB
 libchromaprint                               x86_64      1.6.0-1.fc43                                   updates                   69.2 KiB
 libcloudproviders                            x86_64      0.3.6-2.fc43                                   fedora                   124.3 KiB
 libcue                                       x86_64      2.3.0-12.fc43                                  fedora                    85.8 KiB
 libdvdnav                                    x86_64      6.1.1-11.fc43                                  fedora                   116.1 KiB
 libdvdread                                   x86_64      6.1.3-10.fc43                                  fedora                   156.1 KiB
 libebur128                                   x86_64      1.2.6-14.fc43                                  fedora                    39.3 KiB
 libepoxy                                     x86_64      1.5.10-11.fc43                                 fedora                     1.1 MiB
 libexif                                      x86_64      0.6.25-2.fc43                                  fedora                     2.7 MiB
 libgexiv2                                    x86_64      0.14.6-2.fc43                                  fedora                   279.2 KiB
 libglvnd                                     x86_64      1:1.7.0-8.fc43                                 fedora                   526.1 KiB
 libglvnd-egl                                 x86_64      1:1.7.0-8.fc43                                 fedora                    64.7 KiB
 libglvnd-glx                                 x86_64      1:1.7.0-8.fc43                                 fedora                   601.2 KiB
 libgsf                                       x86_64      1.14.55-1.fc43                                 updates                  964.8 KiB
 libgxps                                      x86_64      0.3.2-11.fc43                                  fedora                   188.1 KiB
 libimobiledevice                             x86_64      1.3.0^20240916gited9703d-6.fc43                fedora                   304.7 KiB
 libimobiledevice-glue                        x86_64      1.3.1-3.fc43                                   fedora                   118.8 KiB
 libiptcdata                                  x86_64      1.0.5-23.fc43                                  fedora                   163.9 KiB
 liblc3                                       x86_64      1.1.3-5.fc43                                   fedora                   170.8 KiB
 libldac                                      x86_64      2.0.2.3-18.fc43                                fedora                    74.2 KiB
 liblerc                                      x86_64      4.0.0-9.fc43                                   fedora                   624.1 KiB
 libmodplug                                   x86_64      1:0.8.9.0-28.fc43                              fedora                   355.2 KiB
 libnotify                                    x86_64      0.8.8-1.fc43                                   updates                  126.6 KiB
 libogg                                       x86_64      2:1.3.6-2.fc43                                 updates                   45.6 KiB
 libopenmpt                                   x86_64      0.8.4-1.fc43                                   updates                    1.8 MiB
 libosinfo                                    x86_64      1.12.0-3.fc43                                  fedora                     1.2 MiB
 libplist                                     x86_64      2.6.0-5.fc43                                   fedora                   237.0 KiB
 librabbitmq                                  x86_64      0.15.0-3.fc43                                  fedora                    89.6 KiB
 librist                                      x86_64      0.2.7-10.fc43                                  fedora                   157.2 KiB
 libsbc                                       x86_64      2.0-7.fc43                                     fedora                    93.4 KiB
 libsndfile                                   x86_64      1.2.2-10.fc43                                  fedora                   550.1 KiB
 libsodium                                    x86_64      1.0.21-2.fc43                                  updates                  449.4 KiB
 libswresample-free                           x86_64      7.1.2-4.fc43                                   updates                  147.3 KiB
 libtheora                                    x86_64      1:1.1.1-40.fc43                                fedora                   477.3 KiB
 libtiff                                      x86_64      4.7.1-1.fc43                                   updates                  624.4 KiB
 libtinysparql                                x86_64      3.10.1-5.fc43                                  updates                  995.0 KiB
 libudfread                                   x86_64      1.1.2-12.fc43                                  fedora                    65.9 KiB
 libunwind                                    x86_64      1.8.1-3.fc43                                   fedora                   194.1 KiB
 libusbmuxd                                   x86_64      2.1.0-4.fc43                                   fedora                    75.2 KiB
 libva                                        x86_64      2.22.0-6.fc43                                  fedora                   329.4 KiB
 libvdpau                                     x86_64      1.5-10.fc43                                    fedora                    20.7 KiB
 libvisual                                    x86_64      1:0.4.2-3.fc43                                 fedora                   452.7 KiB
 libvorbis                                    x86_64      1:1.3.7-13.fc43                                fedora                   833.4 KiB
 libvpl                                       x86_64      1:2.16.0-1.fc43                                updates                  427.2 KiB
 libvpx                                       x86_64      1.15.0-4.fc43                                  fedora                     3.3 MiB
 libwayland-cursor                            x86_64      1.24.0-1.fc43                                  fedora                    37.3 KiB
 libwayland-egl                               x86_64      1.24.0-1.fc43                                  fedora                    12.4 KiB
 libxshmfence                                 x86_64      1.3.2-7.fc43                                   fedora                    12.4 KiB
 libyuv                                       x86_64      0-0.57.20240704git96bbdb5.fc43                 fedora                   679.7 KiB
 llvm-filesystem                              x86_64      21.1.8-4.fc43                                  updates                    0.0   B
 llvm-libs                                    x86_64      21.1.8-4.fc43                                  updates                  138.6 MiB
 lpcnetfreedv                                 x86_64      0.5-9.fc43                                     fedora                    14.8 MiB
 mbedtls                                      x86_64      3.6.5-1.fc43                                   updates                    1.3 MiB
 mesa-dri-drivers                             x86_64      25.3.4-7.fc43                                  updates                   48.8 MiB
 mesa-filesystem                              x86_64      25.3.4-7.fc43                                  updates                    3.6 KiB
 mesa-libEGL                                  x86_64      25.3.4-7.fc43                                  updates                  310.4 KiB
 mesa-libGL                                   x86_64      25.3.4-7.fc43                                  updates                  286.0 KiB
 mesa-libgbm                                  x86_64      25.3.4-7.fc43                                  updates                   19.7 KiB
 mpg123-libs                                  x86_64      1.32.10-2.fc43                                 fedora                   814.0 KiB
 opencore-amr                                 x86_64      0.1.6-9.fc43                                   fedora                   352.7 KiB
 openpgm                                      x86_64      5.3.128-5.fc43                                 fedora                   312.3 KiB
 opus                                         x86_64      1.5.2-3.fc43                                   fedora                   427.6 KiB
 orc                                          x86_64      0.4.41-2.fc43                                  fedora                   726.3 KiB
 osinfo-db                                    noarch      20250124-2.fc43                                fedora                     3.9 MiB
 osinfo-db-tools                              x86_64      1.12.0-4.fc43                                  fedora                   190.9 KiB
 pipewire-jack-audio-connection-kit-libs      x86_64      1.4.10-1.fc43                                  updates                  496.7 KiB
 pipewire-libs                                x86_64      1.4.10-1.fc43                                  updates                    8.6 MiB
 poppler                                      x86_64      25.07.0-3.fc43                                 updates                    3.8 MiB
 poppler-data                                 noarch      0.4.11-10.fc43                                 fedora                    12.3 MiB
 poppler-glib                                 x86_64      25.07.0-3.fc43                                 updates                  633.9 KiB
 pulseaudio-libs                              x86_64      17.0-7.fc43                                    fedora                     3.4 MiB
 rtkit                                        x86_64      0.11-69.fc43                                   fedora                   138.1 KiB
 sound-theme-freedesktop                      noarch      0.8-24.fc43                                    fedora                   460.4 KiB
 soxr                                         x86_64      0.1.3-20.fc43                                  fedora                   191.5 KiB
 speex                                        x86_64      1.2.0-20.fc43                                  fedora                   128.5 KiB
 spirv-tools-libs                             x86_64      2025.4-1.fc43                                  updates                    5.8 MiB
 srt-libs                                     x86_64      1.5.4-4.fc43                                   fedora                   993.8 KiB
 totem-pl-parser                              x86_64      3.26.6-13.fc43                                 fedora                   308.5 KiB
 twolame-libs                                 x86_64      0.4.0-8.fc43                                   fedora                   165.5 KiB
 uchardet                                     x86_64      0.0.8-8.fc43                                   fedora                   275.6 KiB
 upower-libs                                  x86_64      1.91.0-1.fc43                                  updates                  178.8 KiB
 vo-amrwbenc                                  x86_64      0.1.3-23.fc43                                  fedora                   153.9 KiB
 webrtc-audio-processing                      x86_64      1.3-9.fc43                                     fedora                     1.4 MiB
 wireplumber                                  x86_64      0.5.13-1.fc43                                  updates                  426.6 KiB
 wireplumber-libs                             x86_64      0.5.13-1.fc43                                  updates                    1.3 MiB
 xdg-desktop-portal                           x86_64      1.20.3-2.fc43                                  fedora                     1.8 MiB
 xevd-libs                                    x86_64      0.5.0-5.fc43                                   fedora                   367.9 KiB
 xeve-libs                                    x86_64      0.5.1-5.fc43                                   fedora                   892.5 KiB
 xprop                                        x86_64      1.2.8-4.fc43                                   fedora                    54.7 KiB
 xvidcore                                     x86_64      1.3.7-14.fc43                                  fedora                   878.4 KiB
 zeromq                                       x86_64      4.3.5-22.fc43                                  fedora                   894.1 KiB
 zvbi                                         x86_64      0.2.44-2.fc43                                  fedora                     1.2 MiB
Installing weak dependencies:
 dconf                                        x86_64      0.49.0-1.fc43                                  fedora                   307.5 KiB
 exiv2                                        x86_64      0.28.6-2.fc43                                  fedora                    12.2 MiB
 intel-mediasdk                               x86_64      23.2.2-8.fc43                                  fedora                    22.4 MiB
 intel-vpl-gpu-rt                             x86_64      25.4.5-1.fc43                                  updates                   11.7 MiB
 libcamera-ipa                                x86_64      0.5.2-5.fc43                                   updates                  682.7 KiB
 libcanberra-gtk3                             x86_64      0.30-38.fc43                                   fedora                    70.7 KiB
 localsearch                                  x86_64      3.10.2-1.fc43                                  updates                    3.4 MiB
 low-memory-monitor                           x86_64      2.1-13.fc43                                    fedora                    66.0 KiB
 mesa-va-drivers                              x86_64      25.3.4-7.fc43                                  updates                  115.0   B
 openssh-askpass                              x86_64      10.0p1-6.fc43                                  updates                   19.7 KiB
 pipewire                                     x86_64      1.4.10-1.fc43                                  updates                  432.1 KiB
 pipewire-alsa                                x86_64      1.4.10-1.fc43                                  updates                  158.0 KiB
 pipewire-jack-audio-connection-kit           x86_64      1.4.10-1.fc43                                  updates                   30.0   B
 pipewire-plugin-libcamera                    x86_64      1.4.10-1.fc43                                  updates                  146.5 KiB
 pipewire-pulseaudio                          x86_64      1.4.10-1.fc43                                  updates                  436.3 KiB
 tinysparql                                   x86_64      3.10.1-5.fc43                                  updates                    2.5 MiB
 upower                                       x86_64      1.91.0-1.fc43                                  updates                  303.7 KiB
 usbmuxd                                      x86_64      1.1.1^20240915git0b1b233-6.fc43                fedora                   149.1 KiB
 xdg-desktop-portal-gtk                       x86_64      1.15.3-2.fc43                                  fedora                   473.3 KiB

Transaction Summary:
 Installing:       164 packages

Total size of inbound packages is 120 MiB. Need to download 120 MiB.
After this operation, 442 MiB extra will be used (install 442 MiB, remove 0 B).

It’s on a headless home server - I don’t want gtk3, icons, mesa, pipewire etc… it should not be neccessary for a small cli tool.

So I looked at the pkg: fuse-sshfs-3.7.5-1.fc43 - Fedora Packages

Dependencies

Checked all three and they are already installed or just a few kb single download.

# dnf repoquery --requires fuse-sshfs
Updating and loading repositories:
Repositories loaded.
filesystem(unmerged-sbin-symlinks)
fuse3 >= 3.1.0
libc.so.6(GLIBC_2.38)(64bit)
libfuse3.so.3()(64bit)
libfuse3.so.3(FUSE_3.0)(64bit)
libfuse3.so.3(FUSE_3.1)(64bit)
libfuse3.so.3(FUSE_3.2)(64bit)
libglib-2.0.so.0()(64bit)
openssh-clients
rtld(GNU_HASH)

Also fuse3: Installing: 1 package … Need to download 57 KiB. That’s not it.

Then wondered if something on my install is weird, but no, same in a fresh container:

docker run --rm -ti fedora:43 bash
[root@9498f838de3b /]# dnf install fuse-sshfs
[...]
Transaction Summary:
 Installing:       262 packages
 Upgrading:          5 packages
 Replacing:          5 packages

Total size of inbound packages is 184 MiB. Need to download 184 MiB.
After this operation, 677 MiB extra will be used (install 680 MiB, remove 2 MiB).

Am I missing something? Doing something wrong?
Is this a bug? If so in sshfs packaging? Or dnf? How to figure the dependency chain out?

Deeply confused at this point.

There’s a weak dependency on openssh-askpass

$ dnf repoquery --recommends fuse-sshfs
Updating and loading repositories:
Repositories loaded.
openssh-askpass

…and that depends on libgtk-3 which I could imagine pulling in a bunch of GUI stuff…

$ dnf repoquery --requires openssh-askpass
Updating and loading repositories:
Repositories loaded.
libc.so.6(GLIBC_2.38)(64bit)
libgdk-3.so.0()(64bit)
libglib-2.0.so.0()(64bit)
libgobject-2.0.so.0()(64bit)
libgtk-3.so.0()(64bit)
openssh = 10.0p1-5.fc43
openssh = 10.0p1-6.fc43
rtld(GNU_HASH)

What happens if you try installing fuse-sshfs without the weak dependency?

sudo dnf install fuse-sshfs --setopt=install_weak_deps=false
3 Likes

Yeah that is exactly what I want! Thank you so much for the fast and precise solution!

Package                                       Arch        Version                                        Repository                    Size
Installing:
 fuse-sshfs                                   x86_64      3.7.5-1.fc43                                   updates                  125.4 KiB
Installing dependencies:
 fuse3                                        x86_64      3.16.2-5.fc42                                  fedora                   129.7 KiB

Transaction Summary:
 Installing:         2 packages

Total size of inbound packages is 121 KiB. Need to download 121 KiB.

I thought optional deps wouldn’t be installed by default and they would show up under “Installing weak dependencies”. I have to disable that for sure.

1 Like

Yeah, IMO this is a bit counterintuitive in the dnf output.

Suppose you want to install P, which has a weak dependency on W. In turn, W has a strong dependency on S.

Then the dnf output will look like:

Installing:
    P
Installing dependencies:
    S
Installing weak dependencies:
    W

It’s a bit surprising that S appears where it does.

Indeed.
btw: Is there a single command to get all details of a package?
Something like on Arch:

# pacman -Si sshfs
Repository      : extra
Name            : sshfs
Version         : 3.7.3-3
Description     : FUSE client based on the SSH File Transfer Protocol
Architecture    : x86_64
URL             : https://github.com/libfuse/sshfs
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : fuse3  glib2  openssh
Optional Deps   : None
Conflicts With  : None
Replaces        : None
Download Size   : 35.63 KiB
Installed Size  : 95.01 KiB
Packager        : David Runge <dvzrv@archlinux.org>
Build Date      : Tue Mar 25 09:16:25 2025
Validated By    : SHA-256 Sum  Signature

dnf info almost does it, but is missing (optional/weak) depends, provides etc.

I don’t know of a single command that would give you both ‘info’ like that and the dependencies, sorry.

rpm -qa fuse-sshfs --json or rpm -qa fuse-sshfs --xml probably do have all the info, but not in an easily human-readable format.