我正在考虑安装hylafax+ 5.5.4版本,上个月在我的Debian PC上发布。
我查了dpkg -l | grep“hylafax”,发现现在的版本是5.5.3。然后我检查了apt-cache搜索hylafax,看到包是可用的,但我看不到任何版本号。
如何在apt-get中找到可用的软件包版本?
我正在考虑安装hylafax+ 5.5.4版本,上个月在我的Debian PC上发布。
我查了dpkg -l | grep“hylafax”,发现现在的版本是5.5.3。然后我检查了apt-cache搜索hylafax,看到包是可用的,但我看不到任何版本号。
如何在apt-get中找到可用的软件包版本?
当前回答
此外,根据手册页:
apt-cache showpkg <package_name>
也可用于:
...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.
例子:
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
其他回答
正如在其他地方发布的,这也是有效的:
Apt-cache Madison <package_name> .使用实例
apt policy <package>
在短
下面的方法可能效果不错:
aptitude versions ^hylafax+
多看天赋(8)
另外,apt-show-versions包(单独安装)解析关于已安装内容的dpkg信息,并告诉您包是否为最新的。
例子……
sudo apt-show-versions --regex chrome
输出:
google-chrome-stable/stable upgradeable from 32.0.1700.102-1 to 35.0.1916.114-1
xserver-xorg-video-openchrome/quantal-security uptodate 1:0.3.1-0ubuntu1.12.10.1
你也可以简单地做常规的apt-get更新,然后,按照手册,做:
apt-get -V升级
-V显示详细版本号
它将显示当前包与将以类似于下面的格式升级的包:
~# 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]