Re: recommended way to install source rpms?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, 2010-10-10 at 18:58 -0400, Robert P. J. Day wrote:
> but it's a little high-handed to not
> explain how to do something because you've decided it's not something
> you want *others* to know.

There is very little to explain, if all you want to do is examine the
source.

Install rpmdevtools.  Run rpmdev-setuptree

Pick your favourite mirror.  Navigate to the src directory that you're
interested in, download the src.rpm

rpm -i whatever.src.rpm

Your rpm contents are now in ~/rpmbuild.  Examine away.  The spec is in
~/rpmbuild/SPECS, the source code is in ~/rpmbuild/SOURCES

Compile it with rpmbuild -ba whatever.spec.  Your binary will be in
~/rpmbuild/RPMS and the new src.rpm is in ~/rpmbuild/SRPMS.

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux