Table of contents

Sources

Search

Package search

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

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

File search

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

Code search

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

Package list

Alphabetically

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

By prefix

//sources.debian.net/prefix/prefix See example

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

Package versions

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

a suite parameter can be given to limit listing to a given suite. //sources.debian.net/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.net/src/packagename/version or: //sources.debian.net/api/src/packagename/latest to point to the latest known version of the package; or even: //sources.debian.net/api/src/packagename/suite to point to the version of the package in a given Debian suite/release.
See example

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

Source code displaying

To simply display a source file: //sources.debian.net/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.net/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.net/embed/file/packagename/version/path/to/file#LINT

To use with options: //sources.debian.net/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.net/embed/pkginfo/packagename/version

License search

Checksum search

The URL for a SHAsum search is: //sources.debian.net/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.net/copyright/file/packagename/version/path Both package name and version are required parameters. See example

Package list

Alphabetically

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

By prefix

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

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

Package versions

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

a suite parameter can be given to limit listing to a given suite. //sources.debian.net/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.net/copyright/license/packagename/version or: //sources.debian.net/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.net/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.net/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.net/patches/list/INT See example

By prefix

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

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

Package versions

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

a suite parameter can be given to limit listing to a given suite. //sources.debian.net/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.