Extract single file from SRPM?

turian_at_gmail.com
Date: 05/27/05

  • Next message: Nico Kadel-Garcia: "Re: Extract single file from SRPM?"
    Date: 26 May 2005 16:12:55 -0700
    
    

    How can I extract a single file from an SRPM?

    Detailed story follows:

    I am trying to install source RPM bprof-2.0beta-1.src.rpm from
    http://rpmfind.net//linux/RPM/contrib/libc6/src/bprof-2.0beta-1.src.html
    (Unfortunately, the binary has an archaic library dependency that I
    cannot resolve.)

    However, I get the following error message:

    # rpm -Uvh bprof-2.0beta-1.src.rpm
       1:bprof ###########################################
    [100%]
    error: unpacking of archive failed on file bprof-2.0beta-1.spec: cpio:
    Archive file not in header

    Now, the thing is, I don't need the .spec file.
    I only want the .patch file:

    # rpm -qpl bprof-2.0beta-1.src.rpm
    bprof-2.0.patch
    bprof-2.0beta.tar.gz
    bprof-2.0beta-1.spec

    So how can I extract just the single .patch file? Alternately, how can
    I force RPM extraction? (I tried --force, but no luck.)

    Thanks!

        Joseph


  • Next message: Nico Kadel-Garcia: "Re: Extract single file from SRPM?"

    Relevant Pages

    • Re: rpm2cpio or cpio not working?
      ... I am attempting to extract a single file from an rpm. ... to check the path first? ...
      (alt.os.linux.suse)
    • rpm2cpio or cpio not working?
      ... having trouble. ... I am attempting to extract a single file from an rpm. ...
      (alt.os.linux.suse)
    • Re: How can I extract a single file from an rpm package?
      ... Try rpmdev-extract filename.rpm, it will extract all files in the rpm ... variety of old libraries, most of which I already had. ... take a chance that the other libraries in the rpm package were identical ...
      (comp.os.linux.misc)
    • Re: extracting rpms to non-root directories
      ... Chris Jones wrote: ... > I'm trying to extract the contents of an rpm to a non-standard place ... while creating any necessary directories. ...
      (Fedora)
    • Re: installing tar.gz files
      ... > on Extract.. ... All the applications in the SuSE cds/dvds are in rpm ... To learn how to install rpm packages, ... You can also install them with Yast, clicking on the rpm icon, and then on ...
      (alt.os.linux.suse)