我正在考虑安装hylafax+ 5.5.4版本,上个月在我的Debian PC上发布。

我查了dpkg -l | grep“hylafax”,发现现在的版本是5.5.3。然后我检查了apt-cache搜索hylafax,看到包是可用的,但我看不到任何版本号。

如何在apt-get中找到可用的软件包版本?


当前回答

你也可以简单地做常规的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] 

其他回答

在通过apt-get或apt安装时使用-V选项。您可以创建别名apt="apt -V",以避免每次都手动输入。

例子:

# apt -V install podman
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
   aardvark-dns (1.2.0-0ubuntu22.04+obs28.7)
   catatonit (0.1.7-1)
   conmon (2:2.1.4-0ubuntu22.04+obs13.12)
   containers-common (4:1-0ubuntu22.04+obs16.8)
   criu (3.16.1-2)
   crun (1.6-0ubuntu22.04+obs46.9)
   fuse-overlayfs (1.9-0ubuntu22.04+obs18.9)
   libnet1 (1.1.6+dfsg-3.1build3)
   libprotobuf-c1 (1.3.3-1ubuntu2.1)
   libprotobuf23 (3.12.4-1ubuntu7)
   libslirp0 (4.6.1-1build1)
   libyajl2 (2.1.0-3build2)
   netavark (1.2.0-0ubuntu22.04+obs21.7)
   podman-gvproxy (4:4.3.0-0ubuntu22.04+obs63.8)
   python3-protobuf (3.12.4-1ubuntu7)
   slirp4netns (1.2.0-0ubuntu22.04+obs10.11)
   uidmap (1:4.8.1-2ubuntu2)
Suggested packages:
   qemu-user-static (1:6.2+dfsg-2ubuntu6.5)
The following NEW packages will be installed:
   aardvark-dns (1.2.0-0ubuntu22.04+obs28.7)
   catatonit (0.1.7-1)
   conmon (2:2.1.4-0ubuntu22.04+obs13.12)
   containers-common (4:1-0ubuntu22.04+obs16.8)
   criu (3.16.1-2)
   crun (1.6-0ubuntu22.04+obs46.9)
   fuse-overlayfs (1.9-0ubuntu22.04+obs18.9)
   libnet1 (1.1.6+dfsg-3.1build3)
   libprotobuf-c1 (1.3.3-1ubuntu2.1)
   libprotobuf23 (3.12.4-1ubuntu7)
   libslirp0 (4.6.1-1build1)
   libyajl2 (2.1.0-3build2)
   netavark (1.2.0-0ubuntu22.04+obs21.7)
   podman (4:4.3.0-0ubuntu22.04+obs63.8)
   podman-gvproxy (4:4.3.0-0ubuntu22.04+obs63.8)
   python3-protobuf (3.12.4-1ubuntu7)
   slirp4netns (1.2.0-0ubuntu22.04+obs10.11)
   uidmap (1:4.8.1-2ubuntu2)
0 upgraded, 18 newly installed, 0 to remove and 40 not upgraded.
Need to get 41.5 MB of archives.
After this operation, 125 MB of additional disk space will be used.
Do you want to continue? [Y/n]

你也可以简单地做常规的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] 

Linux Mint, Debian 9, Ubuntu 16.04及更老版本:

短信息:

apt policy <package_name>

详细信息(与描述和视情况而定):

apt show <package_name>
apt policy <package>

在短

在debian上:

apt list --upgradable

给出包含包、要升级的版本和包的实际版本的列表。

结果:

base-files/stable 8+deb8u8 amd64 [upgradable from: 8+deb8u7]
bind9-host/stable 1:9.9.5.dfsg-9+deb8u11 amd64 [upgradable from: 1:9.9.5.dfsg-9+deb8u9]
ca-certificates/stable 20141019+deb8u3 all [upgradable from: 20141019+deb8u2]
certbot/jessie-backports 0.10.2-1~bpo8+1 all [upgradable from: 0.8.1-2~bpo8+1]
dnsutils/stable 1:9.9.5.dfsg-9+deb8u11 amd64 [upgradable from: 1:9.9.5.dfsg-9+deb8u9]