|
Hello, Im trying to run sudo rpmbuild -ba container-selinux.spec so I can make use of the rpm but whenever I run this command I get an error: Bad source: /root/rpmbuild/SOURCES/v0.tar.gz: No such file or directory. Im currently in a VM without access to root and cannot find or see where I can change this argument so that it can look for the files in my user account instead of at the root level. Would appreciate some help. |
Replies: 1 comment
|
Ok so maybe some people already know how to do this, but its my first time working on a VM and didnt know. Run mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} to create the directories in your home directory. The run echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros to create an rpm macros file that will direct any and all of your rpmbuilds to your home directory. This should fix your issue. To anyone experienced, sorry for the stupid question. |
Ok so maybe some people already know how to do this, but its my first time working on a VM and didnt know. Run mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} to create the directories in your home directory. The run echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros to create an rpm macros file that will direct any and all of your rpmbuilds to your home directory. This should fix your issue. To anyone experienced, sorry for the stupid question.