Debian – apt-get: install modified package with dependencies

aptdebian

I have downloaded a Debian package lxde, together with all its dependencies:

apt-get install --no-install-recommends lxde --download-only

So now, I have all packages in my /var/cache/apt/archives. I have made modifications to one package lxde_4+nmu1_all.deb (removed galculator from dependencies) and now I would like to install lxde from my modified package (i.e. with the modified dependencies). dpkg -i lxde_4+nmu1_all.deb does not work, because of unmet dependencies.

How can I tell apt-get to install my modified package /var/cache/apt/archives/lxde_4+nmu1_all.deb ?

Best Answer

You can make your own repository with reprepro (tutorials 1 2 …).

If all you want to do is avoid installing galculator, an easier method is to make a fake galculator package with equivs. Then you can install lxde normally.

Related Question