Ubuntu – Version of updated package


I'm running apt-get upgrade and see list of available packages which could be upgraded. Some of them without any version, how can I figure out what package version apt want to install here?

For example I see the next picture:

 base-files .. redmine redmine-mysql redmine-sqlite ...

How to know what to what version redmine will be upgraded ? And from what repository apt going to take it?

Best Answer

To see the versions of a package you could use:

apt-cache show redmine | grep -i version

Output is:

Version: 1.3.2+dfsg1-1ubuntu1

To see the versions and the repository you could use:

apt-cache policy redmine

Output is:

  Installiert: (keine)
  Kandidat:    1.3.2+dfsg1-1ubuntu1
     1.3.2+dfsg1-1ubuntu1 0
        500 http://de.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages

See: WebUpd8 - How To Find Out To Which PPA Repository A Package Belongs To