“-R 120 -d 0 -e 0”在命令“/usr/bin/yum -y -R 120 -d 0 -e 0 update yum”命令中的作用是什么?

“-R 120 -d 0 -e 0”在命令“/usr/bin/yum -y -R 120 -d 0 -e 0 update yum”命令中的作用是什么?

-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

所有选项的含义都写在manpage中:

-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.

因此,在随机等待长达 2 小时后/usr/bin/yum -y -R 120 -d 0 -e 0 update yum更新包,仅打印严重错误。yum

相关内容