"/usr/bin/yum -y -R 120 -d 0 -e 0 update yum"コマンドで "-R 120 -d 0 -e 0"の役割は何ですか?

-R 120 -d 0 -e 0コマンド内のコマンドは何ですか/usr/bin/yum -y -R 120 -d 0 -e 0 update yum

チュートリアルでbashスクリプトでこのコマンドを実行しようとしています。-R 120 -d 0 -e 0yumコマンドの機能を理解したいと思います。

ベストアンサー1

すべてのオプションの意味はマンページに記録されています。

-R, --randomwait=[time in minutes]
    Sets the maximum amount of time yum will wait before performing a command - 
    it randomizes over the time. 

-d, --debuglevel=[number]
    Sets the debugging level to [number] - turns up or down the amount of things 
    that are printed. Practical range: 0 - 10

-e, --errorlevel=[number]
    Sets the error level to [number] Practical range 0 - 10. 0 means print only critical 
    errors about which you must be told. 1 means print all errors, even ones that are 
    not overly important. 1+ means print more errors (if any) -e 0 is good for cron jobs.

/usr/bin/yum -y -R 120 -d 0 -e 0 update yumそのため、パッケージの更新後にランダムに最大2時間待つと、致命的なエラーのみが出力されます。yum

おすすめ記事