Skip to content
Related Articles

Related Articles

How to Install apt-show-versions package on Ubuntu?

View Discussion
Improve Article
Save Article
  • Last Updated : 27 Jul, 2022
View Discussion
Improve Article
Save Article

Apt-show-versions searches the dpkg status file, and the APT lists for installed and available package versions and 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 searches the dpkg status file, and the APT lists for installed and available package versions and distribution and displays upgrade choices for the specified package. This is really handy if you have a mixed stable/testing setup and want to show all packages that are from testing and can be upgraded in testing.
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 on Ubuntu

On Ubuntu 20.04, there are three options for installing apt-show-versions. Apt-get, apt, and aptitude are all available. Each strategy of installation will be described in detail in the following sections. You may select any of them.

  • Using apt-get to install
  • Using aptitude to install
  • Using apt to install

Method 1: Using the apt-get command

Step 1: First, run the command below to update the apt database.

sudo apt-get update

Updating-apt-get-database

Step 2: After updating the apt database, we can run the following command to install apt-show-versions using apt-get:

sudo apt-get -y install apt-show-versions

Installing-apt-show-versions

Method 2: Using apt

Step 1: First, run the command below to update the apt database.

sudo apt update

Updating-apt-database

Step 2: Once the apt database has been upgraded, we can use apt to install apt-show-versions by running the command:

sudo apt -y install apt-show-versions

Installing-apt-show-versions

Method 3: Using aptitude

Step 1: Update the apt database with the following command using aptitude.

sudo aptitude update

Updating-aptitude

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

sudo apptitude -y install apt-show-versions

Installing-apt-show-versions

Usage of apt-show-versions package

Example 1: If you wish to discover whether all of your installed packages are up to date or upgradeable, use,

apt-show-versions

Checking-installed-packages

Example 2: If you want a list of all upgradeable packages, go here,

apt-show-versions -u

List-of-upgradeable-packages

Example 3: To obtain a list of all available libc6 versions,

apt-show-versions -a -p libc6

Checking-list-of-available-libc6-versions
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!