Files
dotfiles/install.d/11-apt.sh
Andrejus b62a6c00f9 chore(install): optimize logging, speed, cleanup
- Version logged after [PASS] (not before) across all scripts
- Pre-cache brew package lists with log_info progress
- Read brew version from git describe cache (skip Ruby startup)
- Batch mise use -g calls (single invocation for all tools)
- Replace mise verify step with mise ls --current
- Parallel vim plugin pulls
- Skip donut compile when binary is fresh
- Pre-check macOS defaults before writing (skip fsync when unchanged)
- Pre-check dock state before dockutil calls
- Remove redundant 'already installed' skip logs
- Remove meetingbar and wispr-flow install scripts
- Renumber scripts to fill gaps

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 18:09:38 +00:00

35 lines
652 B
Bash
Executable File

#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# (distros with apt only) Install core apt packages.
#
# apt only
[[ "$DOTS_PKG" != "apt" ]] && { log_skip "Not using apt"; return 0; }
apt_packages=(
build-essential
ca-certificates
curl
gnupg
gnupg2
wget
)
sudo apt-get update -qq
# Skip install if all packages already installed
if dpkg -s "${apt_packages[@]}" &>/dev/null; then
apt --version | log_quote
return 0
fi
sudo apt-get install -qq "${apt_packages[@]}"
unset apt_packages
log_pass "apt packages installed"
apt --version | log_quote