title: APT Repository
linktitle: aptrepo
parent: TOP
ctime: 2009-12-10

Repositories: [[aptrepo]].

# Introduction

TMI maintains an APT repository containing some of the code available from this
website.  We use this repository in-house, and it is fairly well tested on 32
and 64 bit Intel and AMD based workstations running Ubuntu Hardy and Ubuntu
Karmic.

# How to use

## Step 1 - Add the backports repository

Ubuntu Hardy users need to activate the hardy-backports repository, as our
`cp210x-module-dkms` package requires a newer dkms than is available otherwise.
Ubuntu Karmic users can skip this step.  You can also activate hardy-backports
from the GUI.

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
    cat <<+EOF+ | sudo tee -a /etc/apt/sources.list
    deb http://us.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
    +EOF+

## Step 2 - Adding the TMI repository to the sources list

    cat <<+EOF+ | sudo tee /etc/apt/sources.list.d/tmi.list
    # TMI repository
    deb http://repo.titaniummirror.com/ubuntu hardy main
    deb-src http://repo.titaniummirror.com/ubuntu hardy main
    +EOF+
    sudo apt-get update

## Step 2 - Adding the TMI package key

When you issued `apt-get update` above, you saw a key warning.  Resolve future
key related warning messages by installing `tmi-keyring`.

    sudo apt-get install --yes --allow-unauthenticated tmi-keyring

You should now verify the installed key.  Run the `sudo apt-key list | less`
and look for the following two lines, ensuring your output matches that below:

    pub   1024D/E9BE0373 2009-12-08
    uid                  TMI Packages <EMAILADDR>

The email address above is 'com dot titaniummirror at pkgs', in reverse.

## Step 3 - Install packages

You can now install packages from the TMI repository.  For example:

* Install our [[tinyos]] development suite: `sudo apt-get install tinyos`

* Install our [[cp210x]] driver: `sudo apt-get install cp210x-module-dkms`
