$ sudo apt update                    # refresh the list of available packages
$ sudo apt install nginx             # install a package
$ sudo apt remove nginx              # remove it, keep its config files
$ sudo apt purge nginx               # remove it AND its config files
