There are multiple ways to download the source package -*.dsc (Debian Source Control) file. For example:
- apt source xxx
- dget xxx
- git clone (not related to this question)
What's the difference between "apt source" and "dget"?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityapt source foo
will find the source package providing the foo
binary package, download it, and extract it to the current directory. (See the apt-get
manpage for details.)
dget foo
will download the foo
binary package to the current directory. It doesn’t download the source package.
When given a URL, dget
downloads the corresponding file; additionally, if the downloaded file is a .dsc
or .changes
file, it will download the other files referenced there, and extract the resulting source package.
.dsc
and .changes
files list the other files composing a source package (the .orig
and .debian
tarballs). Those are the other files referenced. dget
doesn’t deal with dependencies.
Oct 18, 2019 at 5:37