How to check the version before installing a package using apt-get?

前端 未结 10 2168
陌清茗
陌清茗 2021-01-29 17:52

I\'m thinking to install hylafax+ version 5.5.4 which was release last month on my Debian PC.

I checked dpkg -l | grep "hylafax" and found

10条回答
  •  轮回少年
    2021-01-29 18:48

    You can also just simply do the regular apt-get update and then, as per the manual, do:

    apt-get -V upgrade

    -V Show verbose version numbers

    Which will show you the current package vs the one which will be upgraded in a format similar to the one bellow:

    ~# sudo apt-get -V upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    The following packages will be upgraded:
       curl (7.38.0-4+deb8u14 => 7.38.0-4+deb8u15)
       php5 (5.6.40+dfsg-0+deb8u2 => 5.6.40+dfsg-0+deb8u3)
    2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 12.0 MB of archives.
    After this operation, 567 kB of additional disk space will be used.
    Do you want to continue? [Y/n] 
    

提交回复
热议问题