💾 Archived View for callistix.srht.site › tipsandtricks › ignoredependencies.gmi captured on 2024-05-12 at 14:53:54. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-03-21)

-=-=-=-=-=-=-

Ignoring dependencies in a Debian package

Usually it is not possible to install a package with `apt` or `aptitude`, ignoring a dependency. Sure, packages in the `Recommends` or `Suggests` section can be easily deselected, but not the ones in the `Depends` section.

Here's a method how to make the `Depends` optional too:

First, download the `deb` package locally:

apt-get download <package>

Install the package specifying the dependencies that should be ignored:

dpkg -i --ignore-depends=<dependencies> <package>.deb

Then edit `/var/lib/dpkg/status` and remove the reference to the dependency from the package description.

One caveat is that the package will then appear in the package manager as `upgradable`, but you can probably just pin the package by source to make it show up nicely, though I haven't tried that yet.

🏠 callistix Gemini capsule

Created: 5/Feb/2024

Modified: 5/Feb/2024