apt source <package...>

Fetch package source files

Arguments

NameDescription
packageThe package you want to get source files for

Options

NameDescription
-d, --download-onlyFor any operation that would download packages, download them, but do nothing else
--no-downloadDo not download packages, attempt to use already downloaded packages
-yAssume yes to all prompts
--assume-noAssume no to all prompts
-s, --simulateSimulate running this command and show it's output, without actually changing anything
--compileCompile the package to a binary using dpkg-buildpackage
--only-source
--host-architecture <architecture>The architecture to build for