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

前端 未结 10 2081
陌清茗
陌清茗 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:34

    Also, according to the man page:

    apt-cache showpkg 
    

    can also be used to:

    ...display information about the packages listed on the command line. Remaining arguments are package names. The available versions and reverse dependencies of each package listed are listed, as well as forward dependencies for each version. Forward (normal) dependencies are those packages upon which the package in question depends; reverse dependencies are those packages that depend upon the package in question. Thus, forward dependencies must be satisfied for a package, but reverse dependencies need not be.

    Ex:

    apt-cache policy conky
    
    conky:
      Installed: (none)
      Candidate: 1.10.3-1
      Version table:
         1.10.3-1 500
            500 http://us.archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
            500 http://us.archive.ubuntu.com/ubuntu yakkety/universe i386 Packages
    

提交回复
热议问题