Debian Show apt-get package version

摘要: On Debian, you can use apt-cache policy 'package name' to check the package version.

On Debian, you can use apt-cache policy 'package name' to check the package version.

1.1 Display Tomcat7 version.

$ sudo apt-cache policy tomcat7
tomcat7:
  Installed: (none)
  Candidate: 7.0.52-1ubuntu0.3
  Version table:
     7.0.52-1ubuntu0.3 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     7.0.52-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

1.2 Display OpenJDK-7 version.

$ sudo apt-cache policy openjdk-7-jdk
openjdk-7-jdk:
  Installed: (none)
  Candidate: 7u95-2.6.4-0ubuntu0.14.04.1
  Version table:
     7u95-2.6.4-0ubuntu0.14.04.1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     7u51-2.4.6-1ubuntu4 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

1.3 Alternatively, try apt-cache madison 'package name'

$ sudo apt-cache madison tomcat7
   tomcat7 | 7.0.52-1ubuntu0.3 | http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
   tomcat7 | 7.0.52-1ubuntu0.3 | http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
   tomcat7 |   7.0.52-1 | http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

References

  1. apt-cache – Linux man page
  2. apt-get – Linux man page

上一篇: Gradle How to exclude some tests
下一篇: Java Mutable and Immutable Objects
 评论 ( What Do You Think )
名称
邮箱
网址
评论
验证
   
 

 


  • 微信公众号

  • 我的微信

站点声明:

1、一号门博客CMS,由Python, MySQL, Nginx, Wsgi 强力驱动

2、部分文章或者资源来源于互联网, 有时候很难判断是否侵权, 若有侵权, 请联系邮箱:summer@yihaomen.com, 同时欢迎大家注册用户,主动发布无版权争议的 文章/资源.

3、鄂ICP备14001754号-3, 鄂公网安备 42280202422812号