top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Is it possible to exclude all packages except one or two in a repo file?

+1 vote

Is it possible to exclude all packages except one or two in a repo file? The man page for yum.conf didn't give me any hints. I tried unsuccessfully adding this line:


Is there a way to set up this repo so that when I run "yum upgrade" it will only check the firefox and xulrunner packages from the remi repo?

posted Sep 3, 2013 by Amit Parthsarthi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote


includepkgs=firefox xulrunner

to the repo definition. This will _only_ allow those specific packages from remi and exclude everything else.

answer Sep 3, 2013 by Jagan Mishra
Thanks. That's exactly what I was looking for.
+1 vote

You can set 'enabled=0" for the repo, then after a "yum update" from the base repos, do a "yum --enablerepo=xxx install package..." (or update) for the specific packages you want from there.. This isn't quite as full-auto as specifying the packages in the repo file,but it will bring along dependencies that you might have to add piecemeal. Just be sure you look at the list of packages yum is proposing to change before confirming it.

answer Sep 3, 2013 by Mandeep Sehgal
Similar Questions
+2 votes

If I add priority=1 to [updates] in CentOS-Base.repo
when I run "sudo yum update" I get the warning 66 packages excluded due to repository priority protections

This does not seem to have any adverse effect, but what exactly does it mean?

+2 votes

I have a small problem with some packages : I was doing an update over ssh and my connection was interrupted .. now i have a lots of duplicates and if i try to remove them, yum tries to uninstall all system (447 packages 1.4 gb)

Any idea how can I clean this mess? It would be pretty bad if the machine needs to be re-installed only because the connection went bad during the process...

+2 votes

I am having problems with a CentOS 6.4 box that I was in the process of doing a yum update to 6.5. Unfortunately the system hung during the update and I was forced to reboot it and it is now a bit of a mess.

Can someone point me in the direction of any documentation that would assist in the recovering from this.

+1 vote

During yum upgrade a couple days ago, I saw this:

Cleanup : kernel-3.10.0-229.20.1.el7.x86_64  35/64
warning: file /lib/modules/3.10.0-229.20.1.el7.x86_64/modules.softdep: 
remove failed: No such file or directory
warning: file /lib/modules/3.10.0-229.20.1.el7.x86_64/modules.devname: 
remove failed: No such file or directory

Should I be concerned about this? What could have caused it?

+1 vote

Is there an 'after the fact' way to find what yum groups are installed, including ones that were added with 'yum groupinstall' instead of the initial anaconda install?