yum 安装rpm包是出现Exiting on user Command错误

yum 安装rpm包是出现Exiting on user Command错误       

        分类:            Linux 202人阅读 评论(0) 收藏 举报

在使用yum命令安装rpm时,有时会出现如下错误:

Install 0 Package(s)
Update 0 Package(s)
Remove 9 Package(s)

Is this ok [y/N]: n

Exiting on user Command
Complete!

#

在网上查了很多资料都没有明确的说明,后来在如下的链接中找到了答案:

http://dailypackage.fedorabook.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包时,如果出现“Exiting on user Command”的错误,请在yum命令后加上“-y”选项。

命令如下:

#yum localinstall-y libX11-devel-1.3.4-3.fc14.i686.rpm

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值