How To Install lsb-core on Ubuntu 22.04
Introduction
In this tutorial we learn how to install lsb-core
on Ubuntu 22.04.
What is lsb-core
lsb-core 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 core of the Linux Standard Base 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-core
on Ubuntu 22.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-core 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-core
using apt-get
by running the following command:
sudo apt-get -y install lsb-core
Install lsb-core Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install lsb-core
using apt
by running the following command:
sudo apt -y install lsb-core
Install lsb-core 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-core
using aptitude
by running the following command:
sudo aptitude -y install lsb-core
How To Uninstall lsb-core on Ubuntu 22.04
To uninstall only the lsb-core
package we can use the following command:
sudo apt-get remove lsb-core
Uninstall lsb-core And Its Dependencies
To uninstall lsb-core
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove lsb-core
Remove lsb-core Configurations and Data
To remove lsb-core
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge lsb-core
Remove lsb-core configuration, data, and all of its dependencies
We can use the following command to remove lsb-core
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge lsb-core
References
Summary
In this tutorial we learn how to install lsb-core
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.