1

A quick question: I am not able to find much info to run setcap on rhel5 . I searched few packages in my system

     # yum install libcap
     Loaded plugins: product-id, security, subscription-manager
     Updating Red Hat repositories.
     Setting up Install Process
     Package libcap-1.10-26.x86_64 already installed and latest version
     Package libcap-1.10-26.i386 already installed and latest version
     Nothing to do

I also searched binary find / -name setcap but it is saying there is no setcap command .

2 Answers 2

2

A simple rpm -ql libcap would have showed that it provided only a library (no program), as seen in the result from rpmfind. The setcap program came with libcap2 in rhel6. There are a few repositories offering more/less compatible rpms:

but there always is the possibility to rebuild from the source-rpm, since the spec-file has minimal requirements:

BuildRequires: libattr-devel pam-devel

e.g.,

rpmbuild --rebuild libcap-2.16-5.5.el6.src.rpm
-1

I guess you need libcap2, check if that exists in the repos.

1
  • thanks @scarpino , lipcap2 is not in repository. i am trying some online rpm archives
    – Akaks
    Apr 1, 2014 at 10:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .