yum conf configuration question
Hi...
I would like to exclude all kernels past 7.0 and all updates and dependencies pertaining to 7.1 and 7.2. I know of the following switches to add to the yum.conf, however, I don't know the proper syntax as it applies to what I am trying accomplish (if it is possible at all):
exclude=kernel* redhat-release*
Above is the exclusion switch, I found in https://access.redhat.com/solutions/10185. How do I specify 7.1 and 7.2? Or is this not required, that the above statement will ignore anything above 7.0?
Thank you.
Responses
Barry,
yum pointing at a large repository of packages (eg. latest) isn't really aware of the 7.x versioning. These versions can really be thought of as snapshots at a point in time (as far as yum is concerned).
To confirm you want all 7.0 packages and updates (except kernel) and nothing from 7.1 or 7.2? My answer would be to use an EUS channel with the kernel package exclusion. https://access.redhat.com/articles/rhel-eus
The exclude you're applying doesn't really stop the packages upgrading, it just stops the 'redhat-release' package which contains the /etc/redhat-release file being updated.. this may 'look' like you aren't moving up through 7.x versions, but your packages will still upgrade.
If you are doing this on more than a handful of hosts I would suggest looking at Satellite which solves the requirement to provide a subset to packages/updates to different servers.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
