2

I'm new to ubuntu. If I wanted to install ubuntu on another computer, how can I move all stuff on my old installation to the new one?

Should I just use tar in terminal to pack my old /*, and then unpack it in the new /*? Does it work? Or should I just move the /home to the new one?

Because on my old installation, I have already installed many developer tools, and I don't want to reinstall the whole system.

Thanks a lot!

0

2 Answers 2

1

My approach: Use deja-dup to back up and transfer my data, and aptik to back up and transfer my installed software. I've used this several times. Not flawless, but close.

1
  • It's a good approach,aptik seems can't backup the pip,npm,rubygems package
    – Quill
    Jul 17, 2016 at 2:01
0

You could tar up your /home/ directory to get all your config, but on I wouldn't tar up your / directory and try to restore it to another. To get your new host in the same setup as the current, you could always look in the /var/log/apt/history.log file on the old host to see all the packages you have installed and re-install them on the new one.

Another option would be to use CloneZilla to make a copy of your hard drive onto another. It is a live CD that lets you copy a hard drive.

3
  • My /var/log/apt/history.log only goes back two weeks.
    – wjandrea
    Jul 17, 2016 at 1:37
  • Thx. so helpful.but I once used npm,pip tools to install package,so the clonezilla is a better option?
    – Quill
    Jul 17, 2016 at 1:42
  • Here's a better way to list all packages that you installed.
    – wjandrea
    Jul 17, 2016 at 1:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .