From owner-freebsd-questions@FreeBSD.ORG Wed Sep 21 17:14:17 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B444106566C for ; Wed, 21 Sep 2011 17:14:17 +0000 (UTC) (envelope-from carmel_ny@hotmail.com) Received: from blu0-omc4-s31.blu0.hotmail.com (blu0-omc4-s31.blu0.hotmail.com [65.55.111.170]) by mx1.freebsd.org (Postfix) with ESMTP id 1966B8FC13 for ; Wed, 21 Sep 2011 17:14:16 +0000 (UTC) Received: from BLU0-SMTP396 ([65.55.111.136]) by blu0-omc4-s31.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 21 Sep 2011 10:14:16 -0700 X-Originating-IP: [76.182.105.57] X-Originating-Email: [carmel_ny@hotmail.com] Message-ID: Received: from scorpio.seibercom.net ([76.182.105.57]) by BLU0-SMTP396.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 21 Sep 2011 10:14:14 -0700 Received: from scorpio (zeus [192.168.1.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: carmel_ny@scorpio.seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id 3S3ncP5Tlfz2CG54 for ; Wed, 21 Sep 2011 13:14:13 -0400 (EDT) Date: Wed, 21 Sep 2011 13:14:13 -0400 From: Carmel To: FreeBSD In-Reply-To: <4E7A17A0.6040500@quick.cz> References: <4E79CDF7.1060102@gmail.com> <4E7A17A0.6040500@quick.cz> Organization: seibercom.net X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUAAABYRlwJCw4FAgAIBwKprDkBAQFQLR0BAgCir7VRttp8AAACAUlEQVQ4jZWUTYvbMBCGTVl8V2hX6Gg5G5FbWQdBj0lEfE7BhN4cyzi5Wt1E5L70roWy6N92xok/skkP+5IYrMcz78xIduDWpNM3vFzuA/jX5EY1AI6KHFwW/CzFuQAwqUBbV12p+CzIh6Awq7sg33pn5D64SQXAexffeuQlA/L35RrkaB551OjGfP/cAO8mCNaDcgvfky5ijoD0pAXlCQCnljiAjsJD9Ax05Ko5sZxbnLQcmM+dZg5IjREfZrWIHK0JuwU68pAGwHvfRxBundRzTxxz3r9dNUikPsEihjz2Dc4kjp1hKsJGuot4EDxaxzMoC7XqhxhOSfZrTS6gSX1JVdjp+o1PvWfekXgw3WL0g70nDEwA0H0HQsEZc8sTmFMTkWUfYWC/vdR1zQy3xLQgLwzu90QnlnFLjeiGWBjwhb4Sa42IqOg2qqS4O1/zhKokFUb1Q8Rj4Eb69WVflXEehJ35DgChVTE5n50eaGyMLOfH8AOodoSM4PVYAQgQdBulOa+knklYks3vAuQ+uX492lTl+A+e8qBV2AKoXalVKFfyuUp0pUp1ARaUHh82lv9MN+Ig7CZtgE6FNYvjlywT2VP2dMgOG46gTIWcqdfvuwyXNz0oMJNd/N5lh1YNiJt19ADTUo3VuFSNeQwVqRSrGjSCp53fk2g+Mvfk/gfoPxHeUS8MH9vRAAAAAElFTkSuQmCC MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 21 Sep 2011 17:14:14.0789 (UTC) FILETIME=[E3625B50:01CC7881] Subject: Re: Using RPM to extract file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2011 17:14:17 -0000 On Wed, 21 Sep 2011 18:58:08 +0200 Vaclav Kadlcik articulated: > On 2011/09/21 18:19, Carmel wrote: > > On Wed, 21 Sep 2011 13:43:51 +0200 > > kron24 articulated: > > > >> On 2011/09/21 13:17, Carmel wrote: > >>> I am attempting to obtain a PPD file for a Brother MFC-9560CDW > >>> printer. According to this URL: > >>> , > >>> I can download a file from: > >>> > >>> for this printer. Unfortunately, the file is only available in > >>> either "RPM" or "DEB" format. I cannot figure out how to extract > >>> the "PPD" from "RPM" file. I have read "man rpm"; however, I am > >>> still confused. I tried following the instruction given on the > >>> site for extracting the files; however, that only issued a > >>> warning about an incorrect operating system. > >> > >> First use rpm2cpio of archivers/rpm to get a cpio package. > >> Then continue with standard cpio(1). > > > > Using "rpm2cpio" was easy enough; however, I just cannot figure out > > how to get "cpio" to extract just the one file I want. Either it > > just hangs or issues an error message. The man page is just about > > useless. No useful example is given. > > > > $ rpm2cpio ./usr/local/Brother/Printer/mfc9560cdw/cupswrapper/brcupsconfpt1 > ./usr/local/Brother/Printer/mfc9560cdw/cupswrapper/cupswrappermfc9560cdw > ./usr/local/Brother/Printer/mfc9560cdw/cupswrapper/mfc9560cdw.ppd > 85 blocks I found a nearly identical example while Googling right after I posted. It would be nice if a simple example like that were included n the "man" page. -- Carmel ✌ carmel_ny@hotmail.com