Linux yum command skip updating packages
Q. How can I skip any packages updating while using yum update command in CentOS / RedHat / RHEL / Fedora Linux server system?
A.yum command under RedHat / Centos has the -x or --exclude option. It will exclude a specific package by name or shell glob (* or ?) from updates on all repositories.
yum exclude package syntax
Use the following syntax ( you must login as the root user to use following commands):
yum -x {package-name} update
yum --exclude={package-name} update
For example, exclude httpd or kernel package from update, enter:
# yum -x httpd* update
# yum --exclude=kernel* update
For further information read yum command man page:
$ man yum
Ubuntu / Kubuntu Ubuntu Ver. 8.10 and Linux Training Library 2DVD+CD
E-mail
Print
Can't find an answer to your question? Contact us
Related Other Helpful FAQs:
- yum problems: Skip Packages With Broken Dependencies When Upgrading System
- Force yum update Command To Exclude Certain Packages
- Red Hat Enterprise Linux / CentOS Linux Enable EPEL (Extra Packages for Enterprise Linux) Repository
- Patch and Update Redhat Enterprise Linux / CentOS 5 server
- Linux List All Outdated Packages Which Could be Updated and Applied to System
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: fedora linux, glob, kernel package, kernel update, repositories, yum --exclude option, yum command, yum linux




Recent Comments
Today ~ 17 Comments
Today ~ 5 Comments
Today ~ 11 Comments
Yesterday ~ 24 Comments
Yesterday ~ 6 Comments