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

Re: Other than --rebuild, how do I use an SRPM file?



Pete Peterson wrote:
> 
> I want to build the latest openssh for Red Hat 6.2.  I grabbed the
> SRPM and did an 'rpm --rebuild' on it and created a bunch of new
> RPM files.  The only problme is that the default configuration
> wasn't exactly what I wanted.  Unfortunately --rebuild removes
> all the intermediate data, so I couldn't modify patch files,
> config files or spec files --- whatever it is that I would have
> to change to, for instance, enable MD5 passwords.

  rpm -i sourcerpm.src.rpm
  cd /usr/src/redhat/SPECS
  rpm -bp sourcerpm.spec

Or if you just want to unroll the RPM to peek inside:
  rpm2cpio anyrpm.rpm | cpio -id

--
Andrew E. Mileski
Ottawa, Canada





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