home *** CD-ROM | disk | FTP | other *** search
/ Dream 46 / Amiga_Dream_46.iso / bo / extras / doc / source-unpack.txt < prev    next >
Text File  |  1996-08-30  |  1KB  |  32 lines

  1.     HOW TO UNPACK A DEBIAN SOURCE PACKAGE
  2.  
  3. There are two kinds of Debian source packages: old ones and new ones.
  4.  
  5. A. Old ones look like this:
  6.       hello-1.3-4.tar.gz
  7.       hello-1.3-4.diff.gz
  8.  You unpack them by untarring the .tar.gz.  There is NO need to apply
  9.  the diff.
  10.  
  11. B. New ones look like this:
  12.       hello_1.3-11.dsc
  13.       hello_1.3-11.diff.gz
  14.       hello_1.3-11.orig.tar.gz - note the `.orig' part
  15.  Here you MUST use dpkg-source or apply the diff manually - see below.
  16.  
  17.  If you have `dpkg-source' you should put the files in the same
  18.  directory and type `dpkg-source -x <whatever>.dsc'.
  19.  
  20.  If you do not you can extract the Debian source as follows:
  21.    1. untar P_V.orig.tar.gz.
  22.    2. rename the resulting P-V.orig directory to P-V.
  23.    3. mkdir P-V/debian.
  24.    4. apply the diff with patch -p0.
  25.  (where P is the package name and V the version.)
  26.  
  27. C. There are some packages where the Debian source is the upstream
  28.  source.  In this case there will be no .diff.gz and you can just use
  29.  the .tar.gz.  If a .dsc is provided you can use `dpkg-source -x'.
  30.  
  31.  -- Ian Jackson <ijackson@gnu.ai.mit.edu>  Sat, 31 Aug 1996
  32.