The above is for ubuntu, quantal quetzal (12.10), replace this with your own distribution and distribution version codename.

To have apt prefer packages from linux-sunxi over the distributions own, you need to set linux-sunxi to a higher preference than the standard packages. Create /etc/apt/preferences.d/00-linux-sunxi with the following content:

Package: *
Pin: origin packages.linux-sunxi.org
Pin-Priority: 990

You should now be able to apt-get install packages from this repository. If you want to re-install packages but this time round from the sunxi repos, use: