I didn't find any Github
repository for apt
, but instead you can use official guide how to get sources:
15.1.1. Getting the Sources
Rebuilding a Debian package starts with getting its source code. The easiest way is to use the apt-get source source-package-name
command. This command requires a deb-src
line in the /etc/apt/sources.list
file, and up-to-date index files (i.e. apt-get update
). These conditions should already be met if you followed the instructions from the chapter dealing with APT configuration.
Note however, that you will be downloading the source packages from the Debian
version mentioned in the deb-src
line. If you need another version, you may need to download it manually from a Debian
mirror or from the web site. This involves fetching two or three files (with extensions *.dsc
— for Debian Source Control — *.tar.comp
, and sometimes *.diff.gz
or *.debian.tar.comp
— comp taking one value among gz
, bz2
or xz
depending on the compression tool in use), then run the dpkg-source -x file.dsc
command.
If the *.dsc
file is directly accessible at a given URL, there is an even simpler way to fetch it all, with the dget URL
command. This command (which can be found in the devscripts package) fetches the *.dsc
file at the given address, then analyzes its contents, and automatically fetches the file or files referenced within. Once everything has been downloaded, it extracts the source package (unless the -d
or --download-only
option is used).
Link to the documentation is here.