In an RPM spec file where (e.g., %pre) would I check to see if a file(s) exists already? Ideally, I would like to check for the files before the source is decompressed during the rpm install, and if they are present just exit rpm install. Otherwise, if not present, run through the rpm install as normal.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.