apt-get
SystemFundamentalsReference onlyDebian/Ubuntu package tool (script-friendly)
Name: apt-get = APT get
This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.
Description
apt-get is APT's classic command-line tool. It does much the same as apt but its output is stable across versions, so it suits scripts and Dockerfiles, usually with -y.
Syntax
apt-get [OPTION]... COMMANDCommon options
| update | Refresh the package lists |
| upgrade | Upgrade every installed package |
| install / remove | Install / remove packages |
| purge | Remove including config files |
| autoremove | Remove unneeded dependencies |
| clean | Empty the cache of downloaded packages |
| -y / --yes | Assume yes |
| --no-install-recommends | Install only what is required, not recommended packages |
| -s / --simulate | Show what would happen without doing it |
Examples
$ sudo apt-get install -y curl
Install without prompting (for scripts)
Explain