How to Install Games and Other Software on the Raspberry Pi
Part of the Raspberry Pi For Dummies Cheat Sheet
Lots of free Linux software is available for the Raspberry Pi, and you can install it in two different ways. The most obvious and user-friendly is to use the Pi Store in the desktop environment, but a much wider range of software is available if you use the Linux shell.
Here's how you can find, download, and install software packages using the shell:
Log in to your Raspberry Pi, but don't enter the desktop environment.
Alternatively, if you're in the desktop environment, double-click the LXTerminal icon to open a shell session.
The first step in installing software is to update the repository, which is the list of packages the package manager knows about. You do that by entering the following command: sudo apt-get update.
The apt cache contains an index of all the software packages available, and you can search it to find the software you want. For example, you can find all the games by using sudo apt-cache search game | less.
From this listing, find a package you want to install. Each line has the name of a package, a hyphen, and then a description of the package.
Use the up and down cursor keys (or Page Up and Page Down keys) to move through the list of files. Press Q to finish browsing the list.
In the listing, the bit before the hyphen tells you the name of the package, which is what you need to know to be able to install it. That might not be the same as the game's title or its popular name.
When you know the name of the package you would like to install, the following command downloads it from the Internet and installs it, together with any other packages it needs to work correctly (known as dependencies): sudo apt-get install penguinspuzzle.
The last bit (penguinspuzzle) is the name of a package found by searching the cache.
Your software is now installed! You should be able to run it either from the shell by entering its name (for example, penguinspuzzle), or through your Programs menu in the desktop environment.