apt Command Generator
Generate apt commands for the high-level Debian/Ubuntu package manager
Getting Started with apt
## What is apt?
`apt` is the high-level package manager for Debian and Ubuntu. It installs, removes, upgrades, and searches software packages from configured repositories. Most operations require `sudo` because they modify system state.
## How to Use
1. **Pick an action**: Choose a subcommand like `install`, `remove`, `update`, or `upgrade`. 2. **Add packages**: For `install`/`remove`/`show`/`search`, enter package names (space- or comma-separated). 3. **Toggle options**: Use `-y` to skip confirmation prompts. 4. **Copy & Run**: Copy the generated command into your terminal (prefix with `sudo` when needed).
Common Subcommands & Options
### `install` / `remove` Install or remove packages by name: `apt install nginx git curl`.
### `update` Refresh the local package index from repositories. Run this before `upgrade` or `install` to get the latest versions.
### `upgrade` Upgrade all installed packages to their newest versions.
### `search` / `show` Search available packages or display detailed info about one package.
### `autoremove` / `clean` `autoremove` removes orphaned dependencies; `clean` clears the downloaded package cache.
### `-y` Assume yes Automatically answer yes to prompts — useful in scripts and CI.
### `--fix-broken` Repair broken dependencies before completing the requested action.
### `--no-install-recommends` Skip "Recommended" packages and install only hard dependencies.
▶What is the difference between apt and apt-get?
▶Why do I need sudo?
▶How do I install a specific version?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee