Why rpmbuild command wipes out source files? Is there any way to prevent it and keep the source files?

Solution Verified - Updated -

Issue

  • Why rpmbuild command wipes out source files? Is there any way to prevent it and keep the source files?
  • This can be called manually using the --rmsource flag, however without using this flag, rpmbuild is automatically clearing the source directory.
  • This happens whether or not the target package is actually built
  • How to prevent rpmbuild from deleting the source files?

Environment

  • Red Hat Enterprise Linux 7
  • rpmbuild

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.