Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any software to sync files-folders and software between two PCs? For example if I install program 'A' to my desktop I want to be installed to my laptop as well if I have synchronized these two. I want the same with my files and folders. If I change something to my desktop I want the changes to effect my laptop too(I exclude Ubuntu One as a solution).

Thanks for your time and patience!

share|improve this question
Its not that simple, thus only a comment: you can install all packages which are on one machine as well on the other one: dpkg --get-selections and apt-get install. For files you can use rsync. However, I do not recommend the first thing with installing all the packages on another computer unless they have the same hardware and same ubuntu versions installed. – Michael K Dec 19 '11 at 15:29
okay.thanks for your reply – el10780 Dec 20 '11 at 22:01
up vote 3 down vote accepted

As Michael K pointed out the packages you can keep in sync by doing:

dpkg --get-selections > <file>

Copy the file from source machine to destination using your favorite method then

dpkg --set-selections < <file>
apt-get dselect-upgrade

This way all the packages that were installed on one machine will be installed on the other further the packages that were removed on the source machine will be removed from the destination, so doing that is extraordinarily dangerous especially when syncing desktop to laptop since laptop may require certain drivers that desktop in general will not.

In my experience deploying standardized systems I can tell you that once the base build is put in place the synchronization of the packages is a very very rare thing predicated as Michael pointed out on hardware being identical and most importantly purpose being identical as well.

share|improve this answer
thanks for your reply – el10780 Dec 20 '11 at 22:01

The Ubuntu Software Center has a package sync feature. Click File -> Sync between computers.

For two-way file sync without Ubuntu One, try Unison. Here are some instructions.

share|improve this answer
thanks for your reply – el10780 Dec 20 '11 at 22:01

Although your idea sounds nice, you probably do not want to synchronize everything ,various lock files and .xauthority for example.

You are better off identifying what files or data you want to synchronize.

You can then use any number of tools from rsync to unison.

You can use rsync to sycn your data. Both tools have a graphical front end



Ubuntu wiki Unison

Ubuntu wiki rsync

share|improve this answer
thanks for your reply – el10780 Dec 20 '11 at 22:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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