python html5 bootstrap 视频教程

德云社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 5027|回复: 0

Ubuntu Server 14.04 查看软件版本及其安装位置的常用 Shell 命令

[复制链接]

172

主题

258

帖子

1114

积分

版主

Rank: 7Rank: 7Rank: 7

金钱
663
金币
7
威望
0
贡献
0
发表于 2015-7-6 19:54:41 | 显示全部楼层 |阅读模式
AI人工智能 语音助理 人工翻译 教程
Ubuntu Server 14.04 查看软件版本及其安装位置的常用 Shell 命令

01、查看软件详细信息

shell 命令:aptitude show pkgname


查看已 安装或未安装 软件的各种细节信息,包括:安装状态、版本、优先级、从属、功能简介、功能描述、软件首页等。

  1. root:~# aptitude show nginx
  2. Package: nginx                           
  3. State: installed
  4. Automatically installed: no
  5. Version: 1.4.6-1ubuntu3.2
  6. Priority: optional
  7. Section: web
  8. Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
  9. Architecture: all
  10. Uncompressed Size: 95.2 k
  11. Depends: nginx-core (>= 1.4.6-1ubuntu3.2) | nginx-full (>= 1.4.6-1ubuntu3.2) | nginx-light (>= 1.4.6-1ubuntu3.2) | nginx-extras (>=
  12.          1.4.6-1ubuntu3.2) | nginx-naxsi (>= 1.4.6-1ubuntu3.2), nginx-core (< 1.4.6-1ubuntu3.2.1~) | nginx-full (<
  13.          1.4.6-1ubuntu3.2.1~) | nginx-light (< 1.4.6-1ubuntu3.2.1~) | nginx-extras (< 1.4.6-1ubuntu3.2.1~) | nginx-naxsi (<
  14.          1.4.6-1ubuntu3.2.1~)
  15. Provided by: nginx-core, nginx-extras, nginx-full, nginx-light, nginx-naxsi
  16. Description: small, powerful, scalable web/proxy server
  17. Nginx ("engine X") is a high-performance web and reverse proxy server created by Igor Sysoev. It can be used both as a standalone
  18. web server and as a proxy to reduce the load on back-end HTTP or mail servers.

  19. This is a dependency package to install either nginx-core (by default), nginx-full, nginx-light, nginx-extras, or nginx-naxsi.
  20. Homepage: http://nginx.net

  21. root:~#
复制代码

02、查看已安装软件版本信息

shell 命令:dpkg -l pkgname


查看 已安装 软件版本及简短功能描述

  1. root:~# dpkg -l nginx
  2. Desired=Unknown/Install/Remove/Purge/Hold
  3. | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
  4. |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
  5. ||/ Name                        Version            Architecture       Description
  6. +++-===========================-==================-==================-========================================
  7. ii  nginx                       1.4.6-1ubuntu3.2   all                small, powerful, scalable web/proxy server
  8. root:~#
复制代码


03、查看已安装软件目录位置

shell 命令:dpkg -L pkgname


查看 已安装 软件所有文件目录具体位置信息

  1. root:~# dpkg -L nginx
  2. /.
  3. /usr
  4. /usr/share
  5. /usr/share/doc
  6. /usr/share/doc/nginx
  7. /usr/share/doc/nginx/copyright
  8. /usr/share/doc/nginx/changelog.Debian.gz
  9. /usr/share/doc/nginx/README.Debian
  10. /usr/share/doc/nginx/CHANGES.gz
  11. root:~#
复制代码

04、查看软件是否安装

shell 命令:dpkg -l |  grep pkgname


查看软件是否 已安装


  1. root:~# dpkg -l | grep nginx
  2. ii  nginx                                1.4.6-1ubuntu3.2                        all          small, powerful, scalable web/proxy server
  3. ii  nginx-common                         1.4.6-1ubuntu3.2                        all          small, powerful, scalable web/proxy server - common files
  4. ii  nginx-core                           1.4.6-1ubuntu3.2                        amd64        nginx web/proxy server (core version)
  5. root:~#
复制代码

版权声明:
本文为独家原创稿件,版权归 德云社区,未经许可不得转载;否则,将追究其法律责任。

AI人工智能 语音助理 人工翻译 教程
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|Sitemap|小黑屋|德云社区 |网站地图  

GMT+8, 2024-4-26 13:11 , Processed in 0.028998 second(s), 27 queries .

工业和信息化部: 粤ICP备14079481号-2

技术支持 乐数软件     版权所有 © 2014-2021 德云社区    

快速回复 返回顶部 返回列表