comparison apt.py @ 247:ff36727f3a10

pkg and host updates
author drewp@bigasterisk.com
date Thu, 28 Dec 2023 16:38:05 -0800
parents b58f05be720a
children 5c10b1e8d0e1
comparison
equal deleted inserted replaced
246:cb9dce5b0731 247:ff36727f3a10
10 def pkg_keys(): 10 def pkg_keys():
11 files.directory(path='/etc/apt/keyrings/') # for raspi 11 files.directory(path='/etc/apt/keyrings/') # for raspi
12 for url, name in [ 12 for url, name in [
13 ('https://repo.steampowered.com/steam/archive/stable/steam.gpg', 'steam.gpg'), 13 ('https://repo.steampowered.com/steam/archive/stable/steam.gpg', 'steam.gpg'),
14 ]: 14 ]:
15 files.download(src=url, dest=f'/etc/apt/keyrings/{name}') 15 files.download(src=url, dest=f'/usr/share/keyrings/{name}')
16 16
17 # vscode keeps making this, but I fetch my own 17 # vscode keeps making this, but I fetch my own
18 files.file(path='/etc/apt/trusted.gpg.d/microsoft.gpg', present=False) 18 files.file(path='/etc/apt/trusted.gpg.d/microsoft.gpg', present=False)
19 19
20 # and it makes this, which is redundant with my sources.list template line 20 # and it makes this, which is redundant with my sources.list template line
22 22
23 apt.packages(packages=['curl']) 23 apt.packages(packages=['curl'])
24 server.shell(commands=[ 24 server.shell(commands=[
25 f"curl -fsSL {url} | gpg --dearmor > /etc/apt/keyrings/{name}" for (url, name) in [ 25 f"curl -fsSL {url} | gpg --dearmor > /etc/apt/keyrings/{name}" for (url, name) in [
26 ('https://packages.microsoft.com/keys/microsoft.asc', 'ms.gpg'), 26 ('https://packages.microsoft.com/keys/microsoft.asc', 'ms.gpg'),
27 ('https://deb.nodesource.com/gpgkey/nodesource.gpg.key', 'nodesource-older.gpg'), # rm after everything's on 23.10
27 ('https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key', 'nodesource.gpg'), 28 ('https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key', 'nodesource.gpg'),
28 ('https://dl.google.com/linux/linux_signing_key.pub', 'chrome.gpg'), 29 ('https://dl.google.com/linux/linux_signing_key.pub', 'chrome.gpg'),
29 ('https://ftp-master.debian.org/keys/archive-key-11.asc', 'bullseye.gpg'), 30 ('https://ftp-master.debian.org/keys/archive-key-11.asc', 'bullseye.gpg'),
30 ('https://ftp-master.debian.org/keys/archive-key-11-security.asc', 'bullseye-security.gpg'), 31 ('https://ftp-master.debian.org/keys/archive-key-11-security.asc', 'bullseye-security.gpg'),
31 ('https://packages.cloud.google.com/apt/doc/apt-key.gpg', 'coral.gpg'), 32 ('https://packages.cloud.google.com/apt/doc/apt-key.gpg', 'coral.gpg'),