在使用yum命令安裝rpm時,有時會出現(xiàn)如下錯誤:
Install 0 Package(s)
Update 0 Package(s)
Remove 9 Package(s)
Is this ok [y/N]: n
Exiting on user Command
Complete!
在網(wǎng)上查了很多資料都沒有明確的說明,后來在如下的鏈接中找到了答案:
http://www.xlyVPS.com/index.php?/archives/35-Package-Management-Week-Using-yum.html
其中有說明到“Note that adding the option -y to the yum command line would skip the confirmation step and proceed directly to installing or removing the requested package(s).”
所以,我們在使用yum安裝rpm包時,如果出現(xiàn)“Exiting on user Command”的錯誤,請在yum命令后加上“-y”選項。
命令如下:
#yum localinstall-y libX11-devel-1.3.4-3.fc14.i686.rpm