Installing XAMPP on Linux:
Change the permissions to the installer
chmod 755 xampp-linux-*-installer.run
Run the installer
sudo ./xampp-linux-*-installer.run
Upgrade
*Apache Friends Support Forum
Stop Xampp, if running.
Rename the /opt/lampp folder to /opt/lampp-old (or whatever), then install a new lampp.
Finally copy the whole /opt/lampp-old/htdocs folder to the new release (/opt/lampp/htdocs, previously rename the newly installed htdocs folder to htdocs-original or so) and same for the mysql data, copy the whole /opt/lampp-old/var/mysql to /opt/lampp/var/mysql (and also rename mysql folder from newly installed Xampp before). Be sure to keep the same file permissions and users of the copied folders.