Files
apf_portal/docs/setup/scripts/10-base-packages.sh
T
Julien Gautier 05faeca05d
CI / commits (pull_request) Successful in 3m31s
CI / scan (pull_request) Successful in 3m40s
CI / check (pull_request) Successful in 3m54s
CI / a11y (pull_request) Successful in 3m26s
Docs site / build (pull_request) Successful in 3m32s
CI / perf (pull_request) Successful in 7m23s
docs(setup): drop deprecated apt packages on Debian 13 trixie
10-base-packages.sh was failing on a fresh Trixie VM with
`E: Impossible de trouver le paquet software-properties-common`.

The package isn't shipped on Trixie anymore, but it was also never
needed: 50-docker.sh writes /etc/apt/sources.list.d/docker.list
manually and never invokes add-apt-repository. apt-transport-https
is a transitional no-op since apt 1.5 (2018, native HTTPS). lsb-release
isn't called anywhere either - the codename detection in 50-docker.sh
reads /etc/os-release directly.

Drop all three from the install list. The minimal set is now what's
actually consumed downstream: curl wget git ca-certificates gnupg
build-essential pkg-config. Doc table descriptor updated accordingly.

Inline comment explains why each kept package is there and why the
three dropped ones were not just removed but deliberately excluded -
so a future drive-by addition doesn't reintroduce them.
2026-05-24 20:58:38 +02:00

32 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
# apt update + install base packages every other script assumes.
set -euo pipefail
# shellcheck source=./lib.sh
source "$(cd "$(dirname "$0")" && pwd)/lib.sh"
require_debian
require_not_root
log "apt update"
sudo apt-get update -qq
# Minimal set actually consumed by the other scripts:
# - curl/wget used by 40-node.sh (nvm install), 50-docker.sh (gpg key)
# and the .NET appendix (wget packages-microsoft-prod.deb)
# - git every other script that touches the repo
# - ca-certs HTTPS over apt + curl/wget
# - gnupg verifying the Docker apt repo key
# - build-essential / pkg-config — native deps during pnpm install
#
# Deliberately NOT installed (deprecated or unused on Debian 13 Trixie):
# - software-properties-common: drops `add-apt-repository`, which we
# don't use (50-docker.sh writes /etc/apt/sources.list.d/docker.list
# manually). Also failing to resolve on a fresh Trixie install.
# - apt-transport-https: apt has had native HTTPS support since 1.5 (2018),
# the transitional package isn't needed and is intermittently absent.
# - lsb-release: shell scripts read /etc/os-release directly (see 50-docker.sh).
apt_install \
curl wget git ca-certificates gnupg \
build-essential pkg-config
ok "Base packages ready."