yum downloadonly

Issue

  • How do I use yum to download a package withoout installing it?

Resolution

Yumdownloader

if downloading a installed package, “yumdownloader” is useful.

1. Install the yum-utils package:

1
# yum install yum-utils

2. Run the command followed by the desired package:

1
# yumdownloader <package>

Note:

  • The package is saved in the current working directly by default; use the –destdir option to specify an alternate location.
  • Be sure to add –resolve if you need to download dependencies.

install package

1
2
3
4
5
#rpm -ivh <package>
-i : install 的意思
-v : 察看更細部的安裝資訊畫面
-h : 以安裝資訊列顯示安裝進度
-Uvh : 後面接的軟體即使沒有安裝過,則系統將予以直接安裝; 若後面接的軟體有安裝過舊版,則系統自動更新至新版;