Post, Mark K wrote:

Find the source rpm that was used to create it, and do an "rpm -ivh
package.name.src.rpm"  The .spec file will wind up in /usr/src/??/SPECS
where the ?? will vary from distribution to distribution.  The name used by
Red Hat is /redhat, SUSE previously used /packages.  I don't know if they
still do or not.



Or look in directory $(rpm --eval %_topdir)/SPECS -- that should work for any rpm-based distribution.

Richard Hitt [EMAIL PROTECTED]


Mark Post


-----Original Message-----
From: Wolfe, Gordon W [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 7:07 PM
To: [EMAIL PROTECTED]
Subject: RPM spec files


I have an rpm and I want to see what the spec file is that created it. Is there a way to extract it? I've been all through the "Maximum RPM" book and can't find it.

Use the Best!     Linux for Servers
                 Macintosh for Graphics
                 Palm for Mobility
                 Windows for Solitaire.
Gordon W. Wolfe, Ph.D.   VM & Linux Systems Support
Enterprise Servers, The Boeing Company (425)865-5940




Reply via email to