Configuring APT repositories v23
You can configure APT package repositories on Debian and Ubuntu systems.
You can define named repositories in apt_repositories
and decide
which ones to use by listing the names in apt_repository_list
:
This configuration installs:
- The GPG key (with id
key_id
, obtained fromkey_url
) - A new entry under
/etc/apt/sources.list.d
with the givenrepo
line (or lines) for the PGDG repository (which is already defined by default) - The new Example repository
When you configure additional repositories, remember to include PGDG in
apt_repository_list
if you still want to install PGDG packages.
You can set apt_repository_list: []
to not install any repositories.