To install the latest version of LibreOffice on Linux Mint 20.3 and remove the older version, you can follow these steps:
1. Remove Older Version of LibreOffice
Open the Terminal.
Uninstall the existing LibreOffice package:
sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove
2. Download the Latest LibreOffice .deb Package
Visit the LibreOffice download page.
Select "Linux (64-bit) (deb)" as the operating system and click "Download".
This will download a tar.gz archive containing the .deb packages.
Extract the downloaded tar.gz file
3. Install the .deb packages:
sudo dpkg -i *.deb