Services and User Management

After a vendor tool is copied to a RHEL 9 server, it fails with "error while loading shared libraries: libfoo.so.2: cannot open shared object file". The administrator does not know which package supplies the library. Which command identifies the package to install?

Show the answer

Correct answerA. dnf provides '*/libfoo.so.2'

dnf provides searches repository metadata for the package that supplies a given file, so it finds the package even though it is not installed. The list and rpm -qa options only show installed packages, which cannot include the missing library.