To use Debian to manage packages in Artifactory, you have to add your Artifactory repository to the sources.list file. Artifactory local repositories support binary packages and source packages.
Note
Source packages are not supported in Trivial repository layout.
To configure Debian to connect to Artifactory:
Run one of these commands:
For Debian binary packages:
sudo sh -c "echo 'deb https://[JFrogPlatformURL]/artifactory/<REPO_NAME> <DISTRIBUTION> <COMPONENT>' >> /etc/apt/sources.list"Where:
[JFrogPlatformURL]: The URL of your JFrog Platform<REPO_NAME>: The name of the target repository<DISTRIBUTION>: The target Debian distribution<COMPONENT>: The component of the distribution
For example:
sudo sh -c "echo 'deb https://company.jfrog.io/artifactory/debian-local jammy main' >> /etc/apt/sources.list"For Debian source packages:
sudo sh -c "echo 'deb-src https://[JFrogPlatformURL]/artifactory/<REPO_NAME> <DISTRIBUTION> <COMPONENT>' >> /etc/apt/sources.list"Where:
[JFrogPlatformURL]: The URL of your JFrog Platform<REPO_NAME>: The name of the target repository<DISTRIBUTION>: The target Debian distribution<COMPONENT>: The component of the distribution
For example:
sudo sh -c "echo 'deb-src https://company.jfrog.io/artifactory/custom-linux-src noble main' >> /etc/apt/sources.list"
Note
To authenticate to your Artifactory repository with credentials, pass your credentials in the URL using this format:
https://<USERNAME>:<TOKEN>@<HOST>/artifactory/<REPO_NAME>.