Untested.
Download the 64 bit Linux download here:
Open-source electronic prototyping platform enabling users to create interactive electronic objects.
www.arduino.cc
Extract the folder and navigate to the newly created directory with your terminal.
Code:
sudo chmod +x ./install.sh
sudo ./install.sh
To uninstall, do the same thing with ./uninstall.sh.
If you want to do it all in the terminal, open the download directory and use 'tar -zxvf arduino-1.8.16-linux64.tar.gz' - though that command will obviously change when the version changes.