LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-09-2017, 07:47 PM   #1
rohshall
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Rep: Reputation: 0
downgrade packages to the repository version


I downgraded my Ubuntu from 17.10 to 16.04 LTS version. After some hiccups, I have a working system. However, I have large number of packages that are newer than the repository version. Is there any way to bulk downgrade them to the repo version? I have tried adding repo preference:

PHP Code:
swadnerkar@swadnerkar:~ $ cat /etc/apt/preferences.d/priority-ubuntu 
Package
: *
Pinrelease o=Ubuntu,a=xenial,n=xenial
Pin
-Priority990

Package
: *
Pinrelease o=Ubuntu,a=xenial-updates,n=xenial
Pin
-Priority990

Package
: *
Pinrelease o=Ubuntu,a=xenial-security,n=xenial
Pin
-Priority990

Package
: *
Pinrelease o=Ubuntu,a=xenial-backports,n=xenial
Pin
-Priority900 
Still
PHP Code:
sudo apt-show-versions fgrep newer 
shows a large number of packages which are newer.

I have wasted quite a lot of time trying to downgrade each individual package using synaptic - force version method, and I am longing for something that offers bulk downgrade
 
Old 10-10-2017, 12:21 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051
you could try to script it -
maybe:
Code:
apt-show-versions | fgrep newer | while read line ; do echo apt purge $line ; done
this is just a quick mockup, which is why i added an 'echo'. if you think it could/would work, edit accordingly.
 
Old 10-10-2017, 11:13 PM   #3
rohshall
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you ondoho. I ended up doing something similar. Instead of apt, I used aptitude, because aptitude purge gives you alternatives like downgrade packages (among others).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Maverick live CD repository packages not found / adding packages to repository phed0ra Linux - Newbie 1 01-10-2012 03:00 AM
How to downgrade packages in LFS?(as well as upgrade) sathyanext Linux From Scratch 0 03-05-2010 02:02 PM
How do you downgrade your kernel version? cletcher Fedora 1 09-07-2007 09:40 PM
Downgrade/earlier version of packages? donv2 Fedora 1 04-23-2006 10:58 PM
downgrade of GCC version nelnel Linux - Software 7 06-29-2005 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration