Status License Language Bug tracking VCS Latest release
Deprecated MIT Python email salsa.debian.org hardlink_0.1.2.tar.gz (GPG, Feb 2012)
Stable MIT C email salsa.debian.org hardlink_0.3.0.tar.xz (GPG, Sep 2014)

hardlink is a tool which replaces multiple copies of a file with hardlinks. Inspiration came from http://code.google.com/p/hardlinkpy/, but no code has been used. It was rewritten from scratch because hardlinkpy code was not very readable and written against old Python versions. The program requires Python 2.5 or newer, and should work with Python 3 after running 2to3 on it.

Note: Fedora provides a different software under the hardlink name, written in C. Before complaining here about a bug in a hardlink package installed from your distribution, first check that it is indeed this program, and not the one provided by Fedora.


See in the table above for the current releases. Older releases are available as well (just change the version number as needed in another link), but there are no links here.


To install hardlink into /usr, run make install.

Differences to hardlinkpy

For users of hardlinkpy, several things are different. One of the most important changes is the renaming of all –foo-ignore arguments to –ignore-foo ones. This is more similar to the naming of options in GNU programs.

The option –reverse has been renamed to –minimize. The option –max has been renamed to –maximize.

At the moment, output is different. This may change at a later point.


hardlink is published under the terms of the MIT license. See the source code for more information. This file is subject to the same licensing terms.