How to Install or Uninstall libcommon-sense-perl Ubuntu 22.04

Updated: October 22, 2022

common::sense implements some sane defaults for Perl programs, as defined by two typical (or not so typical - use your common sense) specimens of Perl coders. In this guide, I will show you ways to install libcommon-sense-perl Ubuntu 22.04.

Requirements to install

  • OS: Ubuntu 22.04 is needed for libcommon-sense-perl to work
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install libcommon-sense-perl on Ubuntu 22.04

Install libcommon-sense-perl Ubuntu 22.04

libcommon-sense-perl is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install libcommon-sense-perl using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these instructions to install libcommon-sense-perl on your Ubuntu 22.04.

Step 1: Update the APT database to fetch new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install libcommon-sense-perl Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt -y install libcommon-sense-perl

Install libcommon-sense-perl using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already done so, run this command to install it.

sudo apt-get install aptitude

After that, you can now install libcommon-sense-perl, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install libcommon-sense-perl Ubuntu by executing this command in the terminal.

sudo aptitude install libcommon-sense-perl

Uninstall libcommon-sense-perl on Ubuntu 22.04

Have you ever thought about how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone can easily uninstall any program, not just a package.

If you installed libcommon-sense-perl using APT or Aptitude, you could uninstall libcommon-sense-perl on Ubuntu by executing this command

sudo apt remove --auto-remove libcommon-sense-perl

You can also execute this command if you want to uninstall libcommon-sense-perl and remove its data and dependencies:

sudo apt autoremove --purge libcommon-sense-perl

Summary

In this guide, I showed you ways to install libcommon-sense-perl on Ubuntu 22.04 and ways to uninstall libcommon-sense-perl too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.