Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

As Ubuntu's TeXLive is quite old (version 2009), I always hear TeX people recommending installing the latest TeXLive directly from CTAN. (Yes, I need the same package mentioned in that question.) I did this, and installed TeXLive 2011.

Now some packages I need to install (e.g. gummi) depend on Ubuntu's TeXLive packages. How can I prevent Ubuntu's TeXLive packages from being installed since I already have a manually installed TeXLive?

share|improve this question
add comment

2 Answers

dpkg can ignore any conflicts and dependencyes.

dpkg -i --ignore-depends=package1,package2 targetpackage.deb

But I cant see solution for apt-get for now.

share|improve this answer
    
From reading the man page, it seems to me that this option will only ignore packages that cannot be downloaded for some reason. So it will still install texlive unless I unplug the network cable (or even then if some texlive packages happen to have already been downloaded but not installed). –  Szabolcs Nov 6 '11 at 17:29
    
You're right. I'll update my answer. –  PocketSam Nov 8 '11 at 3:56
add comment

PocketSam is correct, you cannot make apt do this; you need to mess around with dpkg directly.

You will need to manually download the gummi .deb file:

apt-get download gummi

Then, manually install the dependencies from gummi using apt-get, except for TeXLive.

Finally, you can use dpkg --ignore-depends to install gummi.

Beware that this is error-prone, and if you attempt to do an apt-get upgrade of gummi, it will probably pull in the old TeXLive.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.