How To Install libseccomp-devel on Rocky Linux 8

In this tutorial we learn how to install libseccomp-devel on Rocky Linux 8. libseccomp-devel is Development files used to build applications with libseccomp support

Introduction

In this tutorial we learn how to install libseccomp-devel on Rocky Linux 8.

What is libseccomp-devel

The libseccomp library provides an easy to use interface to the Linux Kernel’s syscall filtering mechanism, seccomp. The libseccomp API allows an application to specify which syscalls, and optionally which syscall arguments, the application is allowed to execute, all of which are enforced by the Linux Kernel.

We can use yum or dnf to install libseccomp-devel on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libseccomp-devel.

Install libseccomp-devel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libseccomp-devel

Install libseccomp-devel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libseccomp-devel

How To Uninstall libseccomp-devel on Rocky Linux 8

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

sudo dnf remove libseccomp-devel

libseccomp-devel Package Contents on Rocky Linux 8

/usr/bin/scmp_sys_resolver
/usr/include/seccomp-syscalls.h
/usr/include/seccomp.h
/usr/lib/.build-id
/usr/lib/.build-id/31
/usr/lib/.build-id/31/f962a2d160eb47cd536bcd6fa91c14ae18951b
/usr/lib/libseccomp.so
/usr/lib/pkgconfig/libseccomp.pc
/usr/share/man/man1/scmp_sys_resolver.1.gz
/usr/share/man/man3/seccomp_api_get.3.gz
/usr/share/man/man3/seccomp_api_set.3.gz
/usr/share/man/man3/seccomp_arch_add.3.gz
/usr/share/man/man3/seccomp_arch_exist.3.gz
/usr/share/man/man3/seccomp_arch_native.3.gz
/usr/share/man/man3/seccomp_arch_remove.3.gz
/usr/share/man/man3/seccomp_arch_resolve_name.3.gz
/usr/share/man/man3/seccomp_attr_get.3.gz
/usr/share/man/man3/seccomp_attr_set.3.gz
/usr/share/man/man3/seccomp_export_bpf.3.gz
/usr/share/man/man3/seccomp_export_pfc.3.gz
/usr/share/man/man3/seccomp_init.3.gz
/usr/share/man/man3/seccomp_load.3.gz
/usr/share/man/man3/seccomp_merge.3.gz
/usr/share/man/man3/seccomp_notify_alloc.3.gz
/usr/share/man/man3/seccomp_notify_fd.3.gz
/usr/share/man/man3/seccomp_notify_free.3.gz
/usr/share/man/man3/seccomp_notify_id_valid.3.gz
/usr/share/man/man3/seccomp_notify_receive.3.gz
/usr/share/man/man3/seccomp_notify_respond.3.gz
/usr/share/man/man3/seccomp_release.3.gz
/usr/share/man/man3/seccomp_reset.3.gz
/usr/share/man/man3/seccomp_rule_add.3.gz
/usr/share/man/man3/seccomp_rule_add_array.3.gz
/usr/share/man/man3/seccomp_rule_add_exact.3.gz
/usr/share/man/man3/seccomp_rule_add_exact_array.3.gz
/usr/share/man/man3/seccomp_syscall_priority.3.gz
/usr/share/man/man3/seccomp_syscall_resolve_name.3.gz
/usr/share/man/man3/seccomp_syscall_resolve_name_arch.3.gz
/usr/share/man/man3/seccomp_syscall_resolve_name_rewrite.3.gz
/usr/share/man/man3/seccomp_syscall_resolve_num_arch.3.gz
/usr/share/man/man3/seccomp_version.3.gz
/usr/bin/scmp_sys_resolver
/usr/include/seccomp-syscalls.h
/usr/include/seccomp.h
/usr/lib/.build-id
/usr/lib/.build-id/af
/usr/lib/.build-id/af/b20af63dd5f10f3a1f2cb9fafc15a313886490
/usr/lib64/libseccomp.so
/usr/lib64/pkgconfig/libseccomp.pc
/usr/share/man/man1/scmp_sys_resolver.1.gz
/usr/share/man/man3/seccomp_api_get.3.gz
/usr/share/man/man3/seccomp_api_set.3.gz
/usr/share/man/man3/seccomp_arch_add.3.gz
/usr/share/man/man3/seccomp_arch_exist.3.gz
/usr/share/man/man3/seccomp_arch_native.3.gz
/usr/share/man/man3/seccomp_arch_remove.3.gz
/usr/share/man/man3/seccomp_arch_resolve_name.3.gz
/usr/share/man/man3/seccomp_attr_get.3.gz
/usr/share/man/man3/seccomp_attr_set.3.gz
/usr/share/man/man3/seccomp_export_bpf.3.gz
/usr/share/man/man3/seccomp_export_pfc.3.gz
/usr/share/man/man3/seccomp_init.3.gz
/usr/share/man/man3/seccomp_load.3.gz
/usr/share/man/man3/seccomp_merge.3.gz
/usr/share/man/man3/seccomp_notify_alloc.3.gz
/usr/share/man/man3/seccomp_notify_fd.3.gz
/usr/share/man/man3/seccomp_notify_free.3.gz
/usr/share/man/man3/seccomp_notify_id_valid.3.gz
/usr/share/man/man3/seccomp_notify_receive.3.gz
/usr/share/man/man3/seccomp_notify_respond.3.gz
/usr/share/man/man3/seccomp_release.3.gz
/usr/share/man/man3/seccomp_reset.3.gz
/usr/share/man/man3/seccomp_rule_add.3.gz
/usr/share/man/man3/seccomp_rule_add_array.3.gz
/usr/share/man/man3/seccomp_rule_add_exact.3.gz
/usr/share/man/man3/seccomp_rule_add_exact_array.3.gz
/usr/share/man/man3/seccomp_syscall_priority.3.gz
/usr/share/man/man3/seccomp_syscall_resolve_name.3.gz
/usr/share/man/man3/seccomp_syscall_resolve_name_arch.3.gz
/usr/share/man/man3/seccomp_syscall_resolve_name_rewrite.3.gz
/usr/share/man/man3/seccomp_syscall_resolve_num_arch.3.gz
/usr/share/man/man3/seccomp_version.3.gz

References

Summary

In this tutorial we learn how to install libseccomp-devel on Rocky Linux 8 using yum and dnf.