How To Install libseccomp-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libseccomp-dev
on Ubuntu 20.04.
What is libseccomp-dev
libseccomp-dev is:
This library provides a high level interface to constructing, analyzing and installing seccomp filters via a BPF passed to the Linux Kernel’s prctl() syscall.
This package contains the development files.
Package: libseccomp-dev Architecture: amd64 Version: 2.4.3-1ubuntu3.20.04.3 Multi-Arch: same Priority: optional Section: libdevel Source: libseccomp Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Kees Cook [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 599 Depends: libseccomp2 (= 2.4.3-1ubuntu3.20.04.3) Suggests: seccomp Filename: pool/main/libs/libseccomp/libseccomp-dev_2.4.3-1ubuntu3.20.04.3_amd64.deb Size: 68236 MD5sum: dbd6988882feb2381ef3da8ece7c09c0 SHA1: d2be789668ae44fbbb41d5f4df1f94ce1271ecfa SHA256: 2301b46d3c587fc6baac0e1b564075d283ba8f7127bc5296a780db86e779513b SHA512: c9af50020846c93ef2d4eb1f581ce8d4e6975f5e13a4bbd4cb86a2a722d0d59f24bf753b7223f439b43958b03c410d6fa01133c537dc71e3606c56eb1d26e894 Homepage: https://github.com/seccomp/libseccomp Description-en: high level interface to Linux seccomp filter (development files) This library provides a high level interface to constructing, analyzing and installing seccomp filters via a BPF passed to the Linux Kernel’s prctl() syscall.
This package contains the development files.
Package: libseccomp-dev Architecture: amd64 Version: 2.4.3-1ubuntu1 Multi-Arch: same Priority: optional Section: libdevel Source: libseccomp Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Kees Cook [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 599 Depends: libseccomp2 (= 2.4.3-1ubuntu1) Suggests: seccomp Filename: pool/main/libs/libseccomp/libseccomp-dev_2.4.3-1ubuntu1_amd64.deb Size: 67944 MD5sum: 2db160354be40347db87323425d76723 SHA1: a208938f452df3c2d98413302d3fcaf3ce59e6bd SHA256: bbdc93f826a6978397a65ee9b21eccc2f5a85a9c63d1548240d7399451eee99a Homepage: https://github.com/seccomp/libseccomp Description-en: high level interface to Linux seccomp filter (development files) This library provides a high level interface to constructing, analyzing and installing seccomp filters via a BPF passed to the Linux Kernel’s prctl() syscall.
This package contains the development files.
There are three methods to install libseccomp-dev
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libseccomp-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libseccomp-dev
using apt-get
by running the following command:
sudo apt-get -y install libseccomp-dev
Install libseccomp-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libseccomp-dev
using apt
by running the following command:
sudo apt -y install libseccomp-dev
Install libseccomp-dev Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libseccomp-dev
using aptitude
by running the following command:
sudo aptitude -y install libseccomp-dev
How To Uninstall libseccomp-dev on Ubuntu 20.04
To uninstall only the libseccomp-dev
package we can use the following command:
sudo apt-get remove libseccomp-dev
Uninstall libseccomp-dev And Its Dependencies
To uninstall libseccomp-dev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libseccomp-dev
Remove libseccomp-dev Configurations and Data
To remove libseccomp-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libseccomp-dev
Remove libseccomp-dev configuration, data, and all of its dependencies
We can use the following command to remove libseccomp-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libseccomp-dev
References
Summary
In this tutorial we learn how to install libseccomp-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.