Add to Favourites Add to Favourites    Print this Article Print this Article

rpmbuild is building in /root/rpmbuild instead of /usr/src/redhat

We've noticed that on CentOS 6, the build path had changed for rpms to

/root/rpmbuild

instead of the previous value of

/usr/src/redhat

To change it back to the value we were used to, we edited:

/usr/lib/rpm/macros

and changed:

%_topdir                %{getenv:HOME}/rpmbuild

to be:

%_topdir                %{_usrsrc}/redhat


Was this answer helpful?

Also Read