I'm trying to make an rpm that will unpack the source to a custom directory, such as /asdf. When I run it, it always errors out saying "cannot create %sourcedir /usr/src/redhat/SOURCES". Is there something I can put in my .spec file that will make it unpack the source (which is just a .tar.gz file inside the src.rpm) to a custom directory when I do the command "rpm -i xyz.src.rpm"?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
The solution was as simple as calling tar in the spec file and then specifying the path I wanted to untar to. |
|||||
|
|
Yes, you could use You also can extract the files from rpm with rpm2cpio command. man rpm2cpio. |
|||
|
|
|
|
||||
|
|