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


instead of the previous value of


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


and changed:

%_topdir                %{getenv:HOME}/rpmbuild

to be:

%_topdir                %{_usrsrc}/redhat

Was this answer helpful?

Also Read