skip to Main Content

I have a vim on my debian system. I want to update vim by apt-get install vim. But I’m not sure about the version which will be installed. If it is not the version I want, I will install by sources. How can I know what version will be installed? aptitude search or apt-cache search only gives me a short description, not the version. And aptitude show or apt-get show gives version information of installed packages. Thanks in advance.

2

Answers


  1. aptitude show or apt-cache show shows available versions in addition to installed versions. Unless you’re doing something weird with pins, the highest available version is the one that will be installed.

    Since you mention aptitude, you can also open up the aptitude TUI and navigate to the package in question. In the overview view, the second-to-last column shows the currently-installed version of the package, and the last column shows the version that will be installed if you use + to mark the package for installation. If you press Enter on the package, the detail page will show all available versions, at the bottom.

    Login or Signup to reply.
  2. To get the package version of a package that isn’t currently installed on your system, you can use:

    apt

    apt-cache policy vim
    apt policy vim
    

    or

    apt-cache madison vim
    

    or

    apt list vim
    

    aptitude

    aptitude versions vim
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search