Mailinglist Archive: opensuse (3394 mails)

< Previous Next >
Re: [SLE] extract file from RPM?
  • From: stefan.troeger@xxxxxxxxxxxxxxxxxxxxxxxxx (Stefan Troeger)
  • Date: Mon, 20 Mar 2000 10:48:43 +0100
  • Message-id: <20000320104843.A7555@xxxxxxxxxxxxxxxxxxxxxxxx>



Hi,

On Sun, Mar 19 2000 at 20:53 +0300, George Zeigler wrote:

> I could not find the extract single file setting in mc. In any case,
> this command did not work:
>
> > rpm2cpio rpmfile.rpm |cpio -id "*webfonts.exe*"
>
> root@host-name:/usr/TrueType/rpm/trash > rpm2cpio rpmfile.rpm |cpio -id "*webfon
> ts.exe*"
> cannot open package: No such file or directory
> cpio: premature end of archive

Did you use the command exactly like this `rpm2cpio rpmfile.rpm
...'? And I thought it would be obvious that `rpmfile.rpm' has
to be replaced with the name of the actual rpm.

> So, starting from /usr/home/george/download/ I did the below command:
>
> rpm2cpio web*rpm |cpio --extract --make-directories --no-absolute-filenames
> --preserve-modification-time
>
> This first created some directories and then extracted the file. I just want
> the file webfonts.exe . Results shown below. Anyway to make it extract the
> file into the present directory, and not make the extension
> /usr/X11R6/lib/X11/fonts/webfonts/ ?
>
> /usr/home/george/download/usr/X11R6/lib/X11/fonts/webfonts/webfonts.exe

No rant intended, but have you ever considered to read the fine
manual of cpio? You used the `--make-directories' switch -- you
_asked_ cpio to create the directories and afterwards wonder why
it did exactly that???

Ciao,
Stefan


--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/


< Previous Next >
References