Setup unison » Historie » Version 1
Jeremias Keihsler, 13.01.2017 08:43
1 | 1 | Jeremias Keihsler | h1. Install unison |
---|---|---|---|
2 | |||
3 | h2. Requirements |
||
4 | |||
5 | To install unison you will need the following: |
||
6 | * a installed and supported operating system (e.g. CentOS 7.x) |
||
7 | * root-access |
||
8 | * [[repo_epel|EPEL]] |
||
9 | * access to [[http://www.seas.upenn.edu]] |
||
10 | * a fast internet connection |
||
11 | |||
12 | h2. Preliminary note |
||
13 | |||
14 | most of this is taken from |
||
15 | * [[https://www.digitalocean.com/community/questions/install-unison-in-centos-7]] |
||
16 | you may consult the official homepage |
||
17 | * [[http://www.cis.upenn.edu/~bcpierce/unison]] |
||
18 | |||
19 | h2. Install |
||
20 | |||
21 | As of 2017-01-13 unison 2.40 is in EPEL |
||
22 | <pre><code class="bash"> |
||
23 | yum install unison240 |
||
24 | </code></pre> |
||
25 | |||
26 | As of 2015-01-12 unison isn't listed in any CentOS-7 repository we build it from source |
||
27 | |||
28 | <pre><code class="bash"> |
||
29 | yum install ocaml ocaml-camlp4-devel ctags ctags-etags |
||
30 | |||
31 | cd ~ |
||
32 | wget http://www.seas.upenn.edu/~bcpierce/unison//download/releases/stable/unison-2.48.3.tar.gz |
||
33 | tar xvfz unison-2.48.3.tar.gz |
||
34 | cd unison-2.48.3 |
||
35 | make |
||
36 | |||
37 | sudo cp -v unison /usr/bin |
||
38 | |||
39 | cd ~ |
||
40 | rm -fr unison* |
||
41 | </code></pre> |
||
42 | |||
43 | h2. 4 Usage |
||
44 | |||
45 | Basic usage: |
||
46 | <pre><code class="bash"> |
||
47 | unison /mnt/dat /media/ext_HDD |
||
48 | </code></pre> |
||
49 | |||
50 | if there is some Microsoft-Filesystem involved you maybe won't sync the file-permissions |
||
51 | <pre><code class="bash"> |
||
52 | unison /mnt/dat /media/ext_HDD -perms 0 |
||
53 | </code></pre> |