Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reinstallation of applications after upgrade

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
fede



Joined: Thu Sep 01, 2005 4:23 am
Posts: 56

PostPosted: Sat Mar 29, 2014 11:07 pm    Post subject: Reinstallation of applications after upgrade Reply with quote

I am sure this has been addressed a zillion times before, but I could not find a post on this (not that good at setting up queries).

The temptation to update to a new version (e.g. Ubuntu 13.10 to 14.04) rather than going through a fresh install comes form the drudgery of reinstalling all the packages that one has added in the previous iteration. It used to be that dpkg --get-selections/--set-selections would do the job of reinstlling what you had in the previous iteration on Debian/Ubuntu, but it hasn't worked for me in over a year (on trying --set-selections I get all error messages stating that the item is not in the database, and nothing gets installed (yes, I had updated sources.list).

Is there another way, or am I missing something that is easily fixed?

Thank you!
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2435

PostPosted: Sun Mar 30, 2014 12:43 am    Post subject: Reply with quote

You need something else to get the required packages.

The full procedure:

Before the upgrade:
Code:
sudo dpkg --get-selections > /home/<user>/selections.txt

Make sure you copy the file selections.txt to a backup medium, with the rest of your data!

After the upgrade:
Copy the file selections.txt back to your drive and navigate to it with the cd command, then:
Code:
sudo apt-get install dselect
sudo dpkg --set-selections < selections.txt
sudo dselect install
This'll take some time, so get a cuppa of sorts Wink

Done Smile
Back to top
View user's profile Send private message
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4262
Location: wild West Wales

PostPosted: Sun Mar 30, 2014 2:07 am    Post subject: Reply with quote

That's all very well but what if you don't do the first part Rolling Eyes Rolling Eyes Rolling Eyes
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8464
Location: Warrington, UK

PostPosted: Sun Mar 30, 2014 8:10 am    Post subject: Reply with quote

Code:
apt-get dist-upgrade

saves the hassle and avoids the drudgery of reconfiguring things after each new release.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4262
Location: wild West Wales

PostPosted: Sun Mar 30, 2014 11:22 am    Post subject: Reply with quote

I have bitter personal experience of the dist-upgrade thing, luckily I had backed everything up Embarassed Rolling Eyes
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
fede



Joined: Thu Sep 01, 2005 4:23 am
Posts: 56

PostPosted: Wed Apr 02, 2014 3:52 am    Post subject: Reply with quote

Dutch_Master wrote:
You need something else to get the required packages.

The full procedure:

Before the upgrade:
Code:
sudo dpkg --get-selections > /home/<user>/selections.txt

Make sure you copy the file selections.txt to a backup medium, with the rest of your data!

After the upgrade:
Copy the file selections.txt back to your drive and navigate to it with the cd command, then:
Code:
sudo apt-get install dselect
sudo dpkg --set-selections < selections.txt
sudo dselect install
This'll take some time, so get a cuppa of sorts Wink

Done Smile


Thanks. What I notice I haven't been doing (it was not mentioned in old Debian-related info) is the step

>sudo apt-get install dselect

I suppose I have to assume that this is where I tripped. But what does this instruction actually do? And, assuming I will soon lose my job and have some time to play around, is there a source to learn how this works? Just joking, but not as much as I'd like Wink

Anyway, thanks - I'll try that (I keep my /home/ partition no matter what anyway)
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2435

PostPosted: Wed Apr 02, 2014 5:09 am    Post subject: Reply with quote

Well, it does really what it says: instruct apt-get (the package management tool) to install the package dselect, with sudo rights. If you want to know more, type the following in a terminal and hit enter:
Code:
man man
Use the up/down arrows to read more and press the q key to quit. Linux can be so easy, if you know where to look Razz Wink
Back to top
View user's profile Send private message
fede



Joined: Thu Sep 01, 2005 4:23 am
Posts: 56

PostPosted: Thu Apr 10, 2014 9:48 pm    Post subject: Reply with quote

Dutch_Master wrote:
Well, it does really what it says: instruct apt-get (the package management tool) to install the package dselect, with sudo rights. If you want to know more, type the following in a terminal and hit enter:
Code:
man man
Use the up/down arrows to read more and press the q key to quit. Linux can be so easy, if you know where to look Razz Wink

So right! And, I must have been very tired when I asked that last question... Mad Unconsciously, I just assumed that dselect was built in or installed by default. Oh, well... Thanks and thanks to you and the forum for being there even for dumb questions!
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast