How to Install an Older Version of a Package With apt on Ubuntu

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

apt lists two different versions available for installation

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

Installing an older package with apt

Leave a Reply

Your email address will not be published. Required fields are marked *