how to get a specfile from an RPM

Matthew Saltzman mjs at CLEMSON.EDU
Wed Aug 15 17:43:16 UTC 2007


On Wed, 2007-08-15 at 10:28 -0500, Mikkel L. Ellertson wrote:
> Aaron Konstam wrote:
> > Place the SRPM in /usr/sr/redhat/SRPMS
> > Then run : rpm -i <src rpm>
> > The spec file will show up in: /usr/src/redhat/SPECS
> > 
> This will only work if you run it as root. And the SRPM can be in
> any directory. If you have set up your normal user to build RPMs,
> then running it as a normal user will install the files in the
> $HOME/rpmbuild directory tree.

To use a personal build tree, install rpmdevtools and run
rpmdev-setuptree.  There is also in that package rpmdev-extract, which
looks like it might do what the OP wants.

> 
> Mikkel
-- 
                Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs




More information about the fedora-list mailing list