How To Install libcap-ng-devel on Fedora 36

In this tutorial we learn how to install libcap-ng-devel in Fedora 36. libcap-ng-devel is Header files for libcap-ng library

Introduction

In this tutorial we learn how to install libcap-ng-devel on Fedora 36.

What is libcap-ng-devel

The libcap-ng-devel package contains the files needed for developing applications that need to use the libcap-ng library.

We can use yum or dnf to install libcap-ng-devel on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libcap-ng-devel.

Install libcap-ng-devel on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libcap-ng-devel using dnf by running the following command:

sudo dnf -y install libcap-ng-devel

Install libcap-ng-devel on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libcap-ng-devel using yum by running the following command:

sudo yum -y install libcap-ng-devel

How To Uninstall libcap-ng-devel on Fedora 36

To uninstall only the libcap-ng-devel package we can use the following command:

sudo dnf remove libcap-ng-devel

libcap-ng-devel Package Contents on Fedora 36

---
title: "How To Install libcap-ng-devel on Fedora 36"
linkTitle: "libcap-ng-devel"
type: "docs"
description: "In this tutorial we learn how to install libcap-ng-devel in Fedora 36. libcap-ng-devel is Header files for libcap-ng library"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/libcap-ng-devel-featured.png
---

## Introduction

In this tutorial we learn how to install `libcap-ng-devel` on Fedora 36.

### What is `libcap-ng-devel`

> The libcap-ng-devel package contains the files needed for developing applications that need to use the libcap-ng library.  

We can use `yum` or `dnf` to install `libcap-ng-devel` on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libcap-ng-devel.

## Install libcap-ng-devel on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
sudo dnf makecache --refresh

After updating yum database, We can install libcap-ng-devel using dnf by running the following command:

sudo dnf -y install libcap-ng-devel

Install libcap-ng-devel on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libcap-ng-devel using yum by running the following command:

sudo yum -y install libcap-ng-devel

How To Uninstall libcap-ng-devel on Fedora 36

To uninstall only the libcap-ng-devel package we can use the following command:

sudo dnf remove libcap-ng-devel

libcap-ng-devel Package Contents on Fedora 36

/usr/include/cap-ng.h
/usr/lib64/libcap-ng.so
/usr/lib64/libdrop_ambient.so
/usr/lib64/pkgconfig/libcap-ng.pc
/usr/share/aclocal/cap-ng.m4
/usr/share/man/man3/capng_apply.3.gz
/usr/share/man/man3/capng_apply_caps_fd.3.gz
/usr/share/man/man3/capng_capability_to_name.3.gz
/usr/share/man/man3/capng_change_id.3.gz
/usr/share/man/man3/capng_clear.3.gz
/usr/share/man/man3/capng_fill.3.gz
/usr/share/man/man3/capng_get_caps_fd.3.gz
/usr/share/man/man3/capng_get_caps_process.3.gz
/usr/share/man/man3/capng_get_rootid.3.gz
/usr/share/man/man3/capng_have_capabilities.3.gz
/usr/share/man/man3/capng_have_capability.3.gz
/usr/share/man/man3/capng_lock.3.gz
/usr/share/man/man3/capng_name_to_capability.3.gz
/usr/share/man/man3/capng_print_caps_numeric.3.gz
/usr/share/man/man3/capng_print_caps_text.3.gz
/usr/share/man/man3/capng_restore_state.3.gz
/usr/share/man/man3/capng_save_state.3.gz
/usr/share/man/man3/capng_set_rootid.3.gz
/usr/share/man/man3/capng_setpid.3.gz
/usr/share/man/man3/capng_update.3.gz
/usr/share/man/man3/capng_updatev.3.gz

References

Summary

In this tutorial we learn how to install libcap-ng-devel on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).

/usr/include/cap-ng.h /usr/lib/libcap-ng.so /usr/lib/libdrop_ambient.so /usr/lib/pkgconfig/libcap-ng.pc /usr/share/aclocal/cap-ng.m4 /usr/share/man/man3/capng_apply.3.gz /usr/share/man/man3/capng_apply_caps_fd.3.gz /usr/share/man/man3/capng_capability_to_name.3.gz /usr/share/man/man3/capng_change_id.3.gz /usr/share/man/man3/capng_clear.3.gz /usr/share/man/man3/capng_fill.3.gz /usr/share/man/man3/capng_get_caps_fd.3.gz /usr/share/man/man3/capng_get_caps_process.3.gz /usr/share/man/man3/capng_get_rootid.3.gz /usr/share/man/man3/capng_have_capabilities.3.gz /usr/share/man/man3/capng_have_capability.3.gz /usr/share/man/man3/capng_lock.3.gz /usr/share/man/man3/capng_name_to_capability.3.gz /usr/share/man/man3/capng_print_caps_numeric.3.gz /usr/share/man/man3/capng_print_caps_text.3.gz /usr/share/man/man3/capng_restore_state.3.gz /usr/share/man/man3/capng_save_state.3.gz /usr/share/man/man3/capng_set_rootid.3.gz /usr/share/man/man3/capng_setpid.3.gz /usr/share/man/man3/capng_update.3.gz /usr/share/man/man3/capng_updatev.3.gz


## References

* [libcap-ng-devel website](https://people.redhat.com/sgrubb/libcap-ng/)

## Summary

In this tutorial we learn how to install `libcap-ng-devel` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).