Welcome to the Linux Foundation Forum!

Ch5 package management systems


In the text I see the following lines:

rpmbuild --rebuild -rb p7zip-16.02-16.el8.src.rpm

which will place the results in /root/rpmbuild:

Should I read the '/root/' part as current working directory? If not, then this doesn't make to much sense to me. Why should anyone be able to access or use /root directory?


  • coop
    coop Posts: 915

    I believe the text says "# rpmbuild ...." The # indicates run as root. or you can do sudo rpmbuild. This is a very standard convention.

  • luisviveropena

    Hi @robbnl ,

    You can build the sources as non-privileged user and put the files under /home/. But you need to become root or use sudo instead in order to install the compiled rpm file. Also, users won't need to access /root to run the binary, it will be in the path it has to be. So, there is not much problem here.



Upcoming Training