运维网's Archiver
论坛
›
Linux运维
› centos6中rpmbuild如何用/usr/src/redhat替换/root/rpmbuild
sunsir
发表于 2018-5-11 13:43:24
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
页:
[1]
查看完整版本:
centos6中rpmbuild如何用/usr/src/redhat替换/root/rpmbuild