The default directory install on /opt/lampp if you install xampp php7.4 and xampp php 8.2 you can install on directory default. But after success extract file, you rename folder lampp to lampp7.4 and lampp8.2.
How i to use lampp? you rename again the folder target xampp
$ cd /opt
$ sudo mv lampp7.4 lampp
$ sudo /opt/lampp/lampp start
$ sudo /opt/lampp/lampp stop
you can’t multiple running the xampp.