1
0
mirror of https://github.com/imapsync/imapsync.git synced 2024-11-17 00:02:29 +01:00
imapsync/INSTALL.d/INSTALL.Debian.txt

292 lines
8.5 KiB
Plaintext
Raw Normal View History

2015-12-03 18:16:32 +01:00
#!/bin/cat
2022-10-25 04:20:30 +02:00
# $Id: INSTALL.Debian.txt,v 1.38 2022/05/17 14:29:36 gilles Exp gilles $
2019-07-03 01:17:46 +02:00
This documentation is also located online at
https://imapsync.lamiral.info/INSTALL.d/
https://imapsync.lamiral.info/INSTALL.d/INSTALL.Debian.txt
2017-09-23 23:54:48 +02:00
2022-02-15 19:29:45 +01:00
There is four install sections in this document,
1) one for Debian 9 Stretch, Debian 10 Buster, Debian 11 Bullseye
2022-06-01 17:47:18 +02:00
2) one for all the Debian, called "After installing the dependencies".
2022-02-15 19:29:45 +01:00
3) one for Debian 8 Jessie (obsolete)
4) one for Debian 7 Wheezy (even more obsolete)
2021-08-04 21:14:36 +02:00
2022-02-15 19:29:45 +01:00
After reading and following 1) or 3) or 4), you'll be invited to read and follow
the section "2) After installing the dependencies"
2021-08-04 21:14:36 +02:00
What is your Debian release?
Type on a terminal:
cat /etc/debian_version
2022-02-15 19:29:45 +01:00
11.x => Bullseye
2021-08-04 21:14:36 +02:00
10.x => Buster
9.x => Stretch
8.x => Jessie
7.x => Wheezy
where x is any number between 0 and 9, x is minor and to be forgotten.
2017-09-23 23:54:48 +02:00
2022-02-15 19:29:45 +01:00
First, a call to Debian packagers
2017-09-23 23:54:48 +02:00
Why imapsync is not in Debian as a package?
Imapsync used to be in Debian from 2005-04-25 (release 1.125) to 2011-01-25 (release 1.315).
It could be in Debian nowadays, as always, my last words on this discussion were
2022-02-15 19:29:45 +01:00
"Do what you want, I promise I won't complain anymore about the fact imapsync is in Debian or not."
2017-09-23 23:54:48 +02:00
https://lists.debian.org/debian-legal/2011/01/msg00058.html
2022-02-15 19:29:45 +01:00
The Imapsync license is "No limits to do anything with this work and this license".
So feel free!
2017-09-23 23:54:48 +02:00
See also a more detailed story at
https://lists.debian.org/debian-user/2016/11/msg00849.html
2019-07-03 01:17:46 +02:00
=======================================================================
2022-02-15 19:29:45 +01:00
1) Installing imapsync on Debian 9 Stretch, 10 Buster, 11 Bullseye
2019-07-03 01:17:46 +02:00
=======================================================================
2017-09-23 23:54:48 +02:00
2020-04-11 01:15:57 +02:00
How to install imapsync dependencies on a Debian system?
2018-05-07 16:04:23 +02:00
The repositories are the classical ones, ie, a
2019-07-03 01:17:46 +02:00
/etc/apt/sources.list file with:
2017-09-23 23:54:48 +02:00
2022-02-15 19:29:45 +01:00
# Debian 11 Bullseye
deb http://deb.debian.org/debian bullseye main contrib
2018-05-07 16:04:23 +02:00
2020-04-11 01:15:57 +02:00
or
# Debian 10 Buster
deb http://deb.debian.org/debian buster main contrib
2022-02-15 19:29:45 +01:00
or
# Debian 9 Stretch
deb http://deb.debian.org/debian stretch main contrib
2020-04-11 01:15:57 +02:00
2018-05-07 16:04:23 +02:00
You need root privilege to run it, be root or use sudo.
apt install -y \
libauthen-ntlm-perl \
libcgi-pm-perl \
libcrypt-openssl-rsa-perl \
libdata-uniqid-perl \
2020-04-11 01:15:57 +02:00
libencode-imaputf7-perl \
2017-09-23 23:54:48 +02:00
libfile-copy-recursive-perl \
libfile-tail-perl \
2018-05-07 16:04:23 +02:00
libio-socket-inet6-perl \
libio-socket-ssl-perl \
libio-tee-perl \
libhtml-parser-perl \
libjson-webtoken-perl \
libmail-imapclient-perl \
2017-09-23 23:54:48 +02:00
libparse-recdescent-perl \
2022-10-25 04:20:30 +02:00
libproc-processtable-perl \
2018-05-07 16:04:23 +02:00
libmodule-scandeps-perl \
libreadonly-perl \
libregexp-common-perl \
libsys-meminfo-perl \
libterm-readkey-perl \
libtest-mockobject-perl \
libtest-pod-perl \
libunicode-string-perl \
liburi-perl \
libwww-perl \
libtest-nowarnings-perl \
libtest-deep-perl \
libtest-warn-perl \
make \
2022-02-15 19:29:45 +01:00
time \
2018-05-07 16:04:23 +02:00
cpanminus
2017-09-23 23:54:48 +02:00
After installing the dependencies, imapsync should be working,
2022-02-15 19:29:45 +01:00
go to the section "2) After installing the dependencies" below.
=======================================================================
2) After installing the dependencies
=======================================================================
You don't have to be root to test and use imapsync.
Take imapsync either on github:
2022-06-01 17:47:18 +02:00
wget -N https://raw.githubusercontent.com/imapsync/imapsync/master/imapsync
2022-02-15 19:29:45 +01:00
or be on the cutting edge with the upstream site:
wget -N https://imapsync.lamiral.info/imapsync
Add execution permission to the downloaded script:
2015-05-28 19:04:57 +02:00
2022-02-15 19:29:45 +01:00
chmod +x imapsync
Check the dependencies and print also the basic example:
./imapsync
Perform a live test showing imapsync job:
./imapsync --testslive
2015-05-28 19:04:57 +02:00
2022-02-15 19:29:45 +01:00
Now install imapsync on the system (need root priviledges again):
cp imapsync /usr/bin/
That's finished for the installation part.
You can now use imapsync without knowing where it is located
on the system:
imapsync
Now go read the menu http://imapsync.lamiral.info/#doc
and start with the tutorial
https://imapsync.lamiral.info/doc/TUTORIAL_Unix.html
Feedback is welcome!
=======================================================================
3) Installing imapsync on Debian 8 Jessie
=======================================================================
2015-05-28 19:04:57 +02:00
2020-04-11 01:15:57 +02:00
How to install imapsync dependencies on a Debian system?
You need root priviledge.
2016-01-22 17:52:28 +01:00
The first command installs standard Debian packages:
2018-05-07 16:04:23 +02:00
apt install \
libauthen-ntlm-perl \
libcgi-pm-perl \
libcrypt-openssl-rsa-perl \
libdata-uniqid-perl \
2020-04-11 01:15:57 +02:00
libencode-imaputf7-perl \
2018-05-07 16:04:23 +02:00
libfile-copy-recursive-perl \
2020-04-11 01:15:57 +02:00
libfile-tail-perl \
2018-05-07 16:04:23 +02:00
libio-socket-inet6-perl \
libio-socket-ssl-perl \
libio-tee-perl \
libhtml-parser-perl \
libmail-imapclient-perl \
libparse-recdescent-perl \
libmodule-scandeps-perl \
libreadonly-perl \
libterm-readkey-perl \
libtest-mockobject-perl \
libtest-pod-perl \
libunicode-string-perl \
liburi-perl \
libwww-perl \
libregexp-common-perl \
libtest-nowarnings-perl \
libtest-deep-perl \
libtest-warn-perl \
2021-08-04 21:14:36 +02:00
gcc \
2018-05-07 16:04:23 +02:00
make \
2021-08-04 21:14:36 +02:00
cpanminus
2018-05-07 16:04:23 +02:00
The package libdata-uniqid-perl is in the jessie-backports repository
https://packages.debian.org/fr/jessie-backports/libdata-uniqid-perl
2015-05-28 19:04:57 +02:00
2018-05-07 16:04:23 +02:00
Here is how to add jessie-backports repository in /etc/apt/sources.list
https://backports.debian.org/Instructions/
If you can't add the jessie-backports repository in /etc/apt/sources.list you
have to install Perl module Data::Uniqid with cpanm:
cpanm Data::Uniqid
2015-05-28 19:04:57 +02:00
2017-09-23 23:54:48 +02:00
The following second command installs "manually" the Perl module Sys::MemInfo
2018-05-07 16:04:23 +02:00
because Debian 8 Jessie doesn't have this Perl module available via a package
(but Debian 9 Stretch does):
2016-01-22 17:52:28 +01:00
2017-09-23 23:54:48 +02:00
cpanm Sys::MemInfo
2016-01-22 17:52:28 +01:00
2017-09-23 23:54:48 +02:00
The following optional cpanm command updates Perl module Mail::IMAPClient
because it is good to be up to date with that imapsync dependency,
but it is not mandatory since Mail::IMAPClient is installed by
the Debian package libmail-imapclient-perl:
2015-05-28 19:04:57 +02:00
2017-09-23 23:54:48 +02:00
cpanm Mail::IMAPClient
2015-05-28 19:04:57 +02:00
2017-09-23 23:54:48 +02:00
Last, in case you need to use XOAUTH2 authentication you have to install
the module JSON::WebToken with the command:
2016-01-22 17:52:28 +01:00
2017-09-23 23:54:48 +02:00
cpanm JSON::WebToken
2016-01-22 17:52:28 +01:00
2017-09-23 23:54:48 +02:00
After installing the dependencies, imapsync should be working,
2022-02-15 19:29:45 +01:00
go to the section "2) After installing the dependencies" above.
2015-05-28 19:04:57 +02:00
2019-07-03 01:17:46 +02:00
=======================================================================
2022-02-15 19:29:45 +01:00
4) Installing imapsync on Debian 7 Wheezy
2019-07-03 01:17:46 +02:00
=======================================================================
2016-01-22 17:52:28 +01:00
2020-04-11 01:15:57 +02:00
How to install imapsync dependencies on a Debian system?
You need root priviledge to run the commands.
2015-05-28 19:04:57 +02:00
2017-09-23 23:54:48 +02:00
The first command installs standard Debian packages:
2015-05-28 19:04:57 +02:00
2020-04-11 01:15:57 +02:00
apt-get install \
libauthen-ntlm-perl \
libclass-load-perl \
libcrypt-openssl-rsa-perl \
libdigest-hmac-perl \
libencode-imaputf7-perl \
libfile-copy-recursive-perl \
libfile-tail-perl \
libio-compress-perl \
libio-socket-inet6-perl \
libio-socket-ssl-perl \
libio-tee-perl \
libmail-imapclient-perl \
libmodule-implementation-perl \
libmodule-runtime-perl \
libmodule-scandeps-perl \
libpackage-stash-perl \
libpackage-stash-xs-perl \
libpar-packer-perl \
libreadonly-perl \
libterm-readkey-perl \
libtest-fatal-perl \
libtest-pod-perl \
libtest-requires-perl \
libtest-simple-perl \
libunicode-string-perl \
liburi-perl \
2021-08-04 21:14:36 +02:00
gcc \
2020-04-11 01:15:57 +02:00
make \
cpanminus
2017-09-23 23:54:48 +02:00
The following second command installs "manually" the Perl modules
Data::Uniqid
Sys::MemInfo
because Debian hasn't made them available via a package yet.
This cpanm command also installs manually Perl module Mail::IMAPClient
because it is good to be up to date with that imapsync dependency,
but it is not mandatory since Mail::IMAPClient is installed by
the Debian package libmail-imapclient-perl:
2015-05-28 19:04:57 +02:00
2017-09-23 23:54:48 +02:00
cpanm Data::Uniqid Sys::MemInfo
In case you want to update the Perl module Mail::IMAPClient,
a major module for imapsync, but an old March 2012 release 3.31 in Wheezy,
the following command updates it "manually":
cpanm Mail::IMAPClient
Last, in case you need to use XOAUTH2 authentication you have to install
the module JSON::WebToken with the command:
cpanm JSON::WebToken
2015-05-28 19:04:57 +02:00
2021-08-04 21:14:36 +02:00
After installing the dependencies, imapsync should be working,
2022-02-15 19:29:45 +01:00
then go to the section "2) After installing the dependencies" above.
2015-05-28 19:04:57 +02:00
2019-07-03 01:17:46 +02:00
=======================================================================