How to check what version of a package is available in the current ubuntu?

NoOp glgxg at
Fri Feb 12 17:21:55 UTC 2010

On 02/12/2010 09:02 AM, Hakan Koseoglu wrote:
> On Fri, Feb 12, 2010 at 4:52 PM, Peng Yu <pengyu.ut at> wrote:
>> My bash is of the following version. I'm wondering if I want to update
>> bash what version I will get.
> <clipped>
>> I searched on the ubuntu website. There are too many related packages.
>> Could somebody let me know which one will be used when bash is
>> updated?
> What's the problem with this link? It correctly shows that the bash
> package version is 4.0.5.

It can be confusing...

$ bash --version
GNU bash, version 4.0.33(1)-release (i486-pc-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ apt-cache policy bash
  Installed: 4.0-5ubuntu2
  Candidate: 4.0-5ubuntu2
  Version table:
 *** 4.0-5ubuntu2 0
        500 karmic/main Packages
        100 /var/lib/dpkg/status

As you can see, it's _not_ 4.0.5, it's actually 4.0.33 (in Ubuntu
language: 4.0-5ubuntu2).

@Peng Yu: for your search, use:
and you'll see 'Package bash' and the versions for all from dapper to lucid.

More information about the ubuntu-users mailing list