Date: 6/5/2017
Package management
Linux System Administration

Installing Ubuntu packages with APT
Start kvm2 VM and login to its console via virsh:
virsh start kvm2
virsh console kvm2
Try executing command make, which doesn't exist on the VM yet:
The system error comes:
    The program 'make' is currently not installed. You can install it by typing: sudo apt-get install make
Install recommended package make by running apt-get install:
apt-get install make
You should be able to run command make now.

Simulate package installation by using option -s:
apt-get install -s netpbm
Notice the prerequisite library package that would get installed, libnetpbm10
Download the package without installation:
apt-get install -d netpbm
Notice the deb files with the packages in the apt cache directory:
ls -l /var/cache/apt/archives
Install the package:
apt-get install netpbm

Updating all the installed packages
apt-get update 
apt-get upgrade 

The APT repository and software folders are defined in file
/etc/apt/sources.list and optionally in directory /etc/apt/sources.list.d

Take me to the Course Website