| name | apt-package-manager |
| description | Search, install, and verify Debian or Ubuntu packages with apt-get in the container. |
Apt Package Manager
Use this skill when a task requires installing or verifying Linux packages in this Ubuntu environment.
Notes
- Shell commands already run as
root, so sudo is unnecessary.
- Prefer
apt-get over interactive frontends such as apt.
- Install only the specific packages you need for the task.
- Do not run broad upgrade commands such as
apt-get upgrade or dist-upgrade unless the task explicitly requires them.
Common commands
Refresh package metadata:
apt-get update
Search for package names:
apt-cache search "<keyword>"
apt-cache policy <package>
Install one or more packages:
apt-get install -y <package>
apt-get install -y <package1> <package2>
Verify installation:
command -v <binary>
dpkg -s <package>
<binary> --version
Suggested workflow
- Identify the package name with
apt-cache search if needed.
- Run
apt-get update before the install if package metadata may be stale.
- Install the minimal package set with
apt-get install -y.
- Verify the installed binary or package state before finishing.