This library is called repackage. It allows you to repackage an archive, i.e. .tar.gz to .tar.xz format.
Robert A. Heiler
GPL-2.0