Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
Are you trying to downgrade a package in particular? – edwin Feb 1 '14 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 '14 at 6:31

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.