So you have your Raspberry Pi and you’ve played with it a bit and now you want to install some new software. Now usually you can just run apt-get and install ready-to-go packages. But, there are many instances where certain pieces of software are out of date or not available from the official Raspberry Pi Raspbian repositories. This can lead to a lot of really complex installation processes, with gcc, make, cmake, ./config, yak, bison and who knows what other wild beasts.
We wanted to make things easier.
The answer? apt.adafruit.com – our Raspbian package repository. Adding our repository to the list of repositories on your Raspberry Pi will allow you to easily install any of the packages we make available. Installing current versions of software like node.js and wiringpi is as easy as apt-get install node or apt-get install wiringpi. We are also constantly adding new custom packages for things like installing a PiTFT or turning your Raspberry Pi into a WiFi Access Point!
Adding the Repository
Adding the repository is as simple as running the following command from your Raspberry Pi.
- curl –sLS https://apt.adafruit.com/add | sudo bash
If you would like to see what the script is doing, you can open it in a web browser before running it.
Warning: apt.adafruit.com contains a new kernel for the PiTFT, and currently the PiTFT kernel will install if you run an apt-get upgrade. This should not be a problem unless you have a custom kernel installed. We are working on resolving this issue, and you can monitor this GitHub issue for updates.
Manually Adding the Repository
If you would like to manually add the repository to your Raspberry Pi, you can start by adding the apt.adafruit.com repository URL to your /etc/apt/sources.list.
- echo “deb http://apt.adafruit.com/raspbian/ wheezy main” | sudo tee —append /etc/apt/sources.list
Next, you can add the GPG key for apt.adafruit.com.
- wget –O – –q https://apt.adafruit.com/apt.adafruit.com.gpg.key | sudo apt-key add –
Finally, you need to download the new package lists from the repos.
- sudo apt–get update
Now that you have added the repo, you can install new packages from your Raspberry Pi’s terminal using sudo apt-get install package-name. The names found in bold are the names of the hosted packages available on apt.adafruit.com.
- node – The latest stable node.js from the node-arm project
- occi – Adafruit’s Raspberry Pi configuration utility.
- occidentalis – Adafruit’s Raspberry Pi bootstrap package. This is the package the Pi Finder installs when it starts the bootstrap process.
- adafruitwebide – Adafruit’s web based editor designed to help learn the Raspberry Pi and Beaglebone components, and more.
- adafruit-pitft-helper – A utility package that installs the required software & helps configure Adafruit’s line of PiTFT displays.
- wiringpi – A GPIO access library written in C for the BCM2835 used in the Raspberry Pi.
- adafruit-ap – A utility package that automatically configures your Raspberry Pi as a WiFi access point using hostapd.
- xinput-calibrator – A generic touchscreen calibration program for X.Org
- adafruit-io-gif – A utility that allows you to push animated GIFs to an adafruit.io connected Raspberry Pi.
Suggesting New Packages
If there is a new package or new version of a currently hosted package you would like to see available, please file an issue on GitHub and we will do our best to add the package.
If you have created Debian/Raspbian packages in the past, feel free to fork the GitHub repo and add your contribution to the packages directory. Submit a pull request with a detailed discription of your changes when you are ready, and we will take a look!