Linux – the easiest way to create a virtual package in debian

aptitudedebiandpkglinuxpackage-management

  1. What is the easiest way to create a "virtual package" in debian?

    My problem: I have compiled/installed mysql from source and now need to tell other packages that mysql is already installed (otherwise they will also try to install mysql…). I searched the internet but did not find a quick answer to this question.

  2. And is there an easy command to tell aptitude to install something, but exclude a specific required library/dependency (like mysql). This would be another way to solve the problem.

Best Answer

Install and use the debian package named equivs.

... Another use is to circumvent dependency checking: by letting dpkg think a particular package name and version is installed when it isn't

man equivs-build