how to get a specfile from an RPM

Aaron Konstam akonstam at sbcglobal.net
Wed Aug 15 22:09:41 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.
> 
> Mikkel
You are no doubt right about not having to put the src rpm, in the SRPMS
directory bit this method is much simpler and much more straight forward
than the others suggested. I consider working with RPMs to be a root
thing so it would never occur to me to try to build rpms as a normal
user. I can't see how they wold ever install correctly.
--
=======================================================================
Old age is too high a price to pay for maturity.
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam at sbcglobal.net




More information about the users mailing list