Skip to content
Alena edited this page Mar 31, 2023 · 5 revisions

Debian

Debian repository is Debian and Ubuntu linux packages repository, that apt-get can understand. To create Debian repository in Artipie, try the following configuration:

repo:
  type: deb
  storage:
    type: fs
    path: /var/artipie/my-debian
  settings:
    Components: main
    Architectures: amd64
    gpg_password: 1q2w3e4r5t6y7u
    gpg_secret_key: secret-keys.gpg

where

Check storage documentation to learn more about storage setting.

To use Artipie Debian repository, add local repository to the list of repos for apt by adding the following line to the /etc/apt/sources.list:

deb [trusted=yes] http://{username}:{password}@{host}:{port}/{repository-name} {repository-name} {components}

where {host} and {port} are Artipie service host and port, {repository-name} is the name of the repository (and repository name is the name of the repo config yaml file), {components} in the list of components you specified in repo config file. Username and password are credentials of Artipie user. If gpg signing is enabled, parameter [trusted=yes] can be skipped.

Now use apt-get to install the package:

apt-get update
apt-get install -y my-package

apt-get client does not support upload command, but it's possible to add package into Artipie Debian repository with simple HTTP PUT request:

curl http://{username}:{password}@{host}:{port}/{repository-name}/{component} --upload-file /path/to/package.deb

where {component} is one of the Components list value. Once the package is uploaded, Artipie will update repository indexes.

Clone this wiki locally