Source
Code
TLP’s source code is hosted on GitHub. The repository holds the following branches:
main – current development – releases are tagged with VERSION
debian/current – Debian/Ubuntu packaging for current releases (not identical with the official distribution packages)
debian/legacy – Debian/Ubuntu packaging for old releases (deprecated, unmaintained)
Obtain the current development version with
git clone https://github.com/linrunner/TLP.git tlp.git
cd tlp.git
Checkout the main branch
git checkout main
or a release version
git checkout VERSION
Note
Please base your pull requests on the main branch.
The current changelog for the development version is here.
Download release tarballs at the Release page.
Building Packages
Debian / Ubuntu
Install the required package
packaging-dev – Metapackage providing common packaging tools
Add a Git worktree for the debian/current branch
git worktree add worktree/debian-current debian/current
Symlink worktree to debian/
ln -s worktree/debianc-urrent/debian debian
Edit debian/changelog to your needs (optional).
Build binary packages with
dpkg-buildpackage -b -tc -i.git
Arch Linux
Packages tracking the main branch are available in the AUR:
Installing from Source
Checkout the main branch (see Code).
In the tlp.git/ directory
make install make install-man systemctl enable tlp.service
Note
Check Makefile options to customize make install to your distribution’s requirements.
Warning
Depending on your distribution’s specifics make install may not produce a working TLP installation, thus your mileage may vary.