Libcap installation on Leap 15.6

Dear all,

we are trying to install an application on our OpenLead 15.6 which requires libcap. Unfortunately it does not recognize libcap-ng as alternative and do not want to move on without libcap.

We tried then to install it using following links on SUSE Build Service:

https://software.opensuse.org/download.html?project=Base%3ASystem&package=libcap
https://software.opensuse.org/package/libcap

If the add repo and zypper refresh commands are working, the install command fails with

Loading repository data...
Reading installed packages...
'libcap' not found in package names. Trying capabilities.
No provider of 'libcap' found.
Resolving package dependencies...
Nothing to do.

Indeed this is because when checking the repository, libcap is seen as a source package:

<hostname>:~ # zypper search libcap
Loading repository data...
Reading installed packages...

S  | Name                   | Summary                                                       | Type
---+------------------------+---------------------------------------------------------------+-----------
   | libcap                 | Library for Capabilities (linux-privs) Support                | srcpackage
   | libcap-debugsource     | Debug sources for package libcap                              | package
   | libcap-devel           | Development files for libcap                                  | package

Do you have any idea on how we could install libcap on our system?

Many thanks

David

@dhueber Hi and welcome to the Forum :smile:
Do you have the Leap 15.6 Main Repository active?

libcap2 and libcap-ng0 are installed by default, but libcap1 is there?

zypper if libcap2 libcap-ng0 | grep -E "Repository|Name"

Repository     : Main Repository
Name           : libcap2
Repository     : Main Repository
Name           : libcap-ng0

zypper lr -dE

 4 | repo-backports-update              | Update repository of openSUSE Backports                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/backports/                | 
11 | repo-oss                           | Main Repository                                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.6/repo/oss/           | 
13 | repo-sle-update                    | Update repository with updates from SUSE Linux Enterprise 15 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/sle/                      | 
15 | repo-update                        | Main Update Repository                                       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/oss

Hi Macolm,

thanks for the fast reply.
Yes we do have the main repo active and already install libcap1.

<hostname>:~ # zypper search libcap1
Loading repository data...
Reading installed packages...

S  | Name                | Summary                                        | Type
---+---------------------+------------------------------------------------+-----------
   | libcap1             | Library for Capabilities (linux-privs) Support | srcpackage
i+ | libcap1             | Library for Capabilities (linux-privs) Support | package
   | libcap1-32bit       | Library for Capabilities (linux-privs) Support | package
   | libcap1-debuginfo   | Debug information for package libcap1          | package
   | libcap1-debugsource | Debug sources for package libcap1              | package

Looks like it does not match the application package dependencies :frowning:

David

@dhueber Hi, I suspect that’s not an openSUSE rpm your installing? I would ignore the dependency and let it install. You can run ldd <binary name> and check it finds the system shared library.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.