LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2007, 02:04 PM   #1
NorwegianBlue
LQ Newbie
 
Registered: Aug 2006
Posts: 8

Rep: Reputation: 0
Question Kubuntu, simultaneous upgrade and migration to new machine


This is probably a faq; it's my first question here though, so please bear with me...

I've got kubuntu 6.06 installed on one PC, and am planning to install kubuntu 7.04 on a second machine. What I'd like to do is create a list of all installed applications on the first machine, copy the list to the second machine after installing kubuntu 7.04, and have the remaining applications installed. I'm planning to do a network install. I've mainly used synaptic for installing programs, occationaly the default installer that comes with kubuntu, as well as apt-get.

Is there a fast and easy way to do this? If so, I'd be very grateful for information.

Thanks in advance,
NorwegianBlue.
 
Old 07-24-2007, 06:54 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I believe it could be possible to create a list of installed packages (without versions or such, just the names), copy that to the other machine and feed it to aptitude/apt-get that would go trough it. What I'm not certain is if it causes trouble, but probably not. Use interactive mode so you can see what is being done before proceeding.

I'm sorry I can't provide direct commands for you, but apt-something (apt-cache?) can probably create such a list for you. Querying all installed packages should be no problem, I think it's pretty basic functionality in package managers. After you've got the list, see how it looks like; if there are version numbers etc. in the package names, you must get rid of them. sed and/or awk are great tools for that, unless you want to go trough the list manually (the list will be long). After that the list should only contain the names of the installed software. Again I'm not sure if aptitude or apt-get have the ability to read the packages-to-be-installed list from a file, but if it's not possible, you can still feed all the entries (package names) from the list to aptitude/apt-get to get the same effect.

In my opinion it still might be easier to just do a basic install and after it manually add the programs you use. I mean you probably don't have that much extra packages that you couldn't pretty quickly either write them up or just remember them and tell aptitude or apt-get get them. Creating the list mentioned above would include all the packages that were installed already in the new system, making the list very long for no good reason.
 
Old 07-24-2007, 07:48 PM   #3
zlya
Member
 
Registered: Dec 2006
Distribution: Debian
Posts: 62

Rep: Reputation: 15
#dpkg-query -l

will list all packages installed. You might want to pipe it into less, since it will probably be quite long. that is:

#dpkg-query -l | less

/var/lib/dpkg/status also contains a list of packages with descriptions.
 
Old 07-25-2007, 02:52 PM   #4
NorwegianBlue
LQ Newbie
 
Registered: Aug 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Smile Solved.

Thanks a lot, b0uncer and zlya. I found that the easiest way to proceed was comparing the output of dpkg-query -l on the two machines, to make a list of the packages I had installed, and then installing them manually with synaptic.
 
  


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
Help removing kubuntu from my computer. Primarily an XP machine. irideablackbike2 Linux - Newbie 4 06-11-2007 08:42 PM
kubuntu 7.04 upgrade jolphil Ubuntu 1 05-18-2007 07:36 AM
upgrade to feisty (kubuntu), proxies... greenmuzz Ubuntu 0 05-03-2007 10:54 AM
Upgrade wizard (kubuntu) LDJ Ubuntu 1 03-30-2007 11:41 AM
Thoughts on migration/upgrade of older systems? jsf03723 Linux - Server 5 01-25-2007 08:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration