I am new to linux and creating my first shell script. I have several rpm files that needs to be installed when I run my script. I have noticed that my script doesn't install the rpm one by one and does not wait for the previous rpm to finish installing before installing the next one. I tried placing the sleep 5 command in between my rpm -q commands but seems like that does not work as it just installs the next ones regardless. Is there a command or way to check that the rpm has finished installing before moving on?
How to wait for rpm to finish installing and continue on with the script
linux;shell