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
C

Craig D

NC, United States

I have had my hosting with AYK since 2006, and it has by far been the best experience I have ever ha...

Read full review
J

Jahanzeb

Punjab, Pakistan

Simply the best. have been using them from last 2 years. Remember Dedicated servers are hardware so...

Read full review
J

James Oliver Cyr, M

AZ, United States

AYK Solutions has been the server for my website for 8 or 9 years, and in all that time I have gotte...

Read full review
A

AnyMood.co

TX, United States

I've been a client of AYK Solutions for about six months now. They have provided the best overall ex...

Read full review