From the output, you can see that there are two versions available: 2.0.8-0ubuntu0.13.04.1 and 2.0.6-1. It also tells you which repositories they are coming from.
Installed: tells you the version you have installed. If you don't have the package installed, you'll see (none).
Candidate: is the version that will be installed if you use apt-get install vlc. If you want to install the other version, you would do apt-get install vlc=2.0.6-1.
Go to packages.ubuntu.com, fill in the search form and get a nice view of the package including the version.
Hit search, then:
Additional benefits
Will also list versions of packages for other versions of Ubuntu. Eg. if you want to know about the version of the package in Raring (13.04), but your system still has Precise (12.04), then this will provide a way to find it out.
You don't even need Ubuntu to be installed.
Biggest downside is that it won't list the versions of other repositories you possible have installed, such as PPAs. You will then need the apt-cache policy approach as already posted.
Pro tip
Take the shortcut - just browse to http://packages.ubuntu.com/packagename and replace packagename with the name of the package you want to query.
It also gives information about all available package versions in the repositories. This command output had the syntax like this:
packageName | Version | Repository
apt-cache's madison command attempts to mimic the output format and a
subset of the functionality of the Debian archive management tool,
madison. It displays available versions of a package in a tabular
format. Unlike the original madison, it can only display information
for the architecture for which APT has retrieved package lists
(APT::Architecture).
apt-cache show or aptitude show gives you a lot of information about a package from your repositories (even if this is installed or not), including the version. If you are interested only about version, use:
apt-cache show <packageName> | grep Version
or
aptitude show <packageName> | grep Version
If a package is available in several versions, you will see this. To see only the last version, use:
apt-cache show <packageName> | grep Version | head -1
You can not have any doubts with the above command.
Use the command:
This gives you information of all available package versions.
Example:
From the output, you can see that there are two versions available:
2.0.8-0ubuntu0.13.04.1
and2.0.6-1
. It also tells you which repositories they are coming from.Installed:
tells you the version you have installed. If you don't have the package installed, you'll see(none)
.Candidate:
is the version that will be installed if you useapt-get install vlc
. If you want to install the other version, you would doapt-get install vlc=2.0.6-1
.Go to packages.ubuntu.com, fill in the search form and get a nice view of the package including the version.
Hit search, then:
Additional benefits
Biggest downside is that it won't list the versions of other repositories you possible have installed, such as PPAs. You will then need the
apt-cache policy
approach as already posted.Pro tip
Take the shortcut - just browse to
http://packages.ubuntu.com/packagename
and replacepackagename
with the name of the package you want to query.It also gives information about all available package versions in the repositories. This command output had the syntax like this:
Example:
apt-cache show
oraptitude show
gives you a lot of information about a package from your repositories (even if this is installed or not), including the version. If you are interested only about version, use:or
If a package is available in several versions, you will see this. To see only the last version, use:
You can not have any doubts with the above command.
Open your terminal with CTRL+ALT+T and then type as
Then it will give you information about whats the available version.
for example:
Here's another way:
The above method only works if run with sudo.