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

我检查了dpkg -l | grep"hylafax",发现当前版本为5.5.3。 然后,我检查了apt-cache search hylafax,发现软件包可用,但是看不到任何版本号。

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

在Unix和Linux堆栈交换上的相同问题:unix.stackexchange.com/questions/6284/

好的,我找到了。

apt-cache policy将显示版本详细信息。

它还显示了当前安装的版本以及可以安装的版本。

例如,apt-cache policy hylafax+

不能相信apt install中没有显示此内容,以便您有机会在说出Y之前复习版本。

apt-cache policy

$ apt-cache policy redis-server

redis-server:

Installed: (none)

Candidate: 2:2.8.4-2

Version table:

2:2.8.4-2 0

500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

apt-get install -s

$ apt-get install -s redis-server

NOTE: This is only a simulation!

apt-get needs root privileges for real execution.

Keep also in mind that locking is deactivated,

so don't depend on the relevance to the real current situation!

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

libjemalloc1 redis-tools

The following NEW packages will be installed:

libjemalloc1 redis-server redis-tools

0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.

Inst libjemalloc1 (3.5.1-2 Ubuntu:14.04/trusty [amd64])

Inst redis-tools (2:2.8.4-2 Ubuntu:14.04/trusty [amd64])

Inst redis-server (2:2.8.4-2 Ubuntu:14.04/trusty [amd64])

Conf libjemalloc1 (3.5.1-2 Ubuntu:14.04/trusty [amd64])

Conf redis-tools (2:2.8.4-2 Ubuntu:14.04/trusty [amd64])

Conf redis-server (2:2.8.4-2 Ubuntu:14.04/trusty [amd64])

apt-cache show

$ apt-cache show redis-server

Package: redis-server

Priority: optional

Section: universe/misc

Installed-Size: 744

Maintainer: Ubuntu Developers

Original-Maintainer: Chris Lamb

Architecture: amd64

Source: redis

Version: 2:2.8.4-2

Depends: libc6 (>= 2.14), libjemalloc1 (>= 2.1.1), redis-tools (= 2:2.8.4-2), adduser

Filename: pool/universe/r/redis/redis-server_2.8.4-2_amd64.deb

Size: 267446

MD5sum: 066f3ce93331b876b691df69d11b7e36

SHA1: f7ffbf228cc10aa6ff23ecc16f8c744928d7782e

SHA256: 2d273574f134dc0d8d10d41b5eab54114dfcf8b716bad4e6d04ad8452fe1627d

Description-en: Persistent key-value database with network interface

Redis is a key-value database in a similar vein to memcache but the dataset

is non-volatile. Redis additionally provides native support for atomically

manipulating and querying data structures such as lists and sets.

.

The dataset is stored entirely in memory and periodically flushed to disk.

Description-md5: 9160ed1405585ab844f8750a9305d33f

Homepage: http://redis.io/

Bugs: https://bugs.launchpad.net/ubuntu/+filebug

Origin: Ubunt

dpkg -l

$ dpkg -l nginx

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name                                     Version                   Architecture              Description

+++-========================================-=========================-=========================-=====================================================================================

ii  nginx                                    1.6.2-1~trusty            amd64                     high performance web server

请注意,dpkg -l仅列出已安装的软件包。 提前查看版本没有用。

apt policy

简而言之

Linux Mint,Debian 9,Ubuntu 16.04和更低版本:

简短信息:

apt policy

详细信息(带有说明和取决于):

apt show

以下内容可能会很好地起作用:

aptitude versions ^hylafax+

在aptitude中查看更多(8)

在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]

好答案! 提供所有软件包的概述,不需要其他软件包(例如apt-show-versions)。

另外,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-cache showpkg

也可以用于:

...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

正如在其他地方发布的那样,它也适用:

<5233>

您还可以简单地执行常规apt-get update,然后按照手册进行:

apt-get -V upgrade

-V Show verbose version numbers

它将向您显示当前软件包,而将以类似于下面的格式升级的软件包:

~# 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]

debian查看bind版本_关于debian:如何在使用apt-get安装软件包之前检查版本相关推荐

  1. ipc620中文版最新版本_(一)Windows10 家庭中文版Docker安装 搭建docker开发环境

    首先因为系统的版本问题,Windows的某些版本目前还是不支持,如果必须安装此软件,可以按规定提示,选择适合的系统,Windows 10专业版或企业版.但是,那需要成本,且非常麻烦. 为了以后也会使用 ...

  2. debian mysql开机启动_自动启动debian和lighttpd+mysql

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 修正启动lighttpd+php5+mysql完美无错教程 ********************手动******************** moun ...

  3. debian改网卡速率_[转]Debian里的网卡配置/etc/network/interfaces

    青蛙准备写一个系列文章,介绍一些Debian/Ubuntu里面常用的配置文件.当然,Linux系统中的配置文件多如牛毛,青蛙见过配过的也只是寥寥几个.不过,青蛙会把配置过的配置文件尽量详细的介绍一下, ...

  4. pycharm中python版本_在 Pycharm(2019,.3)里配置 Anaconda3 的 Python 版本

    先说配置方法: 一 在已有项目中配置: Virtualenv Environment 里选择 Existing environment 在 interpreter 输入或跟着路径找: /Users/* ...

  5. 修改js版本_啥都学点之使用nvm安装Node.js并实现Node.js多版本管理

    刚开始使用Node.js的时候,直接到官网下载安装 中文站点:https://nodejs.org/zh-cn/ Node.js网站截图 当接触的项目多以后,会出现一个问题,2个项目,使用的是不同的N ...

  6. 查看vnc端口_如何在 Centos 8 / RHEL 8 上安装和配置 VNC 服务器

    在 Centos 8 和 RHEL 8 系统中,默认未安装 VNC 服务器,它需要手动安装.在本文中,我们将通过简单的分步指南,介绍如何在 Centos 8 / RHEL 8 上安装 VNC 服务器. ...

  7. python如何安装各类包_如何在Python中列出所有已安装的包及其版本?

    help('modules')应该为你做. 在伊普顿:In [1]: import #import press-TAB Display all 631 possibilities? (y or n) ...

  8. 苹果ll是什么版本_苹果11promax国行港版有什么区别吗 哪个版本信号稳定 组装机质量靠谱么 电池耐用吗...

    关注本公司官方公众号,可了解三星W2016 .W2017 .W2018.大器五G9298 .w2018.S9+.NOTE9 .威图.苹果XS MAX/XR/iphone8/iphone X等型号,有视 ...

  9. 怎么查看自己安装的python版本_教你如何检查 Python 版本

    本教程介绍如何使用 命令行检查操作系统上安装的 Python 版本.这在安装用 Python 编写的需要特定版本 Python 的应用程序时非常有用. Python 是世界上最流行的编程语言之一.它用 ...

最新文章

  1. R语言distVincentyEllipsoid函数计算大圆距离实战(Great Circle Distance)
  2. 福利 | “东数西算”这项重大工程,国家全面启动!
  3. 我的编程之路:网编到全栈的漫长路
  4. UiAutomator控件获取
  5. 入门RabbitMQ核心概念
  6. JSON.toJSONString 出现 {$ref: “$.deduceGridCellVoSet[0].stateFlightsBasic[0]“}
  7. 格林斯潘的一句话造成昨天(5月24日)股市大跌后爬升的分析
  8. Java实现邮箱验发送证码、代码示例【qq邮箱】
  9. ocelot 配置文件的动态更新
  10. HDOJ 1114 Piggy-Bank 【动态规划 完全背包】
  11. phpstorm 设置注释
  12. MT6573_android_LCD_backlight_Driver
  13. linux 命令杂集
  14. 产生伪随机数两种常用算法
  15. 17岁少年攻击航司系统获刑,网络攻击猖獗如何破?
  16. 台计算机的本地打印机 并且,三台电脑,怎么共用一台打印机?
  17. 第1节 基本数据类型分析
  18. 企业微信Windows版本调试
  19. 日本海淘转运运输方式对比及如何选择转运渠道
  20. 求生之路2服务器无限尸潮插件,Left 4 Dead 2求生之路2 服务器多特插件8特插件特殊感染无限插件...

热门文章

  1. 数据结构之八大排序总结
  2. 证明技巧I——反证法
  3. U-Mail邮件系统详解邮件收发延迟原因及解决方案
  4. 金山pdf独立版右键菜单
  5. Python + 大数据-Hadoop生态-Linux(一)-环境搭建和Vi
  6. 【附源码】Python计算机毕业设计天润律师事务所管理系统
  7. OpenLayers 3 入门指南
  8. 全球及中国色觉传感器行业市场需求预测及发展趋势展望报告2022-2028年
  9. 关于Android studio的安装步骤与安装方法
  10. cocos2dx 字体外发光_《Cocos2d-x游戏开发实战精解》学习笔记2--在Cocos2d-x中显示一行文字...