How can I downgrade a package to an older version via
Other tools are also acceptable but
apt-get is preferred.
If you have the version number, or the target release,
apt-get supports choosing a particular version or target release. More details can be found on manual page of apt-get. It can also be accessed from terminal by typing
sudo apt-get install <package-name>=<package-version-number> OR
sudo apt-get -t=<target release> install <package-name>
is the command to be run. This can be used to down-grade a package to a specific version.
It has been helpfully pointed out in the comments that
If you have upgraded software using ppa you can downgrade it by using
ppa-purge. First you have to install
ppa-purge using this code:
sudo apt-get install ppa-purge
Then you can remove the ppa using command
sudo ppa-purge ppa:user/ppa-name
this will automatically downgrade the software to its original version which shipped with Ubuntu.
In my opinion, you should first uninstall or purge the package, like:
sudo apt-get remove <package>
sudo apt-get purge <package>
Then, you may download the version you would like to install and keep it in a folder, say
abc.deb in Downloads. Open terminal, move to the folder using
cd command and install the previous version using
sudo dpkg -i abc.deb
Or else, there is a small utility called
ppa-purge if you mean to downgrade packages updated via PPAs.
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?