Web Hosting Talk







View Full Version : Building your own repository


moonsoft
04-28-2009, 02:50 AM
Maybe this is not the correct verbage, but what I want to do is tell CENTOS / REDHAT to only update x packages from x repository, I have some custom RPM'S that keep getting replaced by updates.

For instance I have a custom BIND RPM that must NOT be replaced or if it is, it must be replaced from MY own repository where I would upload the updated modded RPM. Anyone have any resources for this or know the best way to make this happen?

diligent
04-28-2009, 02:52 AM
How about just disable BIND from updating via yum, and do it manually when needed?

moonsoft
04-28-2009, 03:17 AM
well i tried that but for some reason it was still replaced

Adam-AEC
04-28-2009, 08:27 AM
Easiest way is to just exclude the bind packages in yum.conf.
Probably along the lines of: exclude=bind*

I suppose you could put this in a .repo too, if you have a particular repo that's causing you problems

If you want to run your own repo (which isn't that hard, really) you could try this link:

http://blog.kagesenshi.org/2007/01/howto-creating-your-own-yum-rpm.html

moonsoft
04-28-2009, 08:32 AM
Awesome! thats exactly what I was looking for
Thanks for the help

sasha
04-28-2009, 09:32 AM
Once when you setup your repo, check this out too:

http://wiki.centos.org/PackageManagement/Yum/Priorities

You should be able to give your own repo high priority so your bind never gets updated from package in other repos.