Disable Certain Package Updates using YUM in RHEL / CentOS / Fedora

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

7 Responses

  1. Jameslee says:


    I see few of the packages getting update automatically weekly twice..(Don’t know from where it runs and who ran) in one of my server (centos 7). I have daily cron job running with rpm --last command which helps me to trace the new packages installation. I want to stop this automatic updation of packages.

    I googled and few suggested to disable yum-cron. in my case yum-cron is not installed. Please help me.

    • Ravi Saive says:


      Simply add those packages to /etc/yum.conf like shown.

      This above line will prevent installing updates to these packages.

      • Jameslee says:

        Thanks @Ravi for your reply.

        I want to disable the auto update for all packages. In that case what will be the solution. Please help.

        • Ravi Saive says:


          I never tried this solution, but I think you could add this line exclude=* in /etc/yum.conf so that the package manager excludes every package from installs and updates.

  2. Wayne says:

    Actually you would want to prevent just updates in yum.conf with

    Using excludes will also prevent installation.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.