[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: tarball of all .spec files in Red Hat 6.2



On Sat, Sep 23, 2000 at 10:30:59PM -0400, Mike A. Harris wrote:
> Does anyone have a tarball of all .spec files for RH 6.2?
> 
> If so, please email attach it to me privately.

I don't, but I found I was extracting quite a few to study them.  So I
wrote a shell function to make it easier.  You should be able to extract
them all pretty quickly with this and a shell 'for' loop.  Adjust the
path to your liking or remove it altogether.

getspec () {
        rpm2cpio $1 | (cd /usr/src/redhat/SPECS ; cpio -div '*.spec')
}

Here's a couple more you might find useful:

getsrc () {
        rpm2cpio $1 | (cd /usr/src/redhat/SOURCES ; cpio -div '*.tar.gz')
}

getpatches () {
        rpm2cpio $1 | (cd /usr/src/redhat/SOURCES ; cpio -div '*.patch')
}


Wil
-- 
W. Reilly Cooley                         wcooley@nakedape.cc
Naked Ape Consulting                      http://nakedape.cc
LNXS: Linux/GNU for servers, networks, and   http://lnxs.org
people who take care of them.  *Now with integrated crypto!*
irc.openprojects.net                                   #lnxs

The verdict of a jury is the a priori opinion of that juror who smokes
the worst cigars.
		-- H. L. Mencken





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []