[CentOS] recommended way to install source rpms?

R P Herrold herrold at centos.org
Sun Oct 10 21:35:24 EDT 2010


On Sun, 10 Oct 2010, JohnS wrote:

> On Sun, 2010-10-10 at 17:36 -0600, Frank Cox wrote:

>> There is very little to explain, if all you want to do is examine the
>> source.
>>
>> Install rpmdevtools.  Run rpmdev-setuptree

> Warning: No matches found for: rpmdevtools
> No Matches found

As I recall, rpmdevtools is a Fedora-ism

The actions in question set up a local %{_topdir} and then the 
RPMS, SOURCES, SPECS and so forth directories for a local user

[root at trap64 log]# su - herrold
[herrold at trap64 ~]$ cat .rpmmacros
%_topdir      /home/herrold/rpmbuild
%make   make
%dist   orc
%releasetagsuffix       orc
%vendor                 %{dist}
#
         [herrold at trap64 ~]$ ls -l ~/rpmbuild/
total 40
drwxrwxr-x 8 herrold herrold 4096 Oct 10 21:12 BUILD
drwxrwxr-x 4 herrold herrold 4096 Oct  4 16:53 RPMS
drwxrwxr-x 3 herrold herrold 4096 Oct 10 21:12 SOURCES
drwxrwxr-x 2 herrold herrold 4096 Oct 10 21:12 SPECS
drwxrwxr-x 2 herrold herrold 4096 Oct 10 21:12 SRPMS
[herrold at trap64 ~]$

I think at one point the referenced package had a copy of a 
little script I've long since published at:
 	ftp://ftp.owlriver.com/pub/local/COLUG/RPM-build-tree.txt
itself based on a post on the mailing list rpm-list

-- Russ herrold


More information about the CentOS mailing list