I'm going through a somewhat painful exercise of updating an application server which, among other things, runs some legacy Windows code in a Qemu guest.
The legacy Windows code, which will be in use for no more than a few months hence is not economically fixable, is incompatible with the current version of database server (PostgreSQL) due to a query embedded in its system database libraries. However if I go back to a distro version with a sufficiently-old database, accessing the guest Windows systems over Qemu's VNC is unreliable.
I believe I have a solution with the database server running in a Docker container, but this has involved a lot of trial installs etc.
Considering Debian-style distreaux (i.e. including Ubuntu etc.), and noting that in some cases repos will be split into e.g. http://deb.debian.org and http://archive.debian.org, is there some way of using e.g. apt-cache showpkg to get a quick answer to questions like "what version of Qemu was installed on Debian Stretch" or for that matter "what was the complete timeline of Qemu across Debian versions"?
I am aware of List of default software versions for given Ubuntu Release which is superficially similar, but the answers assume that either the distro maintainers or some external website have a complete index, which is not the case for archived Debian versions.
Added: affected distro and package versions.
Legacy code written in Delphi on Windows using the BDE hence ODBC to PostgreSQL may result in an error "column d.adsrc does not exist" if connecting to a server later than v11, this is due to an internal table change in v12.
Windows up to at least W2K running in Qemu and accessed over VNC has a problem where its mouse will "go crazy", particularly if the host computer is relatively underpowered. This definitely affects Qemu v5, it appears not to affect v10 but- as ever- "it is impossible to prove a negative".
Leaving aside the possibilities of containerisation etc., the most recent Debian to provide PostgreSQL v11 is "Buster":
postgresql | 11+200+deb10u5 | debian/buster postgresql | 13+225+deb11u1 | debian/bullseye
Similarly, the earliest Debian to provide Qemu v10 is either "Trixie" or possibly "Bookworm Backports":
qemu | 1:3.1+dfsg-8+deb10u8 | debian/buster qemu | 1:5.2+dfsg-9~bpo10+1 | debian/buster-backports qemu | 1:5.2+dfsg-11+deb11u3 | debian/bullseye qemu | 1:7.2+dfsg-7+deb12u2~bpo11+1 | debian/bullseye-backports qemu | 1:5.2+dfsg-11+deb11u3 | bullseye qemu | 1:7.2+dfsg-7+deb12u16 | bookworm qemu | 1:10.0.2+ds-2+deb13u1~bpo12+1 | bookworm-backports qemu | 1:10.0.6+ds-0+deb13u2 | trixie
There's no viable overlap between a compatible Postgres backend and a reliable Qemu frontend interface, but even if there were one should take into account the desirability of sticking with the most recent host OS hence putting PostgreSQL into a container is undoubtedly the optimum solution.