How to Install apt-show-versions package on Ubuntu?
Last Updated :
20 Jun, 2024
If you are using any Linux Distributions like Ubuntu OS, you should know the process to Manage & Verify Installed Packages there. And for that purpose, the Apt-Show-Versions Package on Ubuntu will be the best.
With the Ubuntu Apt-Show-Versions Package, you can list down the Ubuntu Packages present in the device. In this article, we will discuss the methods to Install the Apt-Show-Versions Tool on the Ubuntu Operating System.
What is the Apt-Show-Versions Package?
Apt-Show-Versions searches the DPKG Status File, and the APT lists for Installed and Available Package Versions. All distributions and displays upgrade choices within the selected package's particular distribution. If you have a Mixed Stable/Testing Setup and want to List All Packages that are from testing and can be upgraded in testing, this is a great tool.
Apt-Show-Versions cache the Status of Installed and Accessible Packages. When you run Apt-Show-Versions as Root, the Cache is updated as needed. When run as Non-Root, it utilizes the most recent accessible information but is unable to update the cache. When Invoked as Root with the option -i, the cache is merely initialized or updated.
How To Install Apt-Show-Versions Package on Ubuntu?
To Download Apt-Show-Versions Package Tool on Ubuntu, the following methods should be used. Let us start with the very simple method where the Sudo Command on Linux will be used.
Method 1: Install the Apt-Show-Versions Package on Ubuntu using the Apt-Get Command
Step 1: First, run the command below to update the Apt-Get database.
Command: sudo apt-get update

Step 2: After updating the apt database, we can run the following command to Install Apt-Show-Versions using Apt-Get.
Command: sudo apt-get -y install apt-show-versions

Method 2: Install the Apt-Show-Versions Package on Ubuntu using the Apt Command
Step 1: First, run the command below to update the Apt database.
Command: sudo apt update

Step 2: Once the apt database has been upgraded, we can use apt to Install Apt-Show-Versions by running the command:
Command: sudo apt -y install apt-show-versions

Method 3: Install the Apt-Show-Versions Package on Ubuntu using the Aptitude Command
Step 1: Update the apt database with the following command using Aptitude.
Command: sudo aptitude update

Step 2: We may use aptitude to install apt-show-versions after updating the aptitute database by running the following command.
Command: sudo aptitude -y install apt-show-versions

How to Use Apt-Show-Versions Package on Ubuntu?
Example 1: If you wish to discover whether all of your Installed Packages are up to date or upgradeable, use,
Command: apt-show-versions

Example 2: If you want a list of all Upgradeable Packages, go here,
Command: apt-show-versions -u

Example 3: To obtain a list of all Available Libc6 Versions.
Command: apt-show-versions -a -p libc6

Conclusion
In the end, we can say that the Installation of Apt-Show-Versions Package on Ubuntu is not a complex task as you will get three different methods to Get Apt-Show-Versions Package. With each of the methods, certain Linux Commands are associated. So, you have to execute the Commands on Ubuntu Terminal carefully