What's the three kinds of files when using apt-get source xxx

Oliver Grawert ogra at ubuntu.com
Fri Jan 29 14:37:01 UTC 2010

Am Freitag, den 29.01.2010, 20:12 +0800 schrieb Thomas Dean:
> Hello everyone,
> I have a question about "apt-get source xxx".When I use apt-get source
> xxx, it downloads three kinds of files like these:

> xxx.diff.gz
this contains all debian and ubuntu patches as well as the complete
packaging information ...

> xxx.tar.gz
the plain upstream source as you would get it by downloading the tarball
at for example www.xxx.org/download ...

> xxx.dsc
the metadata that contains checksums and the like to make sure the right
diff.gz and orig.tar.gz are used together...

> What are they used for? May I delete the diff file and the dsc file?

you may do what you want but then you will miss the patches and fixes
carried by the package and only have the plain upstream source.

note that apt-get source also unpacks the tgz and applies the diff.gz to
the unpacked source ... if you cd xxx/ after apt-get source you can use
debiuld or dpkg-buildpackage to roll a binary from the source in the
xxx/ dir.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100129/bdded183/attachment.pgp>

More information about the ubuntu-users mailing list