Ubuntu – How to remove a deb without removing its dependencies

apt

I would like to install the most recent version of boto, which I do via python setup.py install

Yet when I try to remove the old version the following packages also get removed:

apt-get remove python-boto
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  cloud-init cloud-utils euca2ools python-boto

How can I tell the package manager to remove boto, and them mark it as installed externally (or something like that) so that apt won't try to fix the missing dependency?

Thank you,
Maxim.

Best Answer

You can create a dummy .deb package using the equivs utility, it will provide the dependency without installing any files. Then just replace the currently installed package to the dummy version using dpkg -i fake.deb.