exclude kernel or other packages from getting updated
2016-05-05 23:32
441 查看
https://access.redhat.com/solutions/10185
To skip installing or updating kernel or other packages while using the
Temporary solution via Command line:
Raw
For example, to exclude all kernel related packages:
Raw
To make permanent changes, edit the
Raw
NOTE: If there are multiple package to be excluded then separate them using a single space or comma. Also, do not add multiple
To exclude 32 bit packages edit
Raw
Resolution
Theup2datecommand in Red Hat Enterprise Linux 4 excludes kernel updates by default. The
yumin Red Hat Enterprise Linux 5 includes kernel updates by default.
To skip installing or updating kernel or other packages while using the
yumupdate utility in Red Hat Enterprise Linux 5 and 6, use following options:
Temporary solution via Command line:
Raw
# yum update --exclude=PACKAGENAME
For example, to exclude all kernel related packages:
Raw
# yum update --exclude=kernel*
To make permanent changes, edit the
/etc/yum.conffile and following entries to it:
Raw
[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
yumonly considers the last
excludeentry.
To exclude 32 bit packages edit
/etc/yum.conffile.
Raw
exclude=*.i?86 *.i686
相关文章推荐
- ssh原理[转]
- poj 1321 棋盘问题 - DFS 2251 Dungeon Master - BFS
- Java序列化技术
- 59. Divide Two Integers
- 避免头文件重复包含
- linux命令(20):rm命令
- 软件框架
- 基于icamera usb2.0的视频采集系统之mt9m001c12stc测评
- css overfloat:auto清除float 自动撑开
- ViewPager+Fragment使用中的Fragment生命周期
- 汇编语言org 07c00h的作用
- VIM 使用心得
- .net WebApi中使用swagger
- 重拾linux
- JavaWeb学习笔记——javabean与表单
- JAVA I/O(1)
- Diff
- UVA 1401 Remember the Word
- Java自旋锁
- PDO