How To Install seccomp on Ubuntu 20.04
Introduction
In this tutorial we learn how to install seccomp
on Ubuntu 20.04.
What is seccomp
seccomp is:
Provides helper tools for interacting with libseccomp. Currently, only a single tool exists, providing a way to easily enumerate syscalls across the supported architectures. Task: ubuntu-core
Package: seccomp Architecture: amd64 Version: 2.4.3-1ubuntu3.20.04.3 Priority: optional Section: utils Source: libseccomp Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Kees Cook [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 33 Depends: libc6 (>= 2.3.4), libseccomp2 (>= 2.2.1) Suggests: libseccomp-dev Filename: pool/main/libs/libseccomp/seccomp_2.4.3-1ubuntu3.20.04.3_amd64.deb Size: 5268 MD5sum: b186153690845b1d5b17fdf7dff30a72 SHA1: 3637f2b4a75ae1a1e9cdee738db7b7a6d17cf509 SHA256: 9f9ac6bdb079988892e1ad908ae9a507f37538e862b4c55577c19e41e0ffc775 SHA512: 6287f847512c6fddd752bf87c82d0c2601860b433368159c162f6559bad22cf6e04702fdf2e5083f6028ab6964ba0a880fc6282421b82366047f1d2394d4b7ad Homepage: https://github.com/seccomp/libseccomp Description-en: helper tools for high level interface to Linux seccomp filter Provides helper tools for interacting with libseccomp. Currently, only a single tool exists, providing a way to easily enumerate syscalls across the supported architectures. Task: ubuntu-core
Package: seccomp Architecture: amd64 Version: 2.4.3-1ubuntu1 Priority: optional Section: utils Source: libseccomp Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Kees Cook [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 33 Depends: libc6 (>= 2.3.4), libseccomp2 (>= 2.2.1) Suggests: libseccomp-dev Filename: pool/main/libs/libseccomp/seccomp_2.4.3-1ubuntu1_amd64.deb Size: 5272 MD5sum: 098a0fd29c6e9725cd86a7f4e6313a03 SHA1: 388417d86759a87bf5396b397145762655044e01 SHA256: 482d3f07226491694471ac252594596e7d748d3915cc6347c892a0fdbf76d1d8 Homepage: https://github.com/seccomp/libseccomp Description-en: helper tools for high level interface to Linux seccomp filter Provides helper tools for interacting with libseccomp. Currently, only a single tool exists, providing a way to easily enumerate syscalls across the supported architectures. Task: ubuntu-core
There are three methods to install seccomp
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 seccomp Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install seccomp
using apt-get
by running the following command:
sudo apt-get -y install seccomp
Install seccomp Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install seccomp
using apt
by running the following command:
sudo apt -y install seccomp
Install seccomp 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 seccomp
using aptitude
by running the following command:
sudo aptitude -y install seccomp
How To Uninstall seccomp on Ubuntu 20.04
To uninstall only the seccomp
package we can use the following command:
sudo apt-get remove seccomp
Uninstall seccomp And Its Dependencies
To uninstall seccomp
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove seccomp
Remove seccomp Configurations and Data
To remove seccomp
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge seccomp
Remove seccomp configuration, data, and all of its dependencies
We can use the following command to remove seccomp
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge seccomp
References
Summary
In this tutorial we learn how to install seccomp
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.