How To Install libsystem-info-perl on Ubuntu 22.04
Introduction
In this tutorial we learn how to install libsystem-info-perl on Ubuntu 22.04.
What is libsystem-info-perl
libsystem-info-perl is:
System::Info tries to present system-related information, like number of CPUs, architecture, OS, and release related information in a system-independent way. This releases the user of this module of the need to know if the information comes from Windows, Linux, HP-UX, AIX, Solaris, Irix, or VMS, and if the architecture is i386, x64, pa-risc2, or arm.
There are three methods to install libsystem-info-perl 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 libsystem-info-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libsystem-info-perl using apt-get by running the following command:
sudo apt-get -y install libsystem-info-perl
Install libsystem-info-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libsystem-info-perl using apt by running the following command:
sudo apt -y install libsystem-info-perl
Install libsystem-info-perl 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 libsystem-info-perl using aptitude by running the following command:
sudo aptitude -y install libsystem-info-perl
How To Uninstall libsystem-info-perl on Ubuntu 22.04
To uninstall only the libsystem-info-perl package we can use the following command:
sudo apt-get remove libsystem-info-perl
Uninstall libsystem-info-perl And Its Dependencies
To uninstall libsystem-info-perl and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove libsystem-info-perl
Remove libsystem-info-perl Configurations and Data
To remove libsystem-info-perl configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge libsystem-info-perl
Remove libsystem-info-perl configuration, data, and all of its dependencies
We can use the following command to remove libsystem-info-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libsystem-info-perl
References
Summary
In this tutorial we learn how to install libsystem-info-perl package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.