PDA

View Full Version : [SOLVED] Install acutex without any dependencies or remove it from the update list



5au1
October 26th, 2011, 09:16 PM
Hello,

I installed Texlive 2010 from a CD together with Auctex and Reftex (both compiled from source). Now the update manager tells me that there is an update available for Auctex, however when marked for installation it tries to install the whole texlive system.

I tried the command

sudo apt-get install --no-install-recommends auctex
but there are two packages that still get selected (preview-latex-style tex-common).

Is there a way to mark Auctex as a "local or absolete" in Synaptic? or install it without any dependencies?

Thanks in advance,

Saul

Toz
October 27th, 2011, 04:41 AM
Try creating the file /etc/apt/preferences.d/no_auctex with the following content:


Package: auctex
Pin: version *
Pin-Priority: -100
This should pin auctex to its current version and remove it from apt updates.

5au1
October 27th, 2011, 04:53 PM
Thanks for the reply,

Created the file, reloaded synaptic, but auctex remains in the update list

5au1
October 27th, 2011, 06:38 PM
The solution was simpler than I thought :P. Just added:

> sudo aptitude install auctex=
The = option indicates aptitude to keep the current version (see man aptitude).
By the way this doesn't remove the package from the synaptic's list, however to do that you just have to select Package > Block version

Cheers