I'm looking at maybe moving from an older AMD64 to a new Intel dual-core which is 32 bit. Installation isn't a problem but can I transfer all the installed apps? I haven't been able to find anything so far on Google except where the migration is to a similar platform and file-system. I won't change the filesystem but the platform will be different. Is there something on the lines of the "World" file in Gentoo?
Join Stack Overflow to learn, share knowledge, and build your career.
|
You can save your list of packages easily: see "man dpkg" and search for --set-selections and --get-selections. The basic of it, though is that to save the list of packages:
To restore that list on another system:
Moving across architectures means that there will be some packages unavailable. They will be ignored; for example, |
|||||||||
|
|
Funny, here I was using SO as a howto repository (write a question and then select my own answer), but in the time that it took me to write my own answer, I was beaten to the punch thrice! Anyway, here's my take for the record: Use dpkg's --get-selections and --set-selections options to capture and select your currently installed packages. First, export your current package list on your old system:
Then select this list as the packages to install on your new system:
(For extra credit, copy your apt cache directory over to minimize downloads: Finally, tell apt to download and install the selected packages:
|
||||
|
|
|
For everything you've used apt-get to install, if you want to create a record of what's installed run the following:
This will create a text file with all the packages you have installed. Then after you do the install, create and run a script with the following:
Notes: Good luck! |
|||
|
|
|
If (like me) you didn't do this before you messed up your system, you can boot into a live-cd or another install, and use chroot to get at this info.
Then do the |
|||
|
|
|
This is what I generally do to solve similar problem (migrated to a new laptop several times). There is two addition to the other answers to this question, this will also move your Backup on old system:
Copy config directory to the newsystem ("
Also, you can use same method to regularly take backups of your home directory and |
|||
|
|
|
I'm not sure if this is an answer, but I just discovered the existence of the command aptitude-create-state-bundle. Yes, that's one command. Check out the man page. |
|||
|
|
|
The best way I can think of to go about this is to back up the list of installed packages on your current system and then use that list to set what packages to install on the new system. General instructions on how to backup and restore your package selections: Install tools
Backup Package List
Restore Package Selections
This will open up a dselect session. Type ‘I‘ and allow dselect to install of the the packages listed in your ubuntu-files document. When it’s finished, type ‘Q‘ and hit the ENTER key to exit dselect. |
||||
|
|