3.51. hammer 软件包


操作软件包

Usage:
    hammer package [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 info, show                    Show a package
 list, index                   List packages

Options:
 -h, --help                    Print help

3.51.1. hammer 软件包信息

显示软件包

Usage:
    hammer package <info|show> [OPTIONS]

Options:
 --fields LIST                 Show specified fields or predefined field sets only. (See below)
 --id VALUE                    A package identifier
 --name VALUE                  Name to search by
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization identifier
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --repository VALUE            Repository name to search by
 --repository-id NUMBER        Repository identifier
 -h, --help                    Print help

Predefined field sets:
  ----------------------|-----|---------|-----
  FIELDS                | ALL | DEFAULT | THIN
  ----------------------|-----|---------|-----
  Id                    | x   | x       | x
  Pulp id               | x   | x       |
  Uuid                  | x   | x       |
  Name                  | x   | x       | x
  Version               | x   | x       |
  Architecture          | x   | x       |
  Epoch                 | x   | x       |
  Release               | x   | x       |
  Author                | x   | x       |
  Filename              | x   | x       |
  Source rpm            | x   | x       |
  Nvrea                 | x   | x       |
  Build host            | x   | x       |
  Available host count  | x   | x       |
  Applicable host count | x   | x       |
  Children              | x   | x       |
  Vendor                | x   | x       |
  License               | x   | x       |
  Relative path         | x   | x       |
  Description           | x   | x       |
  Summary               | x   | x       |
  Url                   | x   | x       |
  Build time            | x   | x       |
  Group                 | x   | x       |
  Requires              | x   | x       |
  Provides              | x   | x       |
  Files                 | x   | x       |
  Size                  | x   | x       |
  Modular               | x   | x       |
  ----------------------|-----|---------|-----

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

3.51.2. hammer 软件包列表

列出软件包

Usage:
    hammer package <list|index> [OPTIONS]

Options:
 --available-for VALUE                  Return packages that can be added to the specified object.  Only the value
                                        'content_view_version' is supported.
 --content-view VALUE                   Content view name to search by
 --content-view-filter VALUE            Name to search by
 --content-view-filter-id NUMBER        Content View Filter identifier
 --content-view-id NUMBER               Content view numeric identifier
 --content-view-version VALUE           Content view version number
 --content-view-version-id NUMBER       Content View Version identifier
 --environment VALUE                    Lifecycle environment name to search by (--environment is deprecated: Use
                                        --lifecycle-environment instead)
 --environment-id NUMBER                (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --fields LIST                          Show specified fields or predefined field sets only. (See below)
 --full-result BOOLEAN                  Whether or not to show all results
 --host VALUE                           Host name
 --host-id NUMBER                       Host id to list applicable packages for
 --ids LIST                             Package identifiers to filter content by
 --lifecycle-environment VALUE          Lifecycle environment name to search by
 --lifecycle-environment-id NUMBER      Environment identifier
 --order VALUE                          Sort field and order, eg. 'id DESC'
 --organization VALUE                   Organization name to search by
 --organization-id NUMBER               Organization identifier
 --organization-label VALUE             Organization label to search by
 --organization-title VALUE             Organization title
 --packages-restrict-applicable BOOLEAN Return packages that are applicable to one or more hosts (defaults to true if
                                        host_id is specified)
 --packages-restrict-latest BOOLEAN     Return only the latest version of each package
 --packages-restrict-upgradable BOOLEAN Return packages that are upgradable on one or more hosts
 --page NUMBER                          Page number, starting at 1
 --per-page NUMBER                      Number of results per page to return
 --product VALUE                        Product name to search by
 --product-id NUMBER                    Product numeric identifier
 --repository VALUE                     Repository name to search by
 --repository-id NUMBER                 Repository identifier
 --search VALUE                         Search string
 -h, --help                             Print help

Predefined field sets:
  -----------|-----|--------
  FIELDS     | ALL | DEFAULT
  -----------|-----|--------
  Id         | x   | x
  Filename   | x   | x
  Source rpm | x   | x
  -----------|-----|--------

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.