Metauser

How deep does the rabbit hole go?

If you can't have faith in what is held up to you for faith, you must find things to believe in yourself, for a life without faith in something is too narrow a space to live. -- George E. Woodberry

Home Photos

April 5, 2009

Yum and locking a package from being updated

mitch @ 8:44 pm on April 5, 2009

I have a special need for my mail server. Whatever the reason is that you can’t get postfix compiled with mysql support in even the one off repo’s for CentOS is I’m not sure. However, I still have a need for postfix with mysql support. Anyway, I don’t feel like maintaining my own version for CentOS at the moment for lack of time… and with the latest release of CentOS5.3 or Update 3 for RHEL 5, I didn’t want to upgrade, and have it break my postfix until I removed the newly installed version with the older release with mysql and postgres support. In the effort of avoiding that, I found a very nice yum module called “yum-versionlock”. So I installed it with:

yum install yum-versionlock

And Then I was able to add my postfix release I found from doing

rpm -qa | grep postfix

Then I added the output of the above line to: /etc/yum/pluginconf.d/versionlock.list

After that, I was able to run yum upgrade without issue. I believe I’m liking yum more every day over apt…. just wish debian could do some updates to apt and make it a bit more user friendly… As I much prefer more things about debian systems more than I do Redhat ones anymore. Mostly the flexibility that’s put into the packages and the modularity of the default configs.

Debian· Fedora· RedHatNo Comments

Leave a Reply