How to install packages without documentation?

In these cases, the -doc packages are not hard dependencies but recommendations. You can make apt not intall these by using:

sudo apt-get --no-install-recommends install texlive-latex-extra