Ubuntu – How to fake a package version installed


Being an early adopter and using 11.04 daily builds I sometimes meet a situation when some packages require earlier versions of other packages than those I have installed. Usually newer (but refused) versions of needed packages provide all the functionality of their older versions.

If I use dpkg -i --force-depends-version to install dependent packages everything works fine, I've never seen a problem.

Instead of manually downloading and installing every package, can I just make the system pretend there is a specific package version installed when there is a newer? Or is there a --force-depends-version key equivalent for apt-get?

Best Answer

You can use the equivs package to create a dummy package to fake a given package being installed. Some instructions here.

Related Question