[CentOS] recommended way to install source rpms?
theatre at sasktel.net
Sun Oct 10 23:36:33 UTC 2010
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
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
More information about the CentOS