To use the Artifactory repository to download the Debian source package, add it to your sources.list file. Use the following command:
Note
Applicable for Remote repositories only.
sudo sh -c "echo 'deb-src https://[JFrogPlatformURL]/artifactory/<DEBIAN-REPOSITORY> <DISTRIBUTION> <COMPONENT>' >> /etc/apt/sources.list"
For example:
sudo sh -c "echo 'deb-src https://company.jfrog.io/artifactory/debian-remote focal main' >> /etc/apt/sources.list"
For accessing Artifactory using credentials, you can specify it in the sources.list file:
https://<USERNAME>:<TOKEN>@[JFrogPlatformURL]/artifactory/<DEBIAN-REPOSITORY> <DISTRIBUTION> <COMPONENTS>
For example:
https://john:dGtuOjAxOjE3ODQ3MDQ1MzY6d@company.jfrog.io/artifactory/debian-remote focal main
Your apt-get client will use the specified Artifactory repositories to install the package:
apt-get source <PACKAGE>
For example:
apt-get source curl
Note that the index files for remote Debian repositories (including the sources index) are stored and renewed according to the Retrieval Cache Period setting.