Recommend packag manager hardening
Privacy Guides Community [Unofficial]
May 22, 2026
github.com/secureblue/secureblue
files/scripts/httpsmirrors.sh
e74193b11
#!/usr/bin/env bash
# SPDX-FileCopyrightText: Copyright 2025-2026 The Secureblue Authors
#
# SPDX-License-Identifier: Apache-2.0
set -euo pipefail
for repo in /etc/yum.repos.d/*.repo; do
sed -i 's/metalink?/metalink?protocol=https\&/g' "$repo"
done
Discussion in the ATmosphere