How to downgrade all packages automatically?

Asked by Sindhu S

Hi!

I have added a few PPA recently but removed them after upgrading a few packages. Now I want to revert back to those versions available in the archive that is to say I want to downgrade all those packages that are "newer than those available in the archive"

I did a apt-show-versions and here's what I found:

sindhu@sindhu-eee:~/TODO/Code/Projects/Online_Buddies_Tooltip/pidgin-2.6.2$ sudo apt-show-versions | grep "newer"
language-pack-gnome-hi 1:9.04+20090803.2 newer than version in archive
language-pack-gnome-kn 1:9.04+20090803.2 newer than version in archive
language-pack-hi 1:9.04+20090803.2 newer than version in archive
language-pack-kn 1:9.04+20090803.2 newer than version in archive
libglib2.0-0 2.21.4-0ubuntu1~jaunty newer than version in archive
libglib2.0-dev 2.21.4-0ubuntu1~jaunty newer than version in archive
libprotobuf3 2.0.3-2.2ubuntu1~jaunty1 newer than version in archive
libqt4-assistant 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-core 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-dbus 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-designer 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-gui 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-network 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-opengl 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-script 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-scripttools 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-sql 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-sql-mysql 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-sql-sqlite 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-svg 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-test 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqt4-xml 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqtcore4 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libqtgui4 4.5.2-0ubuntu2~jaunty1~ppa2 newer than version in archive
libsoprano-dev 2.3.0+dfsg.1-2~ubuntu1~jaunty1~ppa1 newer than version in archive
libsoprano4 2.3.0+dfsg.1-2~ubuntu1~jaunty1~ppa1 newer than version in archive
libsoup-gnome2.4-1 2.27.90-0ubuntu1~jaunty newer than version in archive
libsoup2.4-1 2.27.90-0ubuntu1~jaunty newer than version in archive
libxml++2.6-2 2.26.0-2~ppajaunty1 newer than version in archive
network-manager-gnome 0.7.1-0ubuntu1~nm1~jaunty1 newer than version in archive
pm-utils 1.2.2.4-0ubuntu5 newer than version in archive
soprano-daemon 2.3.0+dfsg.1-2~ubuntu1~jaunty1~ppa1 newer than version in archive
update-notifier 0.76.8 newer than version in archive
update-notifier-common 0.76.8 newer than version in archive
usbutils 0.82-0ubuntu1~jaunty1 newer than version in archive
xulrunner-1.9.1 1.9.1.4~hg20090919r26394+nobinonly-0ubuntu2~umd1~jaunty newer than version in archive
sindhu@sindhu-eee:~/TODO/Code/Projects/Online_Buddies_Tooltip/pidgin-2.6.2$

I want to downgrade all of these automatically in one command, but I dont know how to, please help!

Thanks :)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Sindhu S
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

aptitude --display-format '%p' search 'newer' > ~/output5656.txt

will give you the list of package names, You can then run:

sudo xargs aptitude remove < ~/output.txt

sounds right to me. Watch you dont remove too much or you will screw your system. Downgrading is not very advised.

Revision history for this message
Sindhu S (sindhu-deactivatedaccount) said :
#2

Tried that, didn't work. The first command: aptitude --display-format '%p' search 'newer' > ~/output5656.txt gives me an empty text file.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

try:

aptitude --display-format '%p' search 'fire' > ~/output5656.txt

just to test.

Revision history for this message
Sindhu S (sindhu-deactivatedaccount) said :
#4

There's gotta be a better way? Anyway, I have resolved my problem doing manual downgrade (ie checking which packages need to be downgraded, searching in synaptic and doing a crtl + e on them and selecting the version)