Uninstall a package and back it up to a specific directory

tlmgr remove

  • Uninstall TeX Live packages.
    By default, removed packages will be backed up to `./tlpkg/backups` under the TL installation directory.
    More information: <https://www.tug.org/texlive/tlmgr.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo tlmgr remove --backupdir {{path/to/directory}} {{package}}

click the source code to copy install tlmgr remove on any operating system with command-not-found.com