Skip to content

upgrade-postgresql: Use apt search instead of apt madison

Stan Hu requested to merge sh-use-apt-search into main

apt madison only displays the packages available for installation, not what's actually installed on the system. On my Ubuntu Focal system, I had PostgreSQL v11 installed, but the PostgreSQL v12 package wasn't actually installed. As a result, even after installing PostgreSQL v12, the upgrade script didn't go through.

apt search will show both what's installed and what's available.

Edited by Stan Hu

Merge request reports

Loading