Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I preserve installed applications when migrating Ubuntu to another platform?

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?

like image 848
michaeljoseph Avatar asked Oct 09 '08 14:10

michaeljoseph


People also ask

How do I backup installed programs in Ubuntu?

To backup settings for installed applications, click the “Backup” button to the right of “Application Settings” on the main Aptik window. Select the settings you want to back up and click “Backup”. NOTE: Click the “Select All” button if you want to back up all application settings.

How does migration works in Ubuntu installation?

The migration functionality in the installer now allows users to export their migrated data to a USB thumb drive or other external source to later be merged into their Ubuntu system using the accompanied desktop application.


1 Answers

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:

dpkg --get-selections > package_list

To restore that list on another system:

cat package_list | sudo dpkg --set-selections && sudo apt-get dselect-upgrade

Moving across architectures means that there will be some packages unavailable. They will be ignored; for example, ia32-libs will not be installable on a 32-bit system. That selection will be ignored if you're moving from x86-64 to x86.

like image 163
Michael Trausch Avatar answered Oct 22 '22 13:10

Michael Trausch