5

I've decided that I like aptitude better than all the alternatives I've tried. But I can't figure out how to downgrade/force version of a package with it. I have to go back and use synaptic for that.

How does one use aptitude to downgrade a package?

10
+50

Something like this will work:

sudo aptitude install package-name=package-version

For example:

$ aptitude versions firefox$

Package firefox:                         
p   45.0.2+build1-0ubuntu1             xenial                         500 
i   52.0.2+build1-0ubuntu0.16.04.1     xenial-security,xenial-updates 500 

Then:

sudo aptitude install firefox=45.0.2+build1-0ubuntu1

And with the GUI:

Downgrade packages with aptitude

| improve this answer | |
  • 1
    Thanks. You explained the use of "version" which let me find out how to do it in the "gui" as well. I had been searching for "downgrade" and "force", should have been looking for "specify version". – Organic Marble Apr 5 '17 at 19:57
  • 1
    I'm glad it was helpful, I updated my post with GUI workaround too ;) – Ravexina Apr 5 '17 at 20:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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