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?!

2
  • Are you trying to downgrade a package in particular?
    – edwin
    Feb 1, 2014 at 12:36
  • I'm trying to downgrade many packages in an offline pc. I have the .deb files of those packages
    – Maythux
    Feb 3, 2014 at 6:31

2 Answers 2

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .