In article <[EMAIL PROTECTED]>,
        [EMAIL PROTECTED] (" Raymond A. Ingles") writes:

>  CONS:
>   Cannnot use the Debianized package without dpkg.
>   Difficult to "unDebianize".
>
Actually you can do this without any Debian specific tools.  GNU ar
should be included in any major Linux distribution.  Here a little
description on how to extract the contents of a Debian package on a
non Debian system:

--------cut-here----------------------------------------------------
Using GNU "ar" you can extract the components from a *.deb archive for
further manual processing. The member "data.tar.gz" contains the
actual files to be installed and "control.tar.gz" contains all setup
scripts. The latter could eventually be important to examine if you
plan installing the Debian package in a non-debian system to make the
binaries workable.

This works only with newer Debian packages which are made using the
new Debian packaging version 2.0! For the older format you do need to
use dpkg-deb!

* With the v switch you get a more verbose output!

* For listing the Debian archive's contents use the t switch:

myprompt> ar tv mc_3.5.19-1_i386.deb
rw-r--r-- 0/0      4 Mar 12 06:58 1997 debian-binary
rw-r--r-- 0/0   1195 Mar 12 06:58 1997 control.tar.gz
rw-r--r-- 0/0 381874 Mar 12 06:58 1997 data.tar.gz
myprompt>

* For extracting all components use the x switch:

myprompt> ar xv mc_3.5.19-1_i386.deb
x - debian-binary
x - control.tar.gz
x - data.tar.gz
myprompt> ls -l
-rw-r--r-- 1 user group     1195 Mar 13 16:48 control.tar.gz
-rw-r--r-- 1 user group   381874 Mar 13 16:48 data.tar.gz
-rw-r--r-- 1 user group        4 Mar 13 16:48 debian-binary
-rw-r--r-- 1 user group   383262 Mar 13 16:33 mc_3.5.19-1_i386.deb
myprompt>

* For extracting single members of the Debian archive use the p switch
  and rename them to something more descriptive by output redirection:

myprompt> ar pv mc_3.5.19-1_i386.deb data.tar.gz > mc_3.5.19.tar.gz
myprompt> ar pv mc_3.5.19-1_i386.deb control.tar.gz > mc_3.5.19-control.tar.gz
myprompt> ls -l mc*
-rw-r--r-- 1 user group   383262 Mar 13 16:33 mc_3.5.19-1_i386.deb
-rw-r--r-- 1 user group     1195 Mar 13 16:58 mc_3.5.19-control.tar.gz
-rw-r--r-- 1 user group   381874 Mar 13 16:58 mc_3.5.19.tar.gz
myprompt>

For further information consult the man page for "ar".
--------cut-here----------------------------------------------------

Maybe this should be made part of the Debian-FAQ?

                                   Regards, P. *8^)
-- 
   Paul Seelig                         [EMAIL PROTECTED]
   African Music Archive - Institute for Ethnology and Africa Studies
   Johannes Gutenberg-University   -  Forum 6  -  55099 Mainz/Germany
   Our AMA Homepage  in  the WWW at  http://www.uni-mainz.de/~bender/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to