Reduce doxygen footprint on debian

When you install doxygen on a recent debian OS, it will also install doxygen-latex, which bloats the footprint (on 32-bit wheezy) from 7.5 to 963 MB.
To avoid that once and for all, pin the doxygen-latex package with a negative priority, thereby preventing it from ever installing:

sudo sh -c 'cat > /etc/apt/preferences.d/doxygen-latex'
Package: doxygen-latex
Pin: version *
Pin-Priority: -1

To be precise, this trick lowers the requirement for doxygen from 633 MB download and 963 MB disk space down to 2.5 MB download and 7.5 MB disk space.

About paolog

homo technologicus cynicus
This entry was posted in Howtos. Bookmark the permalink.

2 Responses to Reduce doxygen footprint on debian

  1. Subhashish says:

    Thanks for that nice trick. Saves the trouble of installing inessential packages.

  2. paolog says:

    Please note that this tip applies only to the Debian packages for doxygen with version strictly lower than 1.8.5, because version 1.8.5-1 of the package closed bug #720493 ( and now doxygen merely “suggests” doxygen-latex rather than “recommending” it.
    In practice, if you are installing doxygen on Debian Stable (version 7 i.e. Wheezy) the tip is useful, if you are installing now on Debian unstable (version 8 i.e. Jessie) you don’t need to worry.

Leave a Reply

Your email address will not be published. Required fields are marked *