Want to install an older version of a package through apt
on Ubuntu? We’ll show you how in the steps below. This should also work on other Debian-based Linux distributions that use the apt
package manager.
1. First, let’s see what versions are available to install. We’ll use the mysql-server
package as an example here.
sudo apt list -a mysql-server
2. apt
tells us that there are two versions available. Let’s install the older one, which requires that we specify the version.
$ sudo apt install mysql-server=8.0.19-0ubuntu5