Translation(s): 한국어(Korean) - 简体中文


How to make your own Debian package repository. For the format of a Debian repository, see DebianRepository/Format. To add a third-party repository to your system, see DebianRepository/UseThirdParty.

Care has been taken to provide the most accurate information at the time of writing. Please fix any identified mistakes.

Debian Repository Types

There are 2 kinds of repositories from a user's perspective:

archive style

apt line

apt-pinning?

secure APT?

status

official archive

"deb http://example.org/debian unstable main"

Yes

Yes

preferred

trivial archive

"deb http://example.org/debian ./"

No

Yes

deprecated

Both can store actual package files, but trivial archives lack support for pinning, and should be avoided.

Whichever tool you use, please follow the best practices for creating repositories.

Debian Repository Generation Tools

Use one of these programs if you want to maintain your own repository with packages chosen by you.

Preferred for creating large official archives

These tools are designed to support very large repositories, but may be harder to use.

/!\ Consult your web hosting provider before running high-volume repositories!

dak (Debian Archive Kit)

mini-dak

Preferred for creating small personal archives

These tools are designed to support smaller personal repositories, and may not provide features needed at large scales.

reprepro

(formerly known as mirrorer)

mini-dinstall

Alternative tools

debarchiver

dpkg-scanpackages and dpkg-scansources

mkdebidx is a shell (mksh) script that wraps dpkg-scanpackages and dpkg-scansources, generating Release and Release.gpg files, and producing a nice XHTML/1.1 index.

aptly

local-apt-repository

laniakea

Pulp

Supports various packaging formats via plugins, including one for Debian.

Attune

Deprecated tools

debpool

DebMarshal

apt-ftparchive

debify

dr

Debian Repository Mirroring Tools

Use one of these tools if you need to create a local copy of an existing repo (e.g. because you build a lot of systems and want to reduce bandwidth).

ftpsync

reprepro

debmirror

apt-mirror

debpartial-mirror

apt-move

anonftpsync (deprecated)

Related software

See also


CategoryPackageManagement | CategoryDeveloper | CategoryPackaging