Kubuntu, simultaneous upgrade and migration to new machine
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.