First perform all the steps explained in Upgrade to version 2.2 from version 2.1, then Upgrading to version 2.3 from version 2.2 and then Upgrading to version 2.4 from version 2.3. Then, perform the steps explained in Upgrading to version 2.5 from version 2.4.