Update RedHat with a few packages exception

I have a challenge related to updating a RedHat server.

On this server several packages need NOT to be updated because of application dependencies.

For this reason when I update the server I do something along the line of:
1) Check if any available patch can be seen, if so save result to file: sudo yum check-update | awk '(NR >=4) {print $1;}' > /tmp/update_packages
2) Then I remove the "blacklisted" packages from /tmp/update_packages
3) Run yum update against the obtained file

While this procedure is ok what can happen if one of the update packages has one of the blacklisted ones as dependency is that also the blacklisted one will be updated, right?

Is there any other procedure that you can suggest for this kind of scenario?

Thanks for your time and help.
Who is Participating?
The right and easy way for doing that is exclude the packages at yum.conf.

For futher reading see How to Exclude Specific Packages from Yum Update
ltpittAuthor Commented:
Simply p-e-r-f-e-c-t!

Glad it helped :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.