How to Uninstall or Install distro-info on Ubuntu 22.04

Updated: September 11, 2022

Information about all releases of Debian and Ubuntu. The distro-info script will give you the codename for e.g. the latest stable release of your distribution. To get information about a specific distribution there are the debian-distro-info and the ubuntu-distro-info scripts. I will show you how to install distro-info on Ubuntu 22.04 in this guide.

Prerequisites

  • OS: distro-info needs Ubuntu 22.04 to work
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install distro-info on Ubuntu 22.04

Install distro-info Ubuntu 22.04

distro-info is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install distro-info using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get distro-info on your Ubuntu 22.04.

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 download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt update

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

sudo apt -y install distro-info

Install distro-info using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt -y install aptitude

After installing, you can now install distro-info by following these steps:

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

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install distro-info Ubuntu by executing this command in the terminal.

sudo aptitude -y install distro-info

Uninstall distro-info 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.

You can uninstall distro-info Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove distro-info

If you want to uninstall distro-info and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge distro-info

Summary

In this tutorial, I showed you ways to install distro-info on Ubuntu 22.04 and ways to uninstall distro-info too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.