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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content