AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 909661
Accepted
Jon Bentley
Jon Bentley
Asked: 2017-04-28 10:03:54 +0800 CST2017-04-28 10:03:54 +0800 CST 2017-04-28 10:03:54 +0800 CST

我怎样才能获得关于包用途的有用且详细的描述?

  • 772

编辑:为避免疑问,这个问题不是关于如何获取软件包安装的文件列表,如建议的副本中所示。

有没有一种标准的方法来找出一个包的用途,它足够详细,你可以计算出你将从包中得到什么,以及它是否是你想要的?

我将举几个例子来解释我的意思。第一个,postgresql-contrib是导致我问这个问题的原因。我遇到了 PostgreSQL 的各种安装说明,除了告诉您安装这个包之外postgresql,没有以任何有意义的方式解释原因(示例 1,示例 2)。

apt-cache show postgresql-contrib只给了我一个模糊而笼统的描述:

PostgreSQL 的附加功能(支持的版本) 这个元包总是依赖于当前支持的 PostgreSQL 数据库 contrib 包。

PostgreSQL 是一个功能齐全的对象关系数据库管理系统。它支持大部分的 SQL 标准,并且被设计成在很多方面都可以被用户扩展。其中一些特性包括:ACID 事务、外键、视图、序列、子查询、触发器、用户定义的类型和函数、外连接、多版本并发控制。许多编程语言的图形用户界面和绑定也是可用的。

我所追求的是正确描述如果我安装这个包我会得到什么额外的设施。

另一个例子是libreoffice-templates, whereapt-cache show没有提供任何关于你实际得到的有用信息:

Additional set of templates for LibreOffice
 Additional set of templates for:
  - LibreOffice Calc spreadsheets
  - LibreOffice Writer texts
  - LibreOffice Impress presentations

是否有一种标准方法可以获得比apt-cache show给出的更详细的信息?

package-management
  • 2 2 个回答
  • 180 Views

2 个回答

  • Voted
  1. user596162
    2017-04-28T11:17:08+08:002017-04-28T11:17:08+08:00

    让我们关注第一个例子:postgresql-contrib

    这个元包总是依赖于当前支持的 PostgreSQL 数据库 contrib 包。

    这里的关键字是它是一个元包。您会在存储库中找到许多元包实例。就其本身而言,元包实际上并不包含任何内容,因此除了它指向的包之外,没有什么可记录的。如果您apt-cache show postgresql-contrib再次查看由提供的信息,您会注意到那里有一行显示:

    取决于:postgresql-contrib-9.5

    您需要查看的实际文档包含在此包中。以下是 的结果apt-cache show postgresql-contrib-9.5:

    Package: postgresql-contrib-9.5
    Priority: optional
    Section: database
    Installed-Size: 1999
    Maintainer: Ubuntu Developers <[email protected]>
    Original-Maintainer: Debian PostgreSQL Maintainers <[email protected]>
    Architecture: amd64
    Source: postgresql-9.5
    Version: 9.5.6-0ubuntu0.16.04
    Depends: postgresql-9.5 (= 9.5.6-0ubuntu0.16.04), libc6 (>= 2.15), libpq5 (>= 9.2~beta3), libselinux1 (>= 2.1.12), libssl1.0.0 (>= 1.0.0), libuuid1 (>= 2.16), libxml2 (>= 2.7.4), libxslt1.1 (>= 1.1.25), zlib1g (>= 1:1.1.4)
    Suggests: libdbd-pg-perl
    Filename: pool/main/p/postgresql-9.5/postgresql-contrib-9.5_9.5.6-0ubuntu0.16.04_amd64.deb
    Size: 446848
    MD5sum: a05acc14f59c7d0f98bfc854a90447d7
    SHA1: 398b18b8660537ac114eceb1212ff831d911c856
    SHA256: 6ef4578df2026a72e9c85715ea112f4077209490beb18e3e715621319d5861f0
    Description-en: additional facilities for PostgreSQL
     The PostgreSQL contrib package provides several additional features
     for the PostgreSQL database. This version is built to work with the
     server package postgresql-9.5.  contrib often serves as a testbed for
     features before they are adopted into PostgreSQL proper:
     .
      adminpack      - File and log manipulation routines, used by pgAdmin
      btree_gist     - B-Tree indexing using GiST (Generalised Search Tree)
      chkpass        - An auto-encrypted password datatype
      cube           - Multidimensional-cube datatype (GiST indexing example)
      dblink         - Functions to return results from a remote database
      earthdistance  - Operator for computing the distance (in miles) between
                       two points on the earth's surface
      fuzzystrmatch  - Levenshtein, metaphone, and soundex fuzzy string matching
      hstore         - Store (key, value) pairs
      intagg         - Integer aggregator/enumerator
      _int           - Index support for arrays of int4, using GiST (benchmark
                       needs the libdbd-pg-perl package)
      isn            - type extensions for ISBN, ISSN, ISMN, EAN13 product numbers
      lo             - Large Object maintenance
      ltree          - Tree-like data structures
      oid2name       - Maps OIDs to table names
      pageinspect    - Inspection of database pages
      passwordcheck  - Simple password strength checker
      pg_buffercache - Real time queries on the shared buffer cache
      pg_freespacemap- Displays the contents of the free space map (FSM)
      pg_trgm        - Determine the similarity of text based on trigram matching
      pg_standby     - Create a warm stand-by server
      pgbench        - TPC-B like benchmark
      pgcrypto       - Cryptographic functions
      pgrowlocks     - A function to return row locking information
      pgstattuple    - Returns the percentage of dead tuples in a table; this
                       indicates whether a vacuum is required.
      postgresql_fdw - foreign data wrapper for PostgreSQL
      seg            - Confidence-interval datatype (GiST indexing example)
      sepgsql        - mandatory access control (MAC) based on SELinux
      spi            - PostgreSQL Server Programming Interface; 4 examples of
                       its use:
                       autoinc    - A function for implementing AUTOINCREMENT/
                                    IDENTITY
                       insert_username - function for inserting user names
                       moddatetime - Update modification timestamps
                       refint     - Functions for implementing referential
                                    integrity (foreign keys).  Note that this is
                                    now superseded by built-in referential
                                    integrity.
                       timetravel - Re-implements in user code the time travel
                                    feature that was removed in 6.3.
      tablefunc      - examples of functions returning tables
      uuid-ossp      - UUID generation functions
      vacuumlo       - Remove orphaned large objects
     .
     PostgreSQL is an object-relational SQL database management system.
    Description-md5: 633a4e0645b2b02e72f77a260d0f4030
    Homepage: http://www.postgresql.org/
    Bugs: https://bugs.launchpad.net/ubuntu/+filebug
    Origin: Ubuntu
    Supported: 5y
    Task: postgresql-server
    

    您会注意到实际软件包的文档要详细得多。

    • 2
  2. Best Answer
    Anwar
    2017-04-28T10:58:27+08:002017-04-28T10:58:27+08:00

    从一般用户的角度来看,他们只是知道一个包名称,他/她的主要信息来源是检查apt-cache show命令。我总是这样做。这是发现包意图的权威和官方方式。就像man命令了解命令一样。

    然而,这不是唯一的方法。当然还有很多其他的方法可以了解一个包。但这些不是要遵循的食谱风格指南。我通常做的是检查包描述的主页。我使用突触包管理,每个包描述都有一个链接。这应该会让您进入软件包的主页或(debian 软件包)维护者的页面。

    我还使用https://packages.ubuntu.com查看内容并找到包的其他相关链接。您可以从中转到启动板页面,然后您可以找到上游/原始开发人员的链接。如果仍然不确定,您可以联系邮件列表、提出问题甚至是开发人员。您可以检查文件列表并查看该包包含的内容,然后使用一些搜索来查找它们的功能。

    例如,当我postgresql-contrib在 packages.ubuntu.com 中使用包时,我发现了这个文件列表。现在,这只是一个护目镜搜索来检查这些命令的作用。例如,在 google 中搜索会pg_archivecleanup产生此结果。您应该从那里对包的用途有一个很好的一般认识。了解该命令的另一个非常好的方法是 using man,但如果尚未安装该软件包,那么您可能需要改用http://manpages.ubuntu.com/。

    可能还有其他方法可以找到包的用途。Linux 世界中的大多数人都遵循这条相当的道路。话虽如此,如果您要问是否有超越or的明确方法,那么我会说No。debian 软件包的描述应该是软件包用途的官方和第一个来源。apt-cache showapt show

    • 1

相关问题

  • 如何从命令行仅安装安全更新?关于如何管理更新的一些提示

  • 如何从命令行判断机器是否需要重新启动?

  • 有没有办法重置所有包/源并从头开始?

  • 如何回滚到 PHP 5.2?

  • 包管理器之间有什么区别?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve