How To Install lsb-security on Ubuntu 20.04

In this tutorial we learn how to install lsb-security on Ubuntu 20.04. lsb-security is Linux Standard Base Security package

Introduction

In this tutorial we learn how to install lsb-security on Ubuntu 20.04.

What is lsb-security

lsb-security is:

The Linux Standard Base (http://www.linuxbase.org/) is a standard core system that third-party applications written for Linux can depend upon.

This package provides an implementation of the Linux Standard Base Security specification for Debian on the Intel x86, Intel ia64 (Itanium), IBM S390, and PowerPC 32-bit architectures with the Linux kernel. Future revisions of the specification and this package may support the LSB on additional architectures and kernels.

The intent of this package is to provide a best current practice way of installing and running LSB packages on Debian GNU/Linux. Its presence does not imply that Debian fully complies with the Linux Standard Base, and should not be construed as a statement that Debian is LSB-compliant.

There are three methods to install lsb-security 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 lsb-security Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install lsb-security using apt-get by running the following command:

sudo apt-get -y install lsb-security

Install lsb-security Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install lsb-security using apt by running the following command:

sudo apt -y install lsb-security

Install lsb-security 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 lsb-security using aptitude by running the following command:

sudo aptitude -y install lsb-security

How To Uninstall lsb-security on Ubuntu 20.04

To uninstall only the lsb-security package we can use the following command:

sudo apt-get remove lsb-security

Uninstall lsb-security And Its Dependencies

To uninstall lsb-security and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove lsb-security

Remove lsb-security Configurations and Data

To remove lsb-security configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge lsb-security

Remove lsb-security configuration, data, and all of its dependencies

We can use the following command to remove lsb-security configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge lsb-security

References

Summary

In this tutorial we learn how to install lsb-security package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.