Installing packages
This guide covers the common package workflow on Debian and Ubuntu systems. The package commands use apt and require root.
1. Update the package lists
Refresh the list of available packages first:
sudo abstrax package update
2. Search for a package
abstrax package search nginx
NAME DESCRIPTION
nginx small, powerful, scalable web/proxy server
nginx-core nginx web/proxy server (standard version)
3. Install a package
sudo abstrax package install nginx
To install a specific version:
sudo abstrax package install nginx --version=1.24.0-1ubuntu1
4. Check what is installed
abstrax package info nginx
Name: nginx
Version: 1.24.0-1ubuntu1
Architecture: amd64
Status: installed
Description: small, powerful, scalable web/proxy server
List all installed packages:
abstrax package list
5. Apply upgrades
Upgrade everything:
sudo abstrax package upgrade
Apply security updates only:
sudo abstrax package upgrade --security-only
You can preview an upgrade without applying it:
sudo abstrax package upgrade --dry-run
6. Remove a package
sudo abstrax package remove nginx
To remove its configuration files as well:
sudo abstrax package remove nginx --purge
Notes
- These commands only work where
aptis available. Runabstrax doctorto confirm the detected package manager isapt. - Use
--verboseto see the underlyingaptcommand Abstrax runs.