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-cache madison lists every version a repository offers

Apt
~/tips/tip-apt-madison-available-versions

apt-cache madison nginx

Lists all available versions of a package and the repository for each.

Installing an older version needs its exact version string, and that string is hard to guess.

apt-cache madison nginx
sudo apt install nginx=VERSION

madison prints one line per available version and source, with the suite it comes from, for example a security pocket and the main release. Copy the version from the second column and use package=version with apt install. If a newer version of a dependency is needed, apt tells you and refuses. It lists only what the package lists from your enabled repositories offer, and only for your architecture.

Further reading: apt-cache 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