|
|
Question : RPM return codes
|
|
Hello All,
I am very new to the Linux/RPM/ & scripting world, and I am writing a install script to launch an rpm. After launching the rpm I would like to check the return code of the rpm call. Is there a way to do this. I've been looking on the web and I can not even find mention of RPM and return codes. I basically only need to know if the operation was successful or failed. Any help you can provide will be appreciated.
Best Regards, -Jim
|
Answer : RPM return codes
|
|
rpm returns 0 for success and 1 for error. Examining $? after executing rpm will tell you if the command succeeded or not.
|
|
|
|
|