[CentOS] Building packages using RPMBUILD

Keith Roberts keith at karsites.net
Thu Dec 16 17:37:44 UTC 2010


On Thu, 16 Dec 2010, Robert Heller wrote:

> To: CentOS mailing list <centos at centos.org>
> From: Robert Heller <heller at deepsoft.com>
> Subject: Re: [CentOS] Building packages using RPMBUILD
> 
> At Thu, 16 Dec 2010 17:00:23 +0100 CentOS mailing list <centos at centos.org> wrote:
>
>>
>> Hello Keith,
>>
>> On Thu, 2010-12-16 at 15:08 +0000, Keith Roberts wrote:
>>> [rpmbuilder at karsites sox]$ rpm -iv ./sox-12.18.1-1.src.rpm
>>> error: cannot write to %sourcedir /usr/src/redhat/SOURCES
>>
>> /usr/src/redhat and sub dirs are owned root.root. If you want to build
>> as a normal user (and you should!) you should fix the ownership of those
>> directories.
>
> Even better would be to create the directories under your home dir and
> then include a line like:
>
> %_topdir /home/rpmbuilder/src
>
> in ~/.rpmmacros

OK.

Will try that as well.

Why is better to use a new user account under 
/home/rpmbuilder

than the default that rpm installs source rpms to?

Keith



More information about the CentOS mailing list