Expand description
The root scripts behind the installs on Linux: the vendors’ apt and rpm repositories, and the distributions’ own packages. Every repository’s signing key is checked against its fingerprint, pinned here, before apt or dnf trusts it; no vendor install script runs as root.
Constants§
- AWS_
CLI_ KEY_ FINGERPRINT - Its fingerprint, as that page gives it (FB5D B77F D5C1 18B8 0511 ADA8 A631 0ACC 4672 475C).
Functions§
- awscli_
script - AWS CLI v2 from Amazon’s official bundle, unpacked and installed from a private directory.
The distro
awsclipackage is v1, which has noaws login(the app needs v2 >= 2.32).uname -misx86_64oraarch64, matching the URLs. The bundle must carry a valid signature (its.sig) by AWS’s key, embedded here (AWS_CLI_KEY): gpgv, with only that key, must report it by its fingerprint. Thenunzip -tchecks the archive is whole before anything in it runs. - azurecli_
script - Microsoft’s azure-cli apt repository for this distro’s codename, then
azure-cli: what Microsoft’s install script (aka.ms/InstallAzureCLIDeb) sets up, without running that script as root. - docker_
dnf_ script - Docker Engine on Fedora from Docker’s own repository, its key pinned, then its service on;
the user joins the
dockergroup as on Debian. - docker_
script - Docker Engine, then the user into the
dockergroup so the CLI can reach the daemon without root (pkexec runs as root, so$USERthere is root: the name comes from the app). The group applies from the next login. - gcloud_
script - Google Cloud’s apt repository, then
google-cloud-cli(gcloud), system-wide: what Google documents for Debian and Ubuntu, in place of its install script. - libvirt_
dnf_ script - libvirt on Fedora with what vagrant-libvirt builds against (libvirt’s headers, a C compiler,
pkg-config, Ruby’s headers) and the programs its VMs need beside it (virtiofsd, for the shared
folders), its service on, then the user into the
libvirtgroup (and the KVM device’s). - libvirt_
script - libvirt, with what
vagrant plugin install vagrant-libvirtcompiles against: libvirt’s headers (libvirt-dev), a C compiler and make (build-essential),pkg-config, and Ruby’s headers for a distribution’s Vagrant (which builds on the system Ruby). Without them the plugin’s install fails building its native extension. With the programs its VMs need beside it (apt_install_with_helpers). Then the user joins thelibvirtgroup (andkvm, where the distribution has one), so Vagrant reachesqemu:///systemand/dev/kvmwithout root; the groups apply from the next login. - qemu_
dnf_ script - QEMU and its disk tools on Fedora, with the programs its VMs need beside it (
genisoimagefor vagrant-qemu’s cloud-init seeds,virtiofsdfor its shared folders), then the user into the KVM device’s group. - qemu_
script - QEMU and its disk tools, with the programs its VMs need beside it
(
apt_install_with_helpers:mkisofs, virtiofsd), then the user into the group/dev/kvmbelongs to, so vagrant-qemu boots VMs with KVM (accel=kvm, as Vagrantfiles ask on Linux) without root; the group applies from the next login. - terraform_
dnf_ script - Terraform on Fedora from the same repository.
- terraform_
script - HashiCorp’s apt repo, then terraform.
- vagrant_
dnf_ script - Vagrant on Fedora from HashiCorp’s rpm repository (the distribution has none).
- vagrant_
script - HashiCorp’s apt repo, then Vagrant: the distributions’ own package is older than projects need (Debian 13 ships 2.3.8; Vagrantfiles commonly need 2.4.0 or later), so a setup that installed it left a machine that refused them.
- virtualbox_
dnf_ script - VirtualBox on Fedora from RPM Fusion (Oracle’s own repository lags the Fedora releases by
months), its kernel module built here for the running kernel (akmods),
then the user into
vboxusers. RPM Fusion’s release package carries its signing key, which dnf imports as it installs it. - virtualbox_
script - The distro’s own
virtualboxwhen it has one (Ubuntu), else Oracle’s apt repo and its newestvirtualbox-X.Y(Debian ships none in main, soapt-get install virtualboxfailed); with what builds its kernel driver (KERNEL_BUILD), and without its recommends: a PDF viewer, Qt’s translations and the newest kernel’s headers (and so that kernel) came with them, which a headless VirtualBox that Vagrant drives never uses. When the running kernel’s headers were gone, it says the driver waits for a restart. - vmware_
utility_ script - HashiCorp’s apt repo, then the Vagrant VMware Utility, whose package generates its
certificates and enables and starts its service, with
net-tools: vagrant-vmware-desktop reads the routing table with itsnetstatbefore it makes a private network, and Debian 13 and recent Ubuntu ship none (crate::providers::vmware_utility).--reinstall: an install that is there already has its package configured again, which restarts a service that had stopped.