Scroll to navigation

EXTREPO(1p) User Contributed Perl Documentation EXTREPO(1p)


extrepo - manage external Debian repositories


extrepo search search_key

extrepo enable repository_name

extrepo disable repository_name

extrepo update repository_name


The extrepo tool is used to manage external repositories in Debian. Before extrepo, users who wished to use software not packaged for Debian had to manually write the apt configuration files, run an unsigned script as root, or install an unsigned .deb package that contained all the configuration on their system. None of these methods were very secure.

Extrepo remedies this by way of a metadata repository for external package repositories. The user can search the list of metadata repositories by way of "extrepo search", and manage them through "extrepo enable", "extrepo disable", or "extrepo update".


search key

Searches for a repository where the given argument key (a regular expression) matches either the name of the repository, its description, or the URL of the repository in question. The full YAML configuration of all repositories that have a match are printed to standard output.

To search for all repositories, don't provide any search key.

enable repository_name

Enable the repository named repository_name.

There are two cases for this command:

  • If the repository had not yet been created before, this creates its configuration from the current metadata.
  • If the repository had been created before but disabled by way of the "extrepo disable" command, re-enables it without updating the metadata. If you want to update it, see the "extrepo update" command.

disable repository_name

This simply adds a line "Enabled: no" to the apt configuration file, so that the repository is not enabled. It can be re-enabled by changing the line to "Enabled: yes" (or removing it entirely), or by way of the "extrepo enable" command (second case).

update repository_name

Re-writes the apt configuration file for this repository, as well as the GPG keyring for it, from the current metadata.


<> for instructions on adding your own repository


Wouter Verhelst
2020-05-28 perl v5.28.1