设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 数据 手机 公司
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

如何在Linux上检查一个软件包的详细信息(3)

发布时间:2018-09-19 10:12 所属栏目:117 来源:Prakash Subramanian
导读:(LCTT 译注: 用 zypper info 查询 nano 包的信息) $ zypper info nano Loading repository data... Reading installed packages... Information for package nano: ----------------------------- Repository :

(LCTT 译注: 用 zypper info 查询 nano 包的信息)

  1. $ zypper info nano
  2.  
  3. Loading repository data...
  4. Reading installed packages...
  5.  
  6.  
  7. Information for package nano:
  8. -----------------------------
  9. Repository : Main Repository (OSS)
  10. Name : nano
  11. Version : 2.4.2-5.3
  12. Arch : x86_64
  13. Vendor : openSUSE
  14. Installed Size : 1017.8 KiB
  15. Installed : No
  16. Status : not installed
  17. Source package : nano-2.4.2-5.3.src
  18. Summary : Pico editor clone with enhancements
  19. Description :
  20. GNU nano is a small and friendly text editor. It aims to emulate
  21. the Pico text editor while also offering a few enhancements.

Pacman 命令:在 ArchLinux 及 Manjaro 系统上查看包信息

Pacman 意即包管理器package manager实用工具。pacman 是一个用于安装、构建、删除、管理 Arch Linux 上包的命令行工具。它后端使用 libalpm(Arch Linux package Manager(ALPM)库)来完成所有功能。

(LCTT 译注: 用 pacman -Qi 来查询 bash 包信息)

  1. $ pacman -Qi bash
  2. Name : bash
  3. Version : 4.4.012-2
  4. Description : The GNU Bourne Again shell
  5. Architecture : x86_64
  6. URL : http://www.gnu.org/software/bash/bash.html
  7. Licenses : GPL
  8. Groups : base
  9. Provides : sh
  10. Depends On : readline>=7.0 glibc ncurses
  11. Optional Deps : bash-completion: for tab completion
  12. Required By : autoconf automake bison bzip2 ca-certificates-utils db
  13. dhcpcd diffutils e2fsprogs fakeroot figlet findutils
  14. flex freetype2 gawk gdbm gettext gmp grub gzip icu
  15. iptables keyutils libgpg-error libksba libpcap libpng
  16. libtool lvm2 m4 man-db mkinitcpio nano neofetch nspr
  17. nss openresolv os-prober pacman pcre pcre2 shadow
  18. systemd texinfo vte-common which xdg-user-dirs xdg-utils
  19. xfsprogs xorg-mkfontdir xorg-xpr xz
  20. Optional For : None
  21. Conflicts With : None
  22. Replaces : None
  23. Installed Size : 7.13 MiB
  24. Packager : Jan Alexander Steffens (heftig)
  25. Build Date : Tue 14 Feb 2017 01:16:51 PM UTC
  26. Install Date : Thu 24 Aug 2017 06:08:12 AM UTC
  27. Install Reason : Explicitly installed
  28. Install Script : No
  29. Validated By : Signature

apt-cache 命令:在 Debian/Ubuntu/Mint 系统上查看包信息

apt-cache 命令能显示 apt 内部数据库中的大量信息。这些信息是从 sources.list 中的不同的软件源中搜集而来,因此从某种意义上这些信息也可以被认为是某种缓存。这些信息搜集工作是在运行 apt update 命令时执行的。

(LCTT 译注:用管理员权限查询 apache2 包的信息)

  1. $ sudo apt-cache show apache2
  2. Package: apache2
  3. Priority: optional
  4. Section: web
  5. Installed-Size: 473
  6. Maintainer: Ubuntu Developers
  7. Original-Maintainer: Debian Apache Maintainers
  8. Architecture: amd64
  9. Version: 2.4.12-2ubuntu2
  10. Replaces: apache2.2-common
  11. Provides: httpd, httpd-cgi
  12. Depends: lsb-base, procps, perl, mime-support, apache2-bin (= 2.4.12-2ubuntu2), apache2-utils (>= 2.4), apache2-data (= 2.4.12-2ubuntu2)
  13. Pre-Depends: dpkg (>= 1.17.14)
  14. Recommends: ssl-cert
  15. Suggests: www-browser, apache2-doc, apache2-suexec-pristine | apache2-suexec-custom, ufw
  16. Conflicts: apache2.2-common (<< 2.3~)
  17. Filename: pool/main/a/apache2/apache2_2.4.12-2ubuntu2_amd64.deb
  18. Size: 91348
  19. MD5sum: ab0ee0b0d1c6b3d19bd87aa2a9537125
  20. SHA1: 350c9a1a954906088ed032aebb77de3d5bb24004
  21. SHA256: 03f515f7ebc3b67b050b06e82ebca34b5e83e34a528868498fce020bf1dbbe34
  22. Description-en: Apache HTTP Server
  23. The Apache HTTP Server Project's goal is to build a secure, efficient and
  24. extensible HTTP server as standards-compliant open source software. The
  25. result has long been the number one web server on the Internet.
  26. .
  27. Installing this package results in a full installation, including the
  28. configuration files, init scripts and support scripts.
  29. Description-md5: d02426bc360345e5acd45367716dc35c
  30. Homepage: http://httpd.apache.org/
  31. Bugs: https://bugs.launchpad.net/ubuntu/+filebug
  32. Origin: Ubuntu
  33. Supported: 9m
  34. Task: lamp-server, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master

APT 命令:查看 Debian/Ubuntu/Mint 系统上的包信息

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读