How can I disable automatic package update in RPM package manager for a single application in CentOS 7?


To disable single application from being updated automatically, while leaving other rpms enabled for automatic updates, add that rpm name to ignore list in /etc/yum.conf.

You need to add the line exclude= and name of the rpm to ignore for updates.

For instance if you don't want Apache(httpd) package to get updated you would add httpd* to that line:


If you are running yum update manually you need to use --exclude option:

yum update --exclude=httpd*
  • Sorry. Question updated. – SoftwareTheory Dec 14 '18 at 15:30
  • I did this change in yum.conf. but isn't it for yum package manager? Is this same config file also used for RPM? – SoftwareTheory Dec 14 '18 at 17:44
  • yes, yum is used for rpm management, rpm command doesn't install dependencies for rpm, yum takes care to install all dependencies when rpm is being installed or updated. – rAlen Dec 15 '18 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.