LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   Freeze package version (http://www.linuxquestions.org/questions/red-hat-31/freeze-package-version-4175447568/)

tadeas 01-28-2013 01:21 PM

Freeze package version
 
How do I freeze a specific (current) package version? In Debian there is /etc/apt/preferences, in SUSE I can do that in Yast, how do I do this in Red Hat/CentOS 6.3?

To be clear: I need a new kernel (-ml from Elrepo), but I don't want to upgrade it every few days during regular system update. I want just just to stick to 3.7.3 or something..

knudfl 01-28-2013 01:46 PM

Add a line to /etc/yum.conf :

exclude=kernel*

.. Be aware that the wildcard ( * ) is important : kernel*

tadeas 01-28-2013 01:53 PM

Ah... yum.conf... Why couldn't I Google it? :)
Thanks very much!


All times are GMT -5. The time now is 09:26 PM.