centos6中rpmbuild如何用/usr/src/redhat替换/root/rpmbuild


在CentOS6中, build 默认路径已经改成/root/rpmbuild

替换了原来的路径:/usr/src/redhat

如何改回我们习惯的路径呢? 编辑下面的文件:

#cat /usr/lib/rpm/macros

修改:

%_topdir                %{getenv:HOME}/rpmbuild

为:

%_topdir                %{_usrsrc}/redhat


你可能感兴趣的:(centos6,rpmbuild,redhat6)