Installing a package (apt-get)

This recipe shows how new software packages are installed using the apt-get install command.

In addition to updating the software package catalog and upgrading the already installed software packages, the apt-get command can also be used to install new software packages.

In this recipe, the fortune-mod software package is installed using the apt-get install command. Other software packages can be installed using this same recipe; just replace the fortune-mod package with the software package that you would like to install.


It is always a good idea to first update the software catalog using the apt-get update command and then upgrade the existing software packages using the apt-get dist-upgrade command before you ...

Get Raspberry Pi Networking Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.