0

I have installed TeX Live manually and want to prevent the installation of any of the texlive* packages.

There is this question How to prevent updating of a specific package? for preventing updating/upgrading. However, I can still install the package with apt install <package> if it wasn't installed already. However, in How to forbid a specific package to be installed? there are two answers which say that holding the package should prevent installation altogether. So should this work?

Anyway, the top answer in the latter posted question as well as in How to prevent a package from being installed says to use APT pinning:

Package: texlive*
Pin: origin ""
Pin-Priority: -1

However, this doesn't work for me. I had a look at the manpages http://manpages.ubuntu.com/manpages/cosmic/en/man5/apt_preferences.5.html which also features the following example:

Package: *
Pin: origin ""
Pin-Priority: 999

So Pin: origin "" does nothing for me. I have to use Pin: release *

Package: texlive*
Pin: release *
Pin-Priority: -1

Only then apt install will prevent the installation:

E: Package 'texlive' has no installation candidate

Why doesn't holding the package and Pin: origin "" work?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.