brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: apt install ./file.deb installs a local package and resolves its dependencies

Apt
~/tips/tip-apt-install-local-deb-path

sudo apt install ./vendor-tool_2.1_amd64.deb

Installs a downloaded .deb file and pulls in the dependencies it needs.

Many vendors hand out a plain .deb. If you use dpkg -i on it, missing dependencies leave the package half installed.

sudo apt install ./vendor-tool_2.1_amd64.deb

When you give apt a path to a .deb file, it reads the control data and installs the dependencies from your repositories first. Start the path with ./ or give an absolute path so it cannot be mistaken for a package name. The package is registered like any other, so apt remove works later. Updates do not arrive automatically unless the .deb added its own repository file, so check for that.

Further reading: apt manual page

More Apt tips sudo apt-mark minimize-manual apt list '~c' grep -E ' (install|upgrade|remove) ' /var/log/dpkg.log | tail -o Dpkg::Options::="–force-confold" upgrade sudo apt-get -d -y full-upgrade All Apt tips (42) All topics

Link