How To Install lsb-compat on Debian 9
Introduction
In this tutorial we learn how to install lsb-compat on Debian 9.
What is lsb-compat
lsb-compat is:
The Linux Standard Base (http://www.linuxbase.org/) was a standard core system that third-party applications written for Linux could depend upon.
This package provides the most minimal layer to be able to install and run selected legacy LSB packages on Debian.
There are three methods to install lsb-compat on Debian 9. 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-compat 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-compat using apt-get by running the following command:
sudo apt-get -y install lsb-compat
Install lsb-compat Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install lsb-compat using apt by running the following command:
sudo apt -y install lsb-compat
Install lsb-compat 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 Debian. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install lsb-compat using aptitude by running the following command:
sudo aptitude -y install lsb-compat
How To Uninstall lsb-compat on Debian 9
To uninstall only the lsb-compat package we can use the following command:
sudo apt-get remove lsb-compat
Uninstall lsb-compat And Its Dependencies
To uninstall lsb-compat and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove lsb-compat
Remove lsb-compat Configurations and Data
To remove lsb-compat configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge lsb-compat
Remove lsb-compat configuration, data, and all of its dependencies
We can use the following command to remove lsb-compat configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge lsb-compat
Dependencies
lsb-compat have the following dependencies:
References
Summary
In this tutorial we learn how to install lsb-compat package on Debian 9 using different package management tools: apt, apt-get and aptitude.