Downgrading packages with apt-get
I enables some alpha repositories on my device(n900) and as expected, upgrades from there broke a lot of things. Now I disabled the repository but the newer versions of the packages are still installed.
is there a way to check for all packages, if the installed version is newer than the repository version? So that I can downgrade them? The package management is apt. The main problem is I don't exactly remember what I upgraded so manual (apt-get remove/ then install) downgrade is not much of an option. I think I changed some python libraries that broke my system. |
Hello,
There are ways you can find out what you changed ;) Have a look at these logs: Code:
/var/log/apt/history.log For example if you have package B upgraded you look for available versions of package B in your standard repositories using: Code:
apt-cache showpkg B Code:
apt-get install B-version-number Kind regards, Eric |
Unfortunately, n900 does not keep those logs by default, maybe into the ramdisk. In any case, I don't have them. I'll look for some other way.
|
Old thread, but for people who happen to come across this with similar needs:
"apt-show-versions" from package apt-show-versions will show (without being given a package name) the versions and repositories of all your installed packages (you might have to have the "too new repository" still enabled, I don't know). If you grep that output for the newer repo (and possibly filter out the "manually upgradable" messages), you should end up with a list of all the packages you might want to downgrade ... |
All times are GMT -5. The time now is 01:37 AM. |