Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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? I 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 at 12:36
    
I'm trying to downgrade many packages in an offline pc. I have the .deb files of those packages –  Ask Feb 3 at 6:31

1 Answer 1

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

 
discard

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.