apt-get Command Generator
Generate apt-get commands for the low-level Debian/Ubuntu package manager
Getting Started with apt-get
## What is apt-get?
`apt-get` is the low-level, script-stable package manager for Debian and Ubuntu. It exposes operations that `apt` hides behind a friendlier UI, including `dist-upgrade`, `source`, and `build-dep`. Most commands need `sudo`.
## How to Use
1. **Pick an action**: Choose a subcommand — `install`, `remove`, `update`, `upgrade`, `dist-upgrade`, `autoremove`, `clean`, `source`, or `build-dep`. 2. **Add packages**: For `install`, `remove`, `source`, and `build-dep`, enter one or more package names. 3. **Toggle options**: `-y`, `--purge`, `--install-recommends`, `--fix-missing`. 4. **Copy & Run**: Copy the command and prefix with `sudo` when modifying the system.
Common Subcommands & Options
### `install` / `remove` Install or remove packages: `apt-get install nginx git curl`.
### `update` Refresh the package index. Always run before `upgrade` or `install`.
### `upgrade` / `dist-upgrade` `upgrade` installs the newest versions of all packages without removing anything. `dist-upgrade` also handles changing dependencies and may remove or add packages — required for major release upgrades.
### `autoremove` / `clean` `autoremove` removes unused dependencies; `clean` deletes downloaded `.deb` files from the cache.
### `source` / `build-dep` `source` downloads a package's source code; `build-dep` installs everything needed to compile it.
### `-y` Assume yes Skip confirmation prompts.
### `--purge` Also remove configuration files when removing a package.
### `--install-recommends` / `--fix-missing` Treat "Recommended" packages as required, or ignore missing files in a partially-failed download.
▶When should I use apt-get instead of apt?
▶What does dist-upgrade do that upgrade does not?
▶Why do I need sudo?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee