How to revert from backports installation?

Asked by dierre

I would like to try adding the backports repository... once done that, if I change my mind and want to remove it and downgrade any packages it may have updated, is there a simple way to do so?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Old_Soldier (charles.davis) said :
#1

There would be no easy way as far as I know because your packages would be a higher version than are listed in the standard repos. You would have to uninstall the packages or use the --force option to "downgrade" them to lower versions. In theory this shouldn't inject any critical dependency issues, but if system dependencies are messed up you could run into some problems. Non system dependencies can usually be ironed out with a little effort, but if you run into problems in your system deps you'll probably have to reinstall.

With that said the backposrts repos shouldn't cause you any issues. Alternatively you could just compile the applications you want to update and install them manually...

Revision history for this message
dierre (fdr) said :
#2

Thank you for your answer.

I was thinking a bit more about the issue and I've come with an idea. Do you think this could work (deep dependency-messing apart, I mean)?

1. In some way, get from apt and/or dpkg the list of packages that are installed on the system and come from the backports repository. (Is there any way to do this?)
2. Remove the backports repository from /etc/apt/sources and update the package list
3. Force an apt-get reinstall for those packages in the list we got at point 1. (Or alternatively, remove them and then reinstall them).

Thanks.

Revision history for this message
Connor Imes (ckimes) said :
#3

That might work, though I don't think there is any automated system for downloading older versions of pacakges. You can always Force Version on packages from within Synaptic. However, if you have a system that works, there really isn't much point to trying to revert unless you are having problems with specific packages.

Can you help with this problem?

Provide an answer of your own, or ask dierre for more information if necessary.

To post a message you must log in.