Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Reply-To: From: "Suhaib Siddiqi" To: "A.R. Burgers" , Cc: "cygwin mailing list" Subject: RE: Problem using rpm on Windows 98 (partly solved) Date: Fri, 1 Oct 1999 17:18:49 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <37F524BD.9311B8AB@hetnet.nl> X-Mimeole: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal rpm2cpio requires Perl installed in /usr/bin, unless you edit rpm2cpio script and change the #!/usr/bin/perl.exe to your install path. The syntex is rpm2cpio my_rpm_file.rpm | cpio -i --make-directories In addition you need cpio.exe in your PATH. rpm2cpio has nothing to with RPM. It is a Perl script which extracts to contents of the rpm, without installing RPM. I had been using it on my Windows and SGI machine for a while for extracting source codes from RPM archives for Linux. Suhaib > -----Original Message----- > From: cygwin-owner AT sourceware DOT cygnus DOT com > [mailto:cygwin-owner AT sourceware DOT cygnus DOT com]On Behalf Of > A.R. Burgers > Sent: Friday, October 01, 1999 5:17 PM > To: ssiddiqi AT nspm DOT ipass DOT net > Cc: cygwin mailing list > Subject: Re: Problem using rpm on Windows 98 (partly solved) > > > Suhaib Siddiqi wrote: > > > Do not know about rpm, but you can get rpm2cpio script > > from http://cygutils.netpedia.net/, extract the > contents of rpm and > > install it manually by copying the extracted > files/directories to > > the desired location. > > Thanks for your fast response and your hint. > > I tried both rpm2cpio from cygutils.netpedia.net and the > rpm2cpio.pl > script (from www.rpm.org). > > rpm2cpio says: > error reading header from package > > rpm2cpio.pl says: > bogus RPM. > > This hold for rpms perl-DBI-1.13-1-cygwinb20.i386.rpm and > perl-DelimMatch-1.04-1-cygwinb20.i386.rpm > > I managed to get rpm2cpio.pl to work by specifying > binmode on the filehandle to the rpm archive. > > So the problem is probably that rpm2cpio (and probably rpm) > don't open their files in binary mode. Is something set > wrong in my > environment? Are my file opens text by default and not binary? > > my $CYGWIN variable is empty. > The output of mount is: > > Device Directory Type Flags > C: / native text!=binary > > Teun Burgers > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com