Upgrading Seafile from 7.1.5 to 8.0.5 on Centos

Seafile is an open source, cross-platform file hosting software system. Files are stored on a central server and can be synchronized with personal computers and mobile devices through applications.

Installing new Python libraries

For CentOS 7

                      
                        $ sudo yum install python3-devel mysql-devel gcc gcc-c++ -y
                      
                    

We make a sim link to the libmysqlclient library, without this, at the next step, an error appears / bin / ld: cannot find -lmysqlclient

                      
                        $ sudo ln -s /usr/lib64/mysql/libmysqlclient.so.18 /usr/lib/libmysqlclient.so
                      
                    

We continue installing the Python libraries

                      
                        $ sudo pip3 install future
$ sudo pip3 install mysqlclient==2.0.1 sqlalchemy==1.4.3
                      
                    

For CentOS 8

                      
                        $ yum install python3-devel mysql-devel gcc gcc-c++ -y
$ sudo pip3 install future mysqlclient sqlalchemy==1.4.3
                      
                    

Stop seafile and seahub services

                      
                        $ sudo systemctl stop seafile seahub
                      
                    

Switch to user Seafile

                      
                        $ sudo su - seafile
                      
                    

Download the distribution Seafile 8.0.5 (final release for today)

                      
                        $ curl -OL https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_8.0.5_x86-64.tar.gz
                      
                    

Unpack it and move the archive to the installed directory

                      
                        $ tar xzf seafile-server_8.0.5_x86-64.tar.gz
$ mv seafile-server_8.0.5_x86-64.tar.gz installed
                      
                    

Run the update script

                      
                        $ cd seafile-server-8.0.5/upgrade/
$ ./upgrade_7.1_8.0.sh
                      
                    

Switch to the previous user (with the rights sudo)

                      
                        $ exit
                      
                    

Launch Seafile 8.0.5 server

                      
                        $ sudo systemctl start seafile seahub
                      
                    

Related Posts