Mailinglist Archive: opensuse (4749 mails)

< Previous Next >
Re: [SLE] RPM question
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Sun, 4 May 2003 20:59:21 +0200
  • Message-id: <200305042059.22543.andjoh@xxxxxxxxxx>
On Sunday 04 May 2003 20:40, Martin wrote:
> Is there a way to extract just specific files from rpm
> package?

from the command line, you could do something like

rpm2cpio packagename.rpm | cpio -i --make-directories file_you're_looking_for

if the file is in the rpm as /usr/X11R6/lib/whatever, that directory structure
will be created in the current directory, and the file will be extracted
there. I don't know if there's a way to force it to extract to the current
directory, I don't use it very often

< Previous Next >
References