man > debcheckout(1)

📛 NAME

debcheckout — checkout the development repository of a Debian package

🚀 Quick Reference

Use CaseCommandDescription
📥 Checkout package repositorydebcheckout <package>Checkout the development repository of a Debian package
📂 Checkout to custom directorydebcheckout <package> <destdir>Checkout repository to a specified destination directory
🖨️ Print repository infodebcheckout --print <package>Display repository type and URL without checkout (offline)
📋 Show detailed infodebcheckout --details <package>Show detailed repository information (may require network)
🔐 Authenticated checkoutdebcheckout --auth <package>Checkout with write access (e.g., salsa.debian.org)
🏷️ Specify repository typedebcheckout --type <type> <url>Checkout specifying the VCS type (git, bzr, svn, hg, etc.)
📄 Extract a filedebcheckout --file <file> <package>Extract a specific file from the repository
❓ Get helpdebcheckout --helpDisplay detailed help message and exit

📋 SYNOPSIS

debcheckout [OPTIONS] PACKAGE [DESTDIR]
debcheckout [OPTIONS] REPOSITORY_URL [DESTDIR]
debcheckout --help

📖 DESCRIPTION

debcheckout retrieves the information about the Version Control System used to maintain a given Debian package (the PACKAGE argument), and then checks out the latest (potentially unreleased) version of the package from its repository. By default the repository is checked out to the PACKAGE directory; this can be overridden by providing the DESTDIR argument.

The information about where the repository is available is expected to be found in Vcs-* fields available in the source package record. For example, the vim package exposes such information with a field like Vcs-Hg: http://hg.debian.org/hg/pkg-vim/vim. You can see it by grepping through apt-cache showsrc vim.

If more than one source package record containing Vcs-* fields is available, debcheckout will select the record with the highest version number. Alternatively, a particular version may be selected from those available by specifying the package name as PACKAGE=VERSION.

If you already know the URL of a given repository you can invoke debcheckout directly on it, but you will probably need to pass the appropriate -t flag. Some heuristics are in use to guess the repository type from the URL; if they fail, you might want to override the guessed type using -t.

The currently supported version control systems are: Arch (arch), Bazaar (bzr), CVS (cvs), Darcs (darcs), Git (git), Mercurial (hg) and Subversion (svn).

⚙️ OPTIONS

🔧 GENERAL OPTIONS

🔧 VCS-SPECIFIC OPTIONS

🌿 GIT-SPECIFIC OPTIONS

⚙️ CONFIGURATION VARIABLES

The configuration files /etc/devscripts.conf and ~/.devscripts are sourced by a shell in that order. Command line options override configuration file settings. Environment variable settings are ignored.

🔗 SEE ALSO

apt-cache(8), Section 6.2.5 of the Debian Developer's Reference (for more information about Vcs-* fields): https://www.debian.org/doc/developers-reference/best-pkging-practices.html#bpp-vcs.

👤 AUTHOR

debcheckout and this manpage have been written by Stefano Zacchiroli <zack@debian.org>.

debcheckout(1)
📛 NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION ⚙️ OPTIONS
🔧 GENERAL OPTIONS 🔧 VCS-SPECIFIC OPTIONS
⚙️ CONFIGURATION VARIABLES 🔗 SEE ALSO 👤 AUTHOR

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-31 20:16 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^