TEXT   71
How to unpacka debian surce package
Guest on 18th April 2022 02:01:44 PM


  1. HOW TO UNPACK A DEBIAN SOURCE PACKAGE
  2.  
  3. If you have `dpkg-source', you can use it to unpack any Debian source
  4. package: put all the files in the same directory and type `dpkg-source
  5. -x <whatever>.dsc'.  The remainder of this document explains how to
  6. unpack Debian source packages on non-Debian systems, or on Debian
  7. systems without the `dpkg-dev' package installed.
  8.  
  9. There are several kinds of Debian source packages, identified by the
  10. Format: field in the .dsc file.  If there is no Format: field, treat
  11. it as "1.0".
  12.  
  13.  
  14. "1.0" packages can be either native or non-native.  Native packages
  15. (where the Debian source is the upstream source) look like this:
  16.       hello_1.3.dsc
  17.       hello_1.3.tar.gz
  18. To unpack this kind of package, just untar the .tar.gz file.
  19.  
  20. Non-native "1.0" packages look like this:
  21.       hello_1.3-11.dsc
  22.       hello_1.3-11.diff.gz
  23.       hello_1.3.orig.tar.gz - note the `.orig' part
  24.  
  25.    1. untar P_V.orig.tar.gz.
  26.    2. rename the resulting P-V.orig directory to P-V.  If some other
  27.       directory results, rename *it* to P-V.
  28.    3. mkdir P-V/debian.
  29.    4. apply the diff with patch -p0.
  30.    5. do `chmod +x P-V/debian/rules'
  31.  (where P is the package name and V the upstream version - `hello' and
  32.  `1.3' respectively in this example.)
  33.  
  34.  
  35. "3.0 (native)" packages are the same as native "1.0" packages, except
  36. that the source tarball may be compressed using methods other than
  37. gzip.
  38.  
  39.  
  40. "3.0 (quilt)" packages look like this:
  41.       hello_1.3-11.dsc
  42.       hello_1.3-11.debian.tar.gz
  43.       hello_1.3.orig.tar.gz
  44.       hello_1.3.orig-COMPONENT.tar.gz
  45.         (optional, for one or more values of COMPONENT)
  46. The compressed files may be compressed using methods other than gzip.
  47.  
  48. To unpack this kind of package, you will need to install `quilt'
  49. (http://savannah.nongnu.org/projects/quilt), then:
  50.    1. untar P_V.orig.tar.gz.
  51.    2. rename the resulting P-

Raw Paste

Login or Register to edit or fork this paste. It's free.