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 http://code.turnkeylinux.org/turnkey-keyring/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/ubuntu lucid main deb http://archive.turnkeylinux.org/ubuntu lucid universe
Note for install on legacy TKL 8.04/Hardy build: Replace lucid with hardy in the above.
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:
-
Compressed archive (zip or tar)
- then unzip or untar: unzip <filename.zip> or tar xvfz <filename.tar.gz>
- 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
Comments
Installation on Gentoo
For gentoo the genisoimage is available in the cdrkit ebuild, so gentoo's equivalent is:
tar and gzip are likely to be allready installed obviously :-)
No Ubuntu 11.04 or 11.10?
I clicked over to http://archive.turnkeylinux.org/ubuntu/dists/ and only see lucid and hardy. Is there any support of either of the 2011 releases of ubuntu?
Not officially
But it should work ok.
I built it from source on a 64-bit machine and it worked ok, sort of - had a few strange things happen with patches (don't recall the details, was a while ago now). So TBH seeing as TKL is only available as LTS (ie 8.04, 10.04 and to be 12.04) I now do all my patching in a TKL Core VM. Leads to less chance of strange things happening.