Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

Is there any way to create an updated fresh iso of installed ubuntu of my system so that i dont need to update all those package next time afte a fresh installation. If there please help me

share|improve this question

marked as duplicate by karel, Eric Carvalho, Luis Alvarado Jul 24 at 21:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

If you're not changing architecture (32-bit to 64-bit or vice versa) you can just back up /var/cache/apt/archives, restore it to the new machine and run

sudo apt-get update

That'll get all the applications migrated so you don't have to download them but it won't install them for you.

Better yet, try this-

dpkg --get-selections > installed-programs.log

That will dump a list of your currently installed applications to a text file. You can then move the file to the new machine and do

sudo dpkg --set-selections < installed-programs.log

then do

sudo apt-get dselect-upgrade

to install the packages.

share|improve this answer
    
Where is that log file created and how can i install all updates using that log file in new machine please help me. –  user258548 Mar 25 at 11:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.