Blocking individual packages when using apt
Posted on 01, Mar 2014
I wanted to install
so I could compile
, however this package depends on
, which together add about 100 MB to the required download.
This is not usually a problem, however I was mobile, and suffering from unreliable internet.
I feel confident that not having these two packages will not effect the integrity of the
installation; they can be blocked individually in
Package: qt4-designer Pin: origin "" Pin-Priority: -1 Package: qt4-doc Pin: origin "" Pin-Priority: -1
Setting the origin to nothing ensures that they cannot be downloaded, and a negative priority means we really will ignore them. Running:
sudo apt-get install libsoqt4-dev
sees the installation to completion without these dependencies and the large (in context) download.
There is no need to run
or anything like that.
Configuring a freecad compilation with
(on Debian) does not complain about missing
Instead during compilation lots of errors relating to
undefined reference to SoQtViewer
Copyright, Christopher Poole 2008-2016.