Versão avaliada: Debian 13
Desde o Debian 12 é possível utilizar o novo modo de configuração de "sources"
Repositório Debian:
#deb cdrom:[Debian GNU/Linux trixie-DI-rc1 _Trixie_ - Official RC amd64 DVD Binary-1 with firmware 20250515-21:55]/ trixie contrib main non-free-firmware
deb http://deb.debian.org/debian/ trixie main non-free-firmware non-free contrib
deb-src http://deb.debian.org/debian/ trixie main non-free-firmware non-free contrib
deb http://security.debian.org/debian-security trixie-security main non-free-firmware non-free contrib
deb-src http://security.debian.org/debian-security trixie-security main non-free-firmware non-free contrib
# trixie-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ trixie-updates main non-free-firmware non-free contrib
deb-src http://deb.debian.org/debian/ trixie-updates main non-free-firmware non-free contrib
Repositório NVidia
deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /
Para converter de maneira automatizada um ou todos os sources existentes em seu sistema, execute o comando APT Modernize Source para alterar o formato do arquivo repositório.
# apt modernize-sources
The following files need modernizing:
- /etc/apt/sources.list.d/cuda-debian12-x86_64.list
Modernizing will replace .list files with the new .sources format,
add Signed-By values where they can be determined automatically,
and save the old files into .list.bak files.
This command supports the 'signed-by' and 'trusted' options. If you
have specified other options inside [] brackets, please transfer them
manually to the output files; see sources.list(5) for a mapping.
For a simulation, respond N in the following prompt.
Notice: Ignoring file 'debian.sources.OLD' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Rewrite 1 sources? [Y/n]
Após a execução do comado acima, sera criado um novo arquivo nomeado cuda-debian12-x86_64.sources e um antigo com a extensão .bak.
Types: deb
URIs: https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/
Suites: /
Components:
Signed-By: /usr/share/keyrings/cuda-archive-keyring.gpg
Os novos arquivos de repositório são identificados com a nomenclatura .sources.
Repositórios Debian em modo modernizado tem o formato abaixo:
# cat debian.sources
# Modernized from /etc/apt/sources.list
Types: deb deb-src
URIs: http://deb.debian.org/debian/
Suites: trixie
Components: main non-free-firmware non-free contrib
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
# Modernized from /etc/apt/sources.list
Types: deb deb-src
URIs: http://security.debian.org/debian-security/
Suites: trixie-security
Components: main non-free-firmware non-free contrib
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
# Modernized from /etc/apt/sources.list
Types: deb deb-src
URIs: http://deb.debian.org/debian/
Suites: trixie-updates
Components: main non-free-firmware non-free contrib
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Parâmetros para construção de um repositório.sources.
X-Repolib-Name: (value: string, required: no, default: filename)
Enabled: (value: “yes” or “no”, required: No, default: “yes”)
Types: (value: “deb” or “deb-src”, required: Yes)
URIs: (value: string(s), required: Yes)
Suites: (value: strings(s), required: Yes)
Components: (value: string(s), required: see Suites:)
Architectures: (value: string, example amd64)
Options: (Opcional)
Exemplo de um repositório para o Google Chrome:
X-Repolib-Name: Google Chrome
Enabled: yes
URIs: http://dl.google.com/linux/chrome/deb
Suites: stable
Components: main
Architectures: amd64
Exemplo de um repositório para o VSCodium:
# vi /etc/apt/sources.list.d/vscodium.sources
X-Repolib-Name: VSCodium
Enabled: yes
Types: deb
Architectures: amd64 arm64
Signed-By: /usr/share/keyrings/vscodium-archive-keyring.gpg
URIs: https://download.vscodium.com/debs
Suites: vscodium
Components: main
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
Link: 1 / / /