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
aptitude show
orapt-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.To get the package version of a package that isn’t currently installed on your system, you can use:
apt
or
or
aptitude