How to Install and Uninstall python-selinux Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: November 22,2024

1. Install "python-selinux" package

In this section, we are going to explain the necessary steps to install python-selinux on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install python-selinux

2. Uninstall "python-selinux" package

In this section, we are going to explain the necessary steps to uninstall python-selinux on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove python-selinux $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-selinux package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: python-selinux
Architecture: amd64
Version: 2.7-2build2
Built-Using: libsepol (= 2.7-1)
Priority: optional
Section: universe/devel
Source: libselinux
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian SELinux maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 558
Provides: python2.7-selinux
Depends: python (<< 2.8), python (>= 2.7~), python:any (<< 2.8), python:any (>= 2.7.5-5~), libc6 (>= 2.14), libselinux1 (>= 2.7~rc2)
Filename: pool/universe/libs/libselinux/python-selinux_2.7-2build2_amd64.deb
Size: 138400
MD5sum: 14d83d736e770db2e08b7525a5600771
SHA1: 65f5f51aa1fbb9d440e54431d7bb567409f639d6
SHA256: 6305e08f330a7b369b7c44d7f458b2c6a0d7234d905b8edeb57ad0c43633503a
Homepage: http://userspace.selinuxproject.org/
Description: Python bindings to SELinux shared libraries
Description-md5: 67b963c735f7257847962058fa0ce21f