How To Install python3-seccomp on Ubuntu 20.04
Introduction
In this tutorial we learn how to install python3-seccomp
on Ubuntu 20.04.
What is python3-seccomp
python3-seccomp 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.
Package: python3-seccomp Architecture: amd64 Version: 2.4.3-1ubuntu3.20.04.3 Multi-Arch: same Priority: optional Section: universe/python Source: libseccomp Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Kees Cook [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 496 Depends: libc6 (>= 2.4), python3 (« 3.9), python3 (>= 3.8~) Filename: pool/universe/libs/libseccomp/python3-seccomp_2.4.3-1ubuntu3.20.04.3_amd64.deb Size: 91052 MD5sum: 1709b1cc04d2055510383e4c22558b58 SHA1: 52673bc9b48ac1ae3d4961b545213b1f7b4af31a SHA256: 7c07c69a84aa7cdec3742104950e19d363fe002ffd09a1fc35eee31657f31b41 SHA512: e447101463d924500971b405d06876f172c28b0e08abb7884bbbe65e60cf4f38884ddd76dd46a23fc517060ebe5c9cc56be9f75a8a7f98239dd076c70b85870f Homepage: https://github.com/seccomp/libseccomp Description-en: high level interface to Linux seccomp filter (Python 3 bindings) 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.
Package: python3-seccomp Architecture: amd64 Version: 2.4.3-1ubuntu1 Multi-Arch: same Priority: optional Section: universe/python Source: libseccomp Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Kees Cook [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 496 Depends: libc6 (>= 2.4), python3 (« 3.9), python3 (>= 3.8~) Filename: pool/universe/libs/libseccomp/python3-seccomp_2.4.3-1ubuntu1_amd64.deb Size: 90616 MD5sum: 9612646e294a0b09b3910e90346fd1d4 SHA1: 1d081336ebf373155a8f59e75521b49e76b4480f SHA256: c5da12a67b1a41e9fc95bd2210d8b20221ae32c5d91f6fcf754ebe15b6f40d75 Homepage: https://github.com/seccomp/libseccomp Description-en: high level interface to Linux seccomp filter (Python 3 bindings) 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.
There are three methods to install python3-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 python3-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 python3-seccomp
using apt-get
by running the following command:
sudo apt-get -y install python3-seccomp
Install python3-seccomp Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python3-seccomp
using apt
by running the following command:
sudo apt -y install python3-seccomp
Install python3-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 python3-seccomp
using aptitude
by running the following command:
sudo aptitude -y install python3-seccomp
How To Uninstall python3-seccomp on Ubuntu 20.04
To uninstall only the python3-seccomp
package we can use the following command:
sudo apt-get remove python3-seccomp
Uninstall python3-seccomp And Its Dependencies
To uninstall python3-seccomp
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove python3-seccomp
Remove python3-seccomp Configurations and Data
To remove python3-seccomp
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge python3-seccomp
Remove python3-seccomp configuration, data, and all of its dependencies
We can use the following command to remove python3-seccomp
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-seccomp
References
Summary
In this tutorial we learn how to install python3-seccomp
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.