Apt-get is an advanced packaging tool for Ubuntu and other Debian-based Linux distribution, used primarily to install packages into the system.
Running the following apt-get command will automatically download and install the package and all it's dependencies.
sudo apt-get install package-name
If you are for some reason want apt-get to just download the packages and dependencies without installing it, simply add
-d switch to the command as the following.
sudo apt-get install -d package-name
To confirm that the package is not installed, you're presented with the following output when the command done executing.
Download complete and in download only mode
|Ubuntu 16.04 LTS (Xenial Xerus)|
|Ubuntu 16.10 (Yakkety Yak)|
|Ubuntu 17.04 (Zesty Zapus)|
|Ubuntu 17.10 (Artful Aardvark)|
|Ubuntu 18.04 LTS (Bionic Beaver)|
|Ubuntu 18.10 (Cosmic Cuttlefish)|
|Ubuntu 19.04 (Disco Dingo)|
Share your thoughts, suggest corrections or just say Hi. Login not required.