How To Install libattr-devel on CentOS 7

In this tutorial we learn how to install libattr-devel on CentOS 7. libattr-devel is Files needed for building programs with libattr

Introduction

In this tutorial we learn how to install libattr-devel on CentOS 7.

What is libattr-devel

This package contains header files and documentation needed to develop programs which make use of extended attributes. For Linux programs, the documented system call API is the recommended interface, but an SGI IRIX compatibility interface is also provided. Currently only ext2, ext3 and XFS support extended attributes. The SGI IRIX compatibility API built above the Linux system calls is used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8). You should install libattr-devel if you want to develop programs which make use of extended attributes. If you install libattr-devel, you’ll also want to install attr. This package contains header files and documentation needed to develop programs which make use of extended attributes. For Linux programs, the documented system call API is the recommended interface, but an SGI IRIX compatibility interface is also provided. Currently only ext2, ext3 and XFS support extended attributes. The SGI IRIX compatibility API built above the Linux system calls is used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8). You should install libattr-devel if you want to develop programs which make use of extended attributes. If you install libattr-devel, you’ll also want to install attr.

We can use yum or dnf to install libattr-devel on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libattr-devel.

Install libattr-devel on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libattr-devel

Install libattr-devel on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install libattr-devel

How To Uninstall libattr-devel on CentOS 7

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

sudo dnf remove libattr-devel

References

Summary

In this tutorial we learn how to install libattr-devel on CentOS 7 using yum and dnf.