[rhn-users] Re: Extracting sources
Buchan Milne
bgmilne at staff.telkomsa.net
Thu Mar 16 07:14:46 UTC 2006
On Wednesday 15 March 2006 23:53, Zdzislaw Meglicki wrote:
> Well, it seems that something actually does happen. I found extracted
> files in /usr/src/redhat/SOURCES.
Well, actually, the "Source" bits go into the directory defined by %_sourcedir
(run 'rpm --eval %_sourcedir'), and the spec file goes into the directory
defined by %_specdir.
> They're still in "tar.gz", i.e.,
> not unpacked into directory trees
Well, this is done during building of the package.
> , and there is no RPM entry for
> them, but they're there.
Well, source RPMs (SRPMs) are not the same as binary RPMs. Eg, as a normal
user, you can also install a SRPMs, and it will be extracted to the location
set by the users ~/.rpmmacros, eg:
[bgmilne at comanche ~]$ rpm --eval %_sourcedir
/home/bgmilne/rpm/SOURCES
[bgmilne at comanche ~]$ rpm --eval %_specdir
/home/bgmilne/rpm/mdk/SPECS
> Shouldn't anything that's installed with RPM leave a trace on the RPM
> data bases?
No, not SRPMs.
Now, you don't say what you intend to do with the SRPM, but, for more
information on this, please look for the book "Maximum RPM", see
http://www.rpm.org/ .
Regards,
Buchan
--
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20060316/f255c1ac/attachment.sig>
More information about the rhn-users
mailing list