On Wed, Jun 06, 2001 at 10:53:33AM +0800, -=warfab=- wrote:
> I know that one could get spec files from source rpms but is it
> possible to "extract" spec files from binary rpms?

The spec file is not usually included in binary rpms so, technically,
you cannot "extract" it.  However, it's quite trivial to rebuild it
using the output of rpm's query options, ie:

$ rpm -qpil --scripts --triggers /path/to/rpms/file.rpm

If the package is already installed, just remove 'p' from the first
parameter and use the package name instead of the full path name.

man rpm for more details.

PS. Why do you want to do that?

-- 
Abstainer, n.:
        A weak person who yields to the temptation of denying himself a
pleasure.
                -- Ambrose Bierce, "The Devil's Dictionary"


_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to