Table of contents

Sources

Search

Package search

You can simply point a package search query with the following URL: //sources.debian.org/search/query See example

A suite parameter can be given to limit search to a given suite. //sources.debian.org/search/query?suite=suite_name See example

File search

The URL for a SHAsum search is: //sources.debian.org/sha256/?checksum=sha256&package=packagename Specifying a package name is optional.

Code search

You can search within the code through tags. //sources.debian.org/ctag/?ctag=tag&package=packagename Specifying a package name is optional.

Package list

Alphabetically

//sources.debian.org/list/INT See example

By prefix

//sources.debian.org/prefix/prefix See example

A suite parameter can be given to limit listing to a given suite. //sources.debian.org/prefix/prefix?suite=suite_name See example

Package versions

You can list the different versions of a package, accessing this URL: //sources.debian.org/src/packagename See example

a suite parameter can be given to limit listing to a given suite. //sources.debian.org/src/packagename?suite=suite_name See example

Navigation within a package

You can list the files in a package or in a particular folder of a package, accessing one of these URLs: //sources.debian.org/src/packagename/version or: //sources.debian.org/api/src/packagename/latest to point to the latest known version of the package; or even: //sources.debian.org/api/src/packagename/suite to point to the version of the package in a given Debian suite/release.
See example

//sources.debian.org/src/packagename/version/path/to/dir See example

Source code displaying

To simply display a source file: //sources.debian.org/src/packagename/version/path/to/file See example

If recognized as a text file, the source file will be syntax highlighted, automatically detecting the relevant language. Files not recognized as text files will be offered for download. It is possible to override the detected language appending ?lang=LANGUAGE to the source file URL; LANGUAGE should be one of the languages supported by highlight.js (use one of the double-quoted strings in parentheses). ?lang=none can be used to force displaying a file (as opposed to downloading it) without any syntax highlighting.

To point a specific line in a source file: //sources.debian.org/src/packagename/version/path/to/file#LINT See example

If you want to embed a source code file in e.g. an iframe, use: //sources.debian.org/embed/file/packagename/version/path/to/file#LINT

To use with options: //sources.debian.org/src/packagename/version/path/to/file?opt1=val1&opt2=val2[...]#LINT

Available options

See example (highlight and one popup)
See example (highlight and two popups)

Infobox

You can embed an infobox about a particular version of a package (the same infobox which appears when you browse a package) using: //sources.debian.org/embed/pkginfo/packagename/version

License search

Checksum search

The URL for a SHAsum search is: //sources.debian.org/copyright/sha256/?checksum=sha256&package=packagename&suite=jessie Specifying a suite or a package name is optional. See example

Path search

The URL for a path search is: //sources.debian.org/copyright/file/packagename/version/path Both package name and version are required parameters. See example

Package list

Alphabetically

//sources.debian.org/copyright/list/INT See example

By prefix

//sources.debian.org/copyright/prefix/prefix See example

A suite parameter can be given to limit listing to a given suite. //sources.debian.org/copyright/prefix/prefix?suite=suite_name See example

Package versions

You can list the different versions of a package, accessing this URL: //sources.debian.org/copyright/license/packagename See example

a suite parameter can be given to limit listing to a given suite. //sources.debian.org/copyright/license/packagename?suite=suite_name See example

License rendering

Debian copyright files can be machine readable (following this standard) or non machine readable.

When accessing one of these URLs you can view the license of a package. If it is machine readable then the app is rendering the license in some fancy manner, otherwise it provides a text dump. //sources.debian.org/copyright/license/packagename/version or: //sources.debian.org/copyright/license/packagename/latest to point to the latest known version of the package.
See example and another one.

Patches

Package summary

The URL for the patches summary of a package is: //sources.debian.org/patches/packagename/version Version can be a suite name, a version number or the keyword 'latest' See example

Patch view

The URL for displaying patch information is: //sources.debian.org/patches/packagename/version/path Both package name and version are required parameters. The path is the relative path of the patch starting from the debian/patches directory. See example

Package list

Alphabetically

//sources.debian.org/patches/list/INT See example

By prefix

//sources.debian.org/patches/prefix/prefix See example

A suite parameter can be given to limit listing to a given suite. //sources.debian.org/patches/prefix/prefix?suite=suite_name See example

Package versions

You can list the different versions of a package, accessing this URL: //sources.debian.org/patches/license/packagename See example

a suite parameter can be given to limit listing to a given suite. //sources.debian.org/patches/license/packagename?suite=suite_name See example

Package versions with no links signify that the patch format is not 3.0 quilt.
The asterisk (*) at a package versions implies that although the patch format is 3.0 quilt, the specific version has no patches yet.