2.62. hammer repository


リポジトリーを操作します。

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

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

Subcommands:
 create                        Create a custom repository
 delete                        Destroy a custom repository
 export                        Export content from a repository to the configured directory
 info                          Show a repository
 list                          List of enabled repositories
 remove-content                Remove content from a repository
 synchronize                   Sync a repository
 update                        Update a repository
 upload-content                Upload content into the repository

Options:
 -h, --help                    Print help
Copy to Clipboard Toggle word wrap

2.62.1. hammer repository create

カスタムリポジトリーを作成します。

Usage:
    hammer repository create [OPTIONS]

Options:
 --ansible-collection-requirements ANSIBLE_COLLECTION_REQUIREMENTS Contents of requirement yaml file to sync from URL
 --checksum-type CHECKSUM_TYPE                                     Checksum of the repository, currently 'sha1' & 'sha256'
                                                                   Are supported
 --content-type CONTENT_TYPE                                       Type of repo
                                                                   Possible value(s): 'docker', 'file', 'ostree', 'puppet', 'yum'
 --deb-architectures DEB_ARCHITECTURES                             Comma separated list of architectures to be synched from deb-archive
 --deb-components DEB_COMPONENTS                                   Comma separated list of repo components to be synched from deb-archive
 --deb-releases DEB_RELEASES                                       Comma separated list of releases to be synched from deb-archive
 --docker-tags-whitelist DOCKER_TAGS_WHITELIST                     Comma separated list of tags to sync for Container Image repository
                                                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                                   JSON is acceptable and preferred way for complex parameters
 --docker-upstream-name DOCKER_UPSTREAM_NAME                       Name of the upstream docker repository
 --download-policy DOWNLOAD_POLICY                                 Download policy for yum repos (either 'immediate',
                                                                   'on_demand', or 'background (deprecated)')
                                                                   Possible value(s): 'immediate', 'on_demand', 'background'
 --gpg-key GPG_KEY_NAME                                            Name to search by
 --gpg-key-id GPG_KEY_ID                                           Gpg key numeric identifier
 --http-proxy HTTP_PROXY_NAME                                      Name to search by
 --http-proxy-id HTTP_PROXY_ID                                     Identifier of the HTTP Proxy
 --http-proxy-policy HTTP_PROXY_POLICY                             Policies for HTTP Proxy for content sync
                                                                   Possible value(s): 'global_default_http_proxy', 'none', 'use_selected_http_proxy'
 --ignorable-content IGNORABLE_CONTENT                             List of content units to ignore while syncing a yum repository. Must be
                                                                   Subset of rpm,drpm,srpm,distribution,erratum
                                                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                                   JSON is acceptable and preferred way for complex parameters
 --ignore-global-proxy IGNORE_GLOBAL_PROXY                         If true, will ignore the globally configured Capsule when syncing
                                                                   One of true/false, yes/no, 1/0.
 --label LABEL
 --mirror-on-sync MIRROR_ON_SYNC                                   True if this repository when synced has to be mirrored from the source and
                                                                   Stale rpms removed
                                                                   One of true/false, yes/no, 1/0.
 --name NAME
 --organization ORGANIZATION_NAME                                  Organization name to search by
 --organization-id ORGANIZATION_ID                                 Organization ID
 --organization-label ORGANIZATION_LABEL                           Organization label to search by
 --ostree-upstream-sync-depth OSTREE_UPSTREAM_SYNC_DEPTH           If a custom sync policy is chosen for ostree repositories then a
                                                                   'depth' value must be provided
 --ostree-upstream-sync-policy OSTREE_UPSTREAM_SYNC_POLICY         Policies for syncing upstream ostree repositories
                                                                   Possible value(s): 'latest', 'all', 'custom'
 --product PRODUCT_NAME                                            Product name to search by
 --product-id PRODUCT_ID                                           Product numeric identifier
 --publish-via-http ENABLE                                         Publish Via HTTP
                                                                   One of true/false, yes/no, 1/0.
 --ssl-ca-cert-id SSL_CA_CERT_ID                                   Idenifier of the SSL CA Cert
 --ssl-client-cert-id SSL_CLIENT_CERT_ID                           Identifier of the SSL Client Cert
 --ssl-client-key-id SSL_CLIENT_KEY_ID                             Identifier of the SSL Client Key
 --upstream-password UPSTREAM_PASSWORD                             Password of the upstream repository user used for authentication
 --upstream-username UPSTREAM_USERNAME                             Username of the upstream repository user used for authentication
 --url URL                                                         Repository source url
 --verify-ssl-on-sync VERIFY_SSL_ON_SYNC                           If true, Katello will verify the upstream url's SSL certifcates are
                                                                   Signed by a trusted CA
                                                                   One of true/false, yes/no, 1/0.
 -h, --help                                                        Print help
Copy to Clipboard Toggle word wrap
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

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

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

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

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

会社概要

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

Theme

© 2025 Red Hat