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

234 lines
6.4 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.Centos.txt,v 1.32 2022/05/17 14:32:47 gilles Exp gilles $
2015-05-28 19:04:57 +02:00
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.Centos.txt
=======================================================================
Installing imapsync on CentOS
=======================================================================
2015-05-28 19:04:57 +02:00
2022-02-15 19:29:45 +01:00
There is one section for AlmaLinux and Centos 8,
2021-08-04 21:14:36 +02:00
one for Centos 7,
and one for Centos 6.
2022-02-15 19:29:45 +01:00
2021-08-04 21:14:36 +02:00
=======================================================================
2022-02-15 19:29:45 +01:00
AlmaLinux and Centos 8
2021-08-04 21:14:36 +02:00
=======================================================================
2022-02-15 19:29:45 +01:00
How to install imapsync on AlmaLinux and Centos 8:
2021-08-04 21:14:36 +02:00
2022-02-15 19:29:45 +01:00
dnf install --enablerepo=powertools imapsync
imapsync --testslive
2021-08-04 21:14:36 +02:00
2022-06-01 17:47:18 +02:00
For Centos 8 End Of Life fix:
https://www.centos.org/centos-linux-eol/
If you encounter the error
"Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist"
Do this:
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*
dnf update
To upgrade to CentOS stream:
dnf install centos-release-stream
dnf swap centos-{linux,stream}-repos
dnf distro-sync
Taken from
https://stackoverflow.com/questions/70926799/centos-through-vm-no-urls-in-mirrorlist
and tested successfuly on one of my hosts, an ex-Centos8/CentOS-stream now.
2022-02-15 19:29:45 +01:00
=======================================================================
AlmaLinux and Centos 8 and latest imapsync
=======================================================================
At the time of this writing (December 2021), the powertools repository
contains imapsync release 1.977, which is not the latest available
imapsync release. (1.977 date is 2019/12/23 while 2.174 is 2021/12/14)
2021-08-04 21:14:36 +02:00
2022-02-15 19:29:45 +01:00
In order to install the latest imapsync I suggest the following process:
Install the powertools imapsync 1.977 release via dnf like mentioned above.
It will install the needed packages, Perl itself and Perl modules
for release 1.977.
2021-08-04 21:14:36 +02:00
2022-10-25 04:20:30 +02:00
The imapsync 2.206 and next ones needs the Perl module:
dnf install perl-Proc-ProcessTable
2022-02-15 19:29:45 +01:00
wget -N https://imapsync.lamiral.info/imapsync
chmod +x imapsync
./imapsync --testslive
./imapsync --tests
2021-08-04 21:14:36 +02:00
2022-02-15 19:29:45 +01:00
You may get an even more recent imapsync release this way.
2015-05-28 19:04:57 +02:00
2019-07-03 01:17:46 +02:00
=======================================================================
Centos 7
=======================================================================
2015-05-28 19:04:57 +02:00
First install access to the Epel repository via yum:
yum install epel-release
Then install imapsync and its dependencies:
yum install imapsync
After installing imapsync, it should be able to work on your system.
A good test that shows also the basic example:
imapsync
2015-12-03 18:16:32 +01:00
A live test:
2021-08-04 21:14:36 +02:00
imapsync --testslive --tls1 --ssl2
2015-12-03 18:16:32 +01:00
Unit tests:
imapsync --tests
2015-05-28 19:04:57 +02:00
2019-07-03 01:17:46 +02:00
=======================================================================
Centos 7 and latest imapsync
=======================================================================
2018-05-07 16:04:23 +02:00
2021-08-04 21:14:36 +02:00
At the time of this writing (March 2020), the epel7 repository still
contains imapsync release 1.727, which is not the latest available
2022-02-15 19:29:45 +01:00
imapsync release. (1.727 date is 2016/08/19 while 2.174 is 2021/12/14)
2018-05-07 16:04:23 +02:00
In order to install the latest imapsync I suggest the following process:
Install the epel imapsync 1.727 release via yum like mentioned above.
It will install many needed packages, Perl itself and Perl modules
for release 1.727. The latest imapsync needs more Perl modules.
Then:
yum install perl-App-cpanminus \
perl-Dist-CheckConflicts \
perl-HTML-Parser \
perl-libwww-perl \
perl-Module-Implementation \
perl-Module-ScanDeps \
perl-Package-Stash \
perl-Package-Stash-XS \
perl-PAR-Packer \
perl-Regexp-Common \
perl-Sys-MemInfo \
perl-Test-Fatal \
perl-Test-Mock-Guard \
perl-Test-Requires \
2019-07-03 01:25:47 +02:00
perl-Test-Deep \
2020-04-11 01:15:57 +02:00
perl-File-Tail \
2021-08-04 21:14:36 +02:00
perl-Unicode-String \
perl-Test-NoWarnings \
perl-Test-Simple \
perl-Test-Warn \
2022-02-15 19:29:45 +01:00
perl-Sub-Uplevel \
2022-10-25 04:20:30 +02:00
perl-Proc-ProcessTable \
2022-02-15 19:29:45 +01:00
ca-certificates
2018-05-07 16:04:23 +02:00
2021-08-04 21:14:36 +02:00
Also, run the following commands:
cpanm Encode::IMAPUTF7
2019-07-03 01:25:47 +02:00
wget -N https://imapsync.lamiral.info/imapsync
2018-05-07 16:04:23 +02:00
chmod +x imapsync
./imapsync --testslive
2021-08-04 21:14:36 +02:00
Now you should have the latest imapsync locally working on Centos 7.
2019-07-03 01:25:47 +02:00
2020-04-11 01:15:57 +02:00
If you want to install it and replace the old one:
2019-07-03 01:25:47 +02:00
mv /usr/bin/imapsync /usr/bin/imapsync_old
cp ./imapsync /usr/bin/imapsync
imapsync --version
should give the latest release number instead of 1.727
2021-08-04 21:14:36 +02:00
(It is 1.979 at the time of this writing)
2018-05-07 16:04:23 +02:00
2019-07-03 01:17:46 +02:00
If you want to install an online imapsync service
2019-07-03 01:25:47 +02:00
like /X then you also need a recent decent CGI.pm,
add it with cpanm:
2019-07-03 01:17:46 +02:00
cpanm CGI
2018-05-07 16:04:23 +02:00
2019-07-03 01:17:46 +02:00
=======================================================================
Centos 6
=======================================================================
2015-05-28 19:04:57 +02:00
2016-01-22 17:52:28 +01:00
This section has been tested with imapsync release 1.670
2015-05-28 19:04:57 +02:00
First, install access to the Epel repository
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
2016-01-22 17:52:28 +01:00
Then install imapsync and its dependencies:
yum install imapsync
After installing imapsync, it should be able to work on your system.
A good test that shows also the basic example:
imapsync
2015-05-28 19:04:57 +02:00
2016-01-22 17:52:28 +01:00
A live test:
imapsync --testslive
Unit tests:
imapsync --tests
2015-05-28 19:04:57 +02:00
2019-07-03 01:17:46 +02:00
=======================================================================
Centos 6 and latest imapsync
=======================================================================
Install the epel imapsync 1.670 release via yum like mentioned above.
It will install many needed packages, Perl itself and Perl modules
for release 1.670. The latest imapsync needs more Perl modules.
Then:
yum install perl-App-cpanminus \
perl-Dist-CheckConflicts \
perl-HTML-Parser \
perl-libwww-perl \
perl-Module-Implementation \
perl-Module-ScanDeps \
perl-Package-Stash \
perl-Package-Stash-XS \
perl-PAR-Packer \
perl-Regexp-Common \
perl-Sys-MemInfo \
perl-Test-Fatal \
perl-Test-Mock-Guard \
perl-Test-Requires \
2019-07-03 01:25:47 +02:00
perl-Test-Deep \
2020-04-11 01:15:57 +02:00
perl-File-Tail \
2022-10-25 04:20:30 +02:00
perl-Unicode-String \
install perl-Proc-ProcessTable
2019-07-03 01:17:46 +02:00
wget https://imapsync.lamiral.info/imapsync
chmod +x imapsync
./imapsync --testslive
Now you have the latest imapsync on Centos 6,
do you?
2015-05-28 19:04:57 +02:00
2019-07-03 01:17:46 +02:00
=======================================================================
=======================================================================