rhn-channel コマンドとは何ですか? どのように使用しますか?
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Network Classic
- Red Hat Network Satellite
Issue
rhn-channelコマンドとは何ですか? どのように使用しますか?
Resolution
rhn-channelコマンドを使用するには、システム登録されている必要があります。rhn-channelはソフトウェアのサブチャンネルの登録をコマンドラインから行うためのコマンドです。rhn-channelコマンドはrhn-setupパッケージで提供されます。
コマンドオプション:
-c CHANNEL, --channel=CHANNEL, name of channel you want to (un)subscribe
-a, --add subscribe to channel
-r, --remove unsubscribe from channel
-l, --list list channels
-L, --available-channels, list all available child channels
-v, --verbose verbose output
-u USER, --user=USER, your user name
-p PASSWORD, --password=PASSWORD, your password
実行例:
ソフトウェアチャンネルの登録
# rhn-channel --add --channel=<channel-name> --user=<rhn-username> --password=<rhn-password>
# rhn-channel -a --channel=<channel-name> -u <rhn-username> -p <rhn-password>
ソフトウェアチャンネルの登録解除
# rhn-channel --remove --channel=<channel-name> --user=<rhn-username> --password=<rhn-password>
# rhn-channel -r --channel=<channel-name> -u <rhn-username> -p <rhn-password>
利用可能なソフトウェアチャンネルをリスト出力
# rhn-channel -L -u <rhn-username> -p <rhn-password>
登録済みチャンネルのリスト出力
# rhn-channel -l -u <rhn-username> -p <rhn-password>
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
