BLACK FRIDAY DEALS

Knowledge Base

Allows you to search a variety of questions and answers

Search

Search results

Centos/RedHat

To exclude updating certain packages from being updated by the 'yum update' command, you need to do the following:

  1. Open your /etc/yum.conf file
  2. At the end of the [main] section, append 'exclude=php* kernel*' without quotes. You can add more packages that you do not want to be upgraded.
  3. Save yum.conf file and close


After the modification, your [main] section will look something like this:
 

Code:

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
exclude=php* kernel*

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

See What Our Customers Say

Leave review
J

James

FL, United States

I have been using AYK for about 2 years now and they are always on top of any issues I have. They ha...

Read full review
U

Umka@Studio-Net

The most caring provider AYKSolutions is a reliable hosting and decicated server probider with good...

Read full review
R

RAF Website D

Outstanding Customer Service Everytime I have emailed AYKsolutions I have gotten an outstanding resp...

Read full review
B

Bruce L

MD, United States

We have been customers for several years. Just wanted to give a thumbs-up for their excellent respon...

Read full review
ARIN Cisco Supermicro cPanel Intel Microsoft