exclude kernel or other packages from getting updated
https://access.redhat.com/solutions/10185
Resolution
-
The
up2date
command in Red Hat Enterprise Linux 4 excludes kernel updates by default. Theyum
in Red Hat Enterprise Linux 5 includes kernel updates by default. -
To skip installing or updating kernel or other packages while using the
yum
update utility in Red Hat Enterprise Linux 5 and 6, use following options: -
Temporary solution via Command line:
# yum update --exclude=PACKAGENAME
For example, to exclude all kernel related packages:
# yum update --exclude=kernel*
- To make permanent changes, edit the
/etc/yum.conf
file and following entries to it:
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exclude=kernel* redhat-release* <====
NOTE: If there are multiple package to be excluded then separate them using a single space or comma. Also, do not add multiple
exclude=
lines in the configuration file because yum
only considers the last
exclude
entry.
To exclude 32 bit packages edit /etc/yum.conf
file.
exclude=*.i?86 *.i686
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通