Openfire is a cross-platform instant messaging server written in java. It is easy to install and setup. It is available as a free download by Ignite Realtime website.
You can also use their client software Spark to connect with your Openfire server. Another client that you can use to connect to your Openfire server is Pidgin.
Please follow the post Install latest openfire on CentOS 7
This post will show you how to upgrade openfire to latest version on Linux.
Before we upgrade Openfire to latest version on linux, check current Version of Openfire installed on server.
Backup Openfire Data and Database.
Login to terminal and take backup of Openfire Files and configuration files. Openfire data is stored in /opt/openfire directory by default. So we will take backup of this directory.
[root@engy ~]# mkdir ~/openfire-backup [root@engy ~]# cd /opt && tar -czvf ~/openfire-backup/openfire-full-backup-$(date +%F).tar.gz openfire
Database Backup
[root@engy ~]# mysqldump -ucool -p fired | gzip -9 > ~/openfire-backup/openfire-db-bak-$(date +%F).sql.gz
Verify your Backup files.
[root@engy ~]# ls -la ~/openfire-backup
total 96420
drwxr-xr-x. 2 root root 93 Oct 7 00:45 .
dr-xr-x---. 8 root root 4096 Oct 7 00:44 ..
-rw-r--r--. 1 root root 4358 Oct 7 00:45 openfire-db-bak-2018-10-07.sql.gz
-rw-r--r--. 1 root root 98719049 Oct 7 00:44 openfire-full-backup-2018-10-07.tar.gz
Upgrading the openfire 4.1.1 to latest 4.2.3
Stop Openfire and MariaDB service.
[root@engy ~]# systemctl stop openfire mariadb
Check the current version of Openfire.
[root@engy ~]# rpm -qa | grep openfire
openfire-4.1.1-1.x86_64
Update the openfire to latest version.
Download the latest RPM file for Openfire.
[root@engy ~]# wget http://download.igniterealtime.org/openfire/openfire-4.2.3-1.x86_64.rpm
Update the Openfire to latest version.
[root@engy ~]# rpm -Uvh openfire-4.2.3-1.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:openfire-4.2.3-1 warning: /opt/openfire/conf/openfire.xml created as /opt/openfire/conf/openfire.xml.rpmnew
warning: /opt/openfire/conf/security.xml created as /opt/openfire/conf/security.xml.rpmnew
################################# [ 50%]
Restarting openfire (via systemctl): Warning: openfire.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[ OK ]
Cleaning up / removing...
2:openfire-4.1.1-1 ################################# [100%]
Verfiy the updated version.
[root@engy ~]# rpm -qa | grep openfire
openfire-4.2.3-1.x86_64
Start the openfire and MariaDB service again.
[root@engy ~]# systemctl daemon-reload [root@engy ~]# systemctl start openfire mariadb
Finally, Check the latest version of Openfire by visiting the http://server-ip:9090/login.jsp

Now we have a working latest Openfire XMPP server. Thanks for visiting this page. Good day. 🙂