3
votes
1answer
28 views

How can I tell whether a package is installed via yum in a bash script?

I am trying to write a script that installs packages, but if it fails at any point later in the script rolls back whatever it installed. Of course if the user has already previously installed a ...
0
votes
1answer
167 views

How do I write a script to keep retrying Yum Update Program?

My job let me always release a new version of the program to a satellite server, then in the running server, I use yum update program to update the program. However, due to unknown reason, in most of ...
0
votes
1answer
185 views

How to automatically install packages?

I want to install packages automatically by running a script I can write yum install php, but I want it to install another package once installation of the php package is completed. Is there any ...