How can I check the available version of a package in the repositories?

rɑːdʒɑ

How can I check the version of the available package in the Ubuntu repositories without installing it?

Alaa Ali

Use the command:

apt-cache policy <packageName>

This gives you information of all available package versions.

Example:

alaa@aa-lu:~$ apt-cache policy vlc
vlc:
  Installed: 2.0.8-0ubuntu0.13.04.1
  Candidate: 2.0.8-0ubuntu0.13.04.1
  Version table:
 *** 2.0.8-0ubuntu0.13.04.1 0
        500 http://ae.archive.ubuntu.com/ubuntu/ raring-updates/universe i386 Packages
        500 http://security.ubuntu.com/ubuntu/ raring-security/universe i386 Packages
        100 /var/lib/dpkg/status
     2.0.6-1 0
        500 http://ae.archive.ubuntu.com/ubuntu/ raring/universe i386 Packages
  • 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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to check which version of a product is available in repositories for different ubuntu versions?

From Dev

How can I check latest available version of Symfony with any API?

From Dev

How do I check if a package is available for install?

From Dev

How do I check if a package is available for install?

From Dev

How can I see which versions (platform/version/abi) of a package are available using pip3?

From Dev

How I can check if it something available in socket?

From Dev

How can I check if a string is available in a table?

From Dev

How can I bypass available memory check?

From Dev

How can I check which is the installed version of a package if with dpkg -l it says is installed in all architectures?

From Dev

What can I do if a package is not available on the newest version of Ubuntu (18.04) but is available on older versions?

From Java

How can I check the system version of Android?

From Dev

How can I check the LIB file version?

From Dev

How can I filter "dpkg --get-selections" to just packages available in repositories?

From Dev

How can I filter "dpkg --get-selections" to just packages available in repositories?

From Dev

How can I see all versions of a package that are available in the archive?

From Dev

How can I see all versions of a package that are available in the archive?

From Dev

How can I make the goaccess package available in Lucid (10.04)?

From Dev

How can I check the available shells in Mac OSX?

From Dev

How can I check which terminal definitions are available?

From Dev

How can I check if cgroups are available on my Linux host?

From Dev

How to check available package versions in rpm systems?

From Dev

How to check available package versions in rpm systems?

From Dev

How do you find the latest supported version of a package in official repositories?

From Java

How can I check which version of Angular I'm using?

From Dev

How can I check the version of asterisk I am running?

From Dev

How can I check the version of asterisk I am running?

From Dev

How can I check what version of the VI editor I have?

From Dev

how can I check which version of vim I have installed?

From Dev

How can I check which JRE version I have?

Related Related

  1. 1

    How to check which version of a product is available in repositories for different ubuntu versions?

  2. 2

    How can I check latest available version of Symfony with any API?

  3. 3

    How do I check if a package is available for install?

  4. 4

    How do I check if a package is available for install?

  5. 5

    How can I see which versions (platform/version/abi) of a package are available using pip3?

  6. 6

    How I can check if it something available in socket?

  7. 7

    How can I check if a string is available in a table?

  8. 8

    How can I bypass available memory check?

  9. 9

    How can I check which is the installed version of a package if with dpkg -l it says is installed in all architectures?

  10. 10

    What can I do if a package is not available on the newest version of Ubuntu (18.04) but is available on older versions?

  11. 11

    How can I check the system version of Android?

  12. 12

    How can I check the LIB file version?

  13. 13

    How can I filter "dpkg --get-selections" to just packages available in repositories?

  14. 14

    How can I filter "dpkg --get-selections" to just packages available in repositories?

  15. 15

    How can I see all versions of a package that are available in the archive?

  16. 16

    How can I see all versions of a package that are available in the archive?

  17. 17

    How can I make the goaccess package available in Lucid (10.04)?

  18. 18

    How can I check the available shells in Mac OSX?

  19. 19

    How can I check which terminal definitions are available?

  20. 20

    How can I check if cgroups are available on my Linux host?

  21. 21

    How to check available package versions in rpm systems?

  22. 22

    How to check available package versions in rpm systems?

  23. 23

    How do you find the latest supported version of a package in official repositories?

  24. 24

    How can I check which version of Angular I'm using?

  25. 25

    How can I check the version of asterisk I am running?

  26. 26

    How can I check the version of asterisk I am running?

  27. 27

    How can I check what version of the VI editor I have?

  28. 28

    how can I check which version of vim I have installed?

  29. 29

    How can I check which JRE version I have?

HotTag

Archive