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.
LVL 1
ltpittAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zvitamConsultantCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ltpittAuthor Commented:
Simply p-e-r-f-e-c-t!

Thanks!
0
zvitamConsultantCommented:
Glad it helped :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.