Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

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 precise/universe amd64 Packages

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

share|improve this answer
# apt-cache policy redmine redmine: Installed: 2.2.2+dfsg1-1~precise+1 Candidate: 2.2.3+dfsg1-1~precise+1 Version table: 2.2.3+dfsg1-1~precise+1 0 500 precise/main i386 Packages *** 2.2.2+dfsg1-1~precise+1 0 100 /var/lib/dpkg/status 1.3.2+dfsg1-1ubuntu1 0 500 precise/universe i386 Packages What stars means ? and numbers like 500 and 100 what they means ? – user1016265 Feb 19 '13 at 2:17
The priority of each version/location is the number at the left of it. In this case, 500 and 100. If I understand this correct, the *** marks the package as "Candidate for upgrading". – BuZZ-dEE Feb 19 '13 at 12:56

You can use aptitude for this instead of apt.

sudo apt-get install aptitude
aptitude show redmine
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.