Installation (from source or via apt-get)

There are several ways to install tklpatch:

Installing via apt-get

The easiest way to install tklpatch and its dependencies to a TKL appliance (or Debian or a Debian based distro eg Ubuntu) are via the package manager. TKLPatch is in the TurnKey Linux package repository so if you're using TurnKey Linux installation is as easy as:

apt-get update
apt-get install tklpatch

If you're using a non TurnKey Linux system you will first need to install the turnkey-keyring and configure sources.list. Note that the steps below assume you are using Debian or Ubuntu.

Install turnkey-keyring:

wget https://github.com/turnkeylinux/turnkey-keyring/raw/master/turnkey-release-keyring.gpg
apt-key add turnkey-release-keyring.gpg

Add TurnKey repositories to your sources list (e.g., /etc/apt/sources.list):

deb http://archive.turnkeylinux.org/debian squeeze main

Installing from source

You will need to have make installed (as well as git if you are using the 2nd way). Your distro may vary but in Ubuntu/Debian based distros it/they can be installed by:

apt-get update
apt-get install make git-core # git-core only required if installing from git repo

There are two ways to get the source:

  1. Compressed archive (zip or tar)
    • then unzip or untar: unzip <filename.zip> or tar xvfz <filename.tar.gz>
  2. Git (includes commit history):
git clone git://github.com/turnkeylinux/tklpatch.git

To install, cd into the tklpatch directory, then run:

make install

Dependencies: to use all of tklpatch's functionality you'll need to install these dependencies

apt-get install squashfs-tools genisoimage tar gzip