TurnKey Development Testing Apt Repo

This repo contains development packages for testing during the TurnKey Linux development cycle.

This repo is volatile and things may break or be broken at any time. It is HIGHLY recommended that this repo only be used within development. For stability and security, Production servers should ONLY ever use the default TurnKey repos. You have been warned!

The below instructions assume a clean fresh TurnKey install. Once this is configured, when you install or upgrade packages, anything hosted in this repo will always take precedence over the default TurnKey packages.

Note: This repo is hosted on my private AWS S3 account. Please feel free to use it, but play nice and don't abuse it.

Any feedback regarding this repo or the packages contained should go directly to me: jeremy AT turnkey linux.org


To use this repo:

Add the testing repo to your sources list

cat > /etc/apt/sources.list.d/tkl-dev-test.list <<EOF
deb http://dev-apt.jeremydavis.org stretch main

Update apt preferences file

The default TurnKey apt preferences file will need tweaking as the TurnKey repo is pinned with a value of 999 (the highest possible without forcing downgrades). This changes 999 to 850 (which should still be high enough for our purposes):

sed -i "s|999|850|" /etc/apt/preferences

Then add a new apt preferences file. This will pin this repo at 900:

cat > /etc/apt/preferences.d/tkl-dev-test.pref <<EOF
Package: *
Pin: origin "dev-apt.jeremydavis.org"
Pin-Priority: 900


Add repo GPG key

Finally, you'll need to add the key which the packages are signed with:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3EA1F6C0596F1625

If all goes well, you should see the following:

gpg: requesting key 596F1625 from hkp server keyserver.ubuntu.com
gpg: key 596F1625: public key "TurnKey Dev Testing " imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

Update your packages list and go!

Now just update your packages list and you should be good to go!

apt-get update

Rolling back to stable

As noted above, this repo should only be used on testing servers. A significant reason for that is that the Debian package management system is not really designed to let you roll back package updates. So returning to default is not supported. However, it is generally possible. Potentially, there are a number of ways to do this, but I think this is the simplest. Assuming that you added the new prefs file as I suggested, first remove the 'tkl-dev-test' repo and pin (prefrences) files:

rm /etc/apt/preferences.d/tkl-dev-test.pref
rm /etc/apt/sources.list.d/tkl-dev-test.list

Then temporarily give the offical TurnKey repos a pin of 1001 (which allows downgrades). Then do an 'apt-get upgrade' to downgrade back to stable TurnKey packages. Note this will also upgrade other Debian software as well.

sed -i "s|850|1001|" /etc/apt/preferences
apt-get update
apt-get upgrade

Once you are done, don't forget to return the TurnKey pin preferences back to the original 999.:

sed -i "s|1001|999|" /etc/apt/preferences

For reference, please see the default TurnKey /etc/apt/preferences file below:

Package: *
Pin: release o=turnkeylinux
Pin-Priority: 999