yum相关问题

简介: yum

1. 开个iptables防火墙后,不能使用yum update

[root@localhost ~]# iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

[root@localhost ~]# iptables -A INPUT -p tcp -i eth0 --sport 53 -j ACCEPT

[root@localhost ~]# iptables -A INPUT -p udp -i eth0 --sport 53 -j ACCEPT

2. 服务器上运行yum update 的时候,提示

rpmforge | 1.1 kB 00:00rpmforge: [############ ] 891/10953Segmentation fault

办法就是 yum clean all;rpm --initdb;rpm --rebuilddb; 后再次运行 yum update 后解决

3. 一般遇到不能解析等问题,排除是源地址文件没问题,大多数就是DNS的问题。

4. yum update 不升级内核方法

[root@localhost ~]# vi /etc/yum.conf

在 [main] 最后添加

exclude=kernel*

或者在 yum 命令的时候,添加如下参数

[root@localhost ~]# yum update --exclude=kernel*
目录
相关文章
|
10月前
|
Web App开发 应用服务中间件 Linux
yum使用总结
yum使用总结
159 0
|
存储 Linux Shell
|
缓存 安全 Linux
|
数据格式 XML
|
程序员 Linux 开发工具
|
Python C语言 Go
yum问题解决
错误信息1:There was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was:No module named urlgrabberPlea...
1387 0