liveBook · Manning

Apt

As explained in Road to Kubernetes

APT is a package-management system and command-line tool for installing and managing software packages on Debian-based Linux systems.

A fresh Ubuntu virtual machine needs software before it can serve a website. APT is the system package manager used to install that software. After connecting by SSH, run sudo apt update to refresh the list of available packages before installing anything. section 3.1.2 section 3.2

Install a web server

Run sudo apt update, then sudo apt install nginx. Confirm the installation prompt with y; APT installs NGINX and its dependencies. Open the server’s public IP address in a browser to check for the default NGINX page. Adding -y to the install command accepts prompts automatically. section 3.2

The same workflow prepares a Python application: sudo apt install python3 python3-pip python3-venv build-essential -y installs the Python command, pip, virtual-environment support, and compilation tools. APT supplies these system packages; pip then installs the application’s Python requirements into its virtual environment. section 3.4.1

Listing 7.2 Installing Docker Compose on Ubuntu
sudo apt-get update
sudo apt-get install docker-compose-plugin
docker compose --version

The Docker Compose installation uses apt-get update and apt-get install docker-compose-plugin, then checks the result with docker compose --version. section 7.1.3

How Road to Kubernetes covers it

How deep it goes
Shows an update-then-install procedure, installation prompts, and package purposes; does not explain APT internals.
Examples
Uses commands to install NGINX, Python development packages, and the Docker Compose plugin.
What it assumes
Assumes access to an Ubuntu server command line after an SSH connection; introduces the update-before-install routine.
What you can do after
Operate/configure it to refresh available packages and install the software required by these Ubuntu deployments.
How it connects
Connects system packages to SSH-based deployment, NGINX, Python virtual environments, pip, and Docker Compose.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Road to Kubernetes. The section links point to the parts of the book it draws on.