9

I want to downgrade some packages. I search and find How to downgrade packages on Ubuntu? and this Need to downgrade a package with many dependents and this How to Downgrade a Package via apt-get?.

But i just want to do it with dpkg.

Could i just run dpkg -i package-name? If yes then what will be done with the highest already insatlled version?!

Maythux
  • 84,289

2 Answers2

13

You can do that with

dpkg -i package-file.deb

This will replace any other version of package-file.deb that already is installed.

As dpkg can't resolve package dependencies it will just complain if you need to downgrade other packages, and you'll have to do that manually.

Note that downgrading isn't officially supported and may cause problems with some packages.

0

You can also do:

apt install packagename=version

To restore packages to a version in the archive.

stsquad
  • 242