検索

2.53. hammer package

download PDF

パッケージを操作します。

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

2.53.1. hammer package info

パッケージを表示します。

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

Options:
 --fields FIELDS                         Show specified fields or predefined field sets only. (See below)
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --id ID                                 A package identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           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       |
  ----------------------|-----|---------|-----

2.53.2. hammer package list

パッケージの一覧を表示します。

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

Options:
 --available-for AVAILABLE_FOR                               Return packages that can be added to the specified object.  Only the value 'content_view_version' is supported.
 --content-view CONTENT_VIEW_NAME                            Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME              Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID             Content View Filter identifier
 --content-view-id CONTENT_VIEW_ID                           Content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION         Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID           Content View Version identifier
 --environment ENVIRONMENT_NAME                              Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                             (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --fields FIELDS                                             Show specified fields or predefined field sets only. (See below)
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --full-result FULL_RESULT                                   Whether or not to show all results
                                                             One of true/false, yes/no, 1/0.
 --host HOST_NAME                                            Host name
 --host-id HOST_ID                                           Host id to list applicable packages for
 --ids IDS                                                   Package identifiers to filter content by
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME          Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --order ORDER                                               Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                            Organization name to search by
 --organization-id ORGANIZATION_ID                           Organization identifier
 --organization-label ORGANIZATION_LABEL                     Organization label to search by
 --organization-title ORGANIZATION_TITLE                     Organization title
 --packages-restrict-applicable PACKAGES_RESTRICT_APPLICABLE Return packages that are applicable to one or more hosts (defaults to true if host_id is specified)
                                                             One of true/false, yes/no, 1/0.
 --packages-restrict-latest PACKAGES_RESTRICT_LATEST         Return only the latest version of each package
                                                             One of true/false, yes/no, 1/0.
 --packages-restrict-upgradable PACKAGES_RESTRICT_UPGRADABLE Return packages that are upgradable on one or more hosts
                                                             One of true/false, yes/no, 1/0.
 --page PAGE                                                 Page number, starting at 1
 --per-page PER_PAGE                                         Number of results per page to return
 --product PRODUCT_NAME                                      Product name to search by
 --product-id PRODUCT_ID                                     Product numeric identifier
 --repository REPOSITORY_NAME                                Repository name to search by
 --repository-id REPOSITORY_ID                               Repository identifier
 --search SEARCH                                             Search string
 -h, --help                                                  Print help

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

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.