redhat + red-hatサイトからrpmをダウンロードする方法

redhat + red-hatサイトからrpmをダウンロードする方法

Red-Hat公式サイトから次のrpmをダウンロードする必要があります。

    kernel-debuginfo-3.10.0-327.10.1.el7.x86_64

次のrpmコマンドを使用してダウンロードできますか?

rpm --import http://....

それでは、どのように(構文とパスは何ですか)?

他の方法:

  root@test:~ # yum install --downloadonly --downloaddir=/tmp kernel-debuginfo
  Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-manager
  This system is receiving updates from RHN Classic or Red Hat Satellite.
   No package kernel-debuginfo available.
   Error: Nothing to do

 root@test:~ # yumdownloader  kernel-debuginfo
 Loaded plugins: product-id, rhnplugin
 This system is receiving updates from RHN Classic or Red Hat Satellite.
 No Match for argument kernel-debuginfo
 Nothing to download

ベストアンサー1

Redhat サブスクリプションがある場合は、回答が説明されます。このページから

オプション1.準備(ワンタイムイベント):

(RHEL5)
# yum install yum-downloadonly

(RHEL6+)
# yum install yum-plugin-downloadonly

オプション1.実際の使用量:

# yum install --downloadonly --downloaddir=<directory> <package>

オプション2.準備:

# yum install yum-utils

オプション2.実際の使用量:

# yumdownloader <package>

サブスクリプションがない場合は、Centosを代替として検討してください。

おすすめ記事