UPS package missing libraries in Rocky 10.1

I have installed Rocky Linux 10.1 (Red Quartz) and I am now trying to set up NUT in standalone mode with a generic USB controlled UPS. I installed it using:

root@shi:~# dnf install nut
Last metadata expiration check: 1:07:53 ago on Fri 02 Jan 2026 08:01:40.
Dependencies resolved.
========================================================================================================================
 Package                Architecture       Version                                          Repository             Size
========================================================================================================================
Installing:
 nut                    x86_64             2.8.2.1-0.el10_1.1.git20240703pr2505             epel                  3.8 M
Installing dependencies:
 freeipmi               x86_64             1.6.14-4.el10                                    appstream             1.9 M
 libi2c                 x86_64             4.3-14.el10                                      appstream              22 k
 neon                   x86_64             0.35.0-1.el10_1                                  epel                  135 k
 nut-client             x86_64             2.8.2.1-0.el10_1.1.git20240703pr2505             epel                  269 k
Installing weak dependencies:
 nut-xml                x86_64             2.8.2.1-0.el10_1.1.git20240703pr2505             epel                   71 k

Transaction Summary
========================================================================================================================
Install  6 Packages

Total download size: 6.2 M
Installed size: 23 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): neon-0.35.0-1.el10_1.x86_64.rpm                                                  275 kB/s | 135 kB     00:00    
(2/6): nut-client-2.8.2.1-0.el10_1.1.git20240703pr2505.x86_64.rpm                       489 kB/s | 269 kB     00:00    
(3/6): nut-xml-2.8.2.1-0.el10_1.1.git20240703pr2505.x86_64.rpm                          799 kB/s |  71 kB     00:00    
(4/6): nut-2.8.2.1-0.el10_1.1.git20240703pr2505.x86_64.rpm                              3.5 MB/s | 3.8 MB     00:01    
(5/6): libi2c-4.3-14.el10.x86_64.rpm                                                     21 kB/s |  22 kB     00:01    
(6/6): freeipmi-1.6.14-4.el10.x86_64.rpm                                                1.0 MB/s | 1.9 MB     00:01    
------------------------------------------------------------------------------------------------------------------------
Total                                                                                   955 kB/s | 6.2 MB     00:06     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                1/1 
  Installing       : nut-client-2.8.2.1-0.el10_1.1.git20240703pr2505.x86_64                                         1/6 
warning: group nut does not exist - using root
warning: group nut does not exist - using root
warning: group nut does not exist - using root
warning: user nut does not exist - using root
warning: group nut does not exist - using root
warning: user nut does not exist - using root
warning: group nut does not exist - using root

  Running scriptlet: nut-client-2.8.2.1-0.el10_1.1.git20240703pr2505.x86_64                                         1/6 
  Installing       : libi2c-4.3-14.el10.x86_64                                                                      2/6 
  Installing       : freeipmi-1.6.14-4.el10.x86_64                                                                  3/6 
  Installing       : neon-0.35.0-1.el10_1.x86_64                                                                    4/6 
  Installing       : nut-xml-2.8.2.1-0.el10_1.1.git20240703pr2505.x86_64                                            5/6 
  Running scriptlet: nut-2.8.2.1-0.el10_1.1.git20240703pr2505.x86_64                                                6/6 
  Installing       : nut-2.8.2.1-0.el10_1.1.git20240703pr2505.x86_64                                                6/6 
warning: group nut does not exist - using root
warning: group nut does not exist - using root
warning: group nut does not exist - using root

  Running scriptlet: nut-2.8.2.1-0.el10_1.1.git20240703pr2505.x86_64                                                6/6 
Creating group 'nut' with GID 57.
Creating user 'nut' (Network UPS Tools) with UID 57 and GID 57.


Installed:
  freeipmi-1.6.14-4.el10.x86_64                                libi2c-4.3-14.el10.x86_64                                
  neon-0.35.0-1.el10_1.x86_64                                  nut-2.8.2.1-0.el10_1.1.git20240703pr2505.x86_64          
  nut-client-2.8.2.1-0.el10_1.1.git20240703pr2505.x86_64       nut-xml-2.8.2.1-0.el10_1.1.git20240703pr2505.x86_64      

Complete!

However it appears to be missing some libraries:

root@shi:~# nutconf --is-configured
Cannot load USB library (libusb-1.0.so) : file not found. USB search disabled.
Cannot load SNMP library (libnetsnmp.so) : file not found. SNMP search disabled.
Cannot load XML library (libneon.so) : file not found. XML search disabled.
Cannot load AVAHI library (libavahi-client.so) : file not found. AVAHI search disabled.
Cannot load IPMI library (libfreeipmi.so) : file not found. IPMI search disabled.
Cannot load NUT library (libupsclient.so) : file not found. NUT search disabled.
false

I’m going to need that USB one so I started there:

root@shi:~# rpm -qa | grep -i libusb
libusb1-1.0.28-1.el10.x86_64
libusb-compat-0.1-0.1.8-9.el10_0.x86_64
root@shi:~# dnf provides libusb-1.0.so
Last metadata expiration check: 0:23:16 ago on Fri 02 Jan 2026 09:31:59.
Error: No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.

Tried other things, such as installing libusbx and nut-devel but they didn’t help with the missing libusb-1.0.so.

I’m guessing that it is an issue with the package manager not knowing the full dependencies of Nut? Not sure of the best path forward so would welcome suggestions.

Looks like libusb1-devel might be what you need.

dnf provides "*/libusb-1.0.so"

1 Like

Not necessarily. In almost all circumstances, especially from packages from EPEL (thus the fedora project), when a package is built, it will determine relevant dependencies automatically and the maintainer of the package can optionally add in additional dependencies.

[root@idp ~]# dnf whatprovides \*/libusb-1.0.so*
Last metadata expiration check: 0:01:46 ago on Thu 01 Jan 2026 02:23:17 PM MST.
libusb1-1.0.28-1.el10.x86_64 : Library for accessing USB devices
Repo        : @System
Matched from:
Filename    : /usr/lib64/libusb-1.0.so.0
Filename    : /usr/lib64/libusb-1.0.so.0.5.0

libusb1-1.0.28-1.el10.x86_64 : Library for accessing USB devices
Repo        : baseos
Matched from:
Filename    : /usr/lib64/libusb-1.0.so.0
Filename    : /usr/lib64/libusb-1.0.so.0.5.0

Using dnf you can try to find the relevant library package. As shown here, it’s libusb1. (You do not need to use the devel package unless absolutely required).

1 Like

Thanks, I was over estimating what “dnf provides” could do. Was able to get it working now.

For others who run into the issue here is the key steps. Thanks to @linde and @label for their fast and useful replies.

First installed these:

dnf install libusb1-devel
dnf install net-snmp-devel
dnf install neon-devel
dnf install avahi-devel

libfreeipmi.so was a bit more work. I already had it with a longer file name, it comes from freeipmi-1.6.14-4.el10.x86_64. So I created a soft link with the needed file name:

cd /usr/lib64/
ln -s libfreeipmi.so.17.2.12 libfreeipmi.so

With that it appears to run ok.