Versions of LibreOffice
LibreOffice tends to focus on a GUI experience, while also providing package manager installations for a variety of operating systems such as Ubuntu. The downloadable files include a .deb file which can be used for installation. However, using the .deb means manual installations. Ubuntu suggests using APT only.
For Ubuntu 22.04, the official installation is 7.0.x (or thereabouts), which is end of life.
Click here for a list of LibreOffice releases and their release plan.
Installing LibreOffice from the command line/bash using PPA
Install the PPA:
sudo add-apt-repository ppa:libreoffice/ppa
and make sure to install
sudo apt install -y apt-utils
and run update
sudo apt update
Search the PPA for versions. Instead of apt-cache search, use madison:
sudo apt-cache madison libreoffice
libreoffice | 4:24.8.2-0ubuntu0.24.04.1~lo1 | https://ppa.launchpadcontent.net/libreoffice/ppa/ubuntu noble/main amd64 Packages
libreoffice | 4:24.2.6-0ubuntu0.24.04.1 | http://azure.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages
libreoffice | 4:24.2.5-0ubuntu0.24.04.2 | http://azure.archive.ubuntu.com/ubuntu noble-security/universe amd64 Packages
libreoffice | 4:24.2.2-0ubuntu1 | http://azure.archive.ubuntu.com/ubuntu noble/universe amd64 Packages
Click here if you want more information about the Ubuntu packaging. The most relevant is this one: https://launchpad.net/~libreoffice/+archive/ubuntu/ppa.
Install the version you want (I chose the top one in this example list):
sudo apt install libreoffice=4:24.8.1-0ubuntu0.22.04.1~lo1
Remove and Purge the PPA
add-apt-repository -r ppa:libreoffice/ppa
ppa-purge ppa:libreoffice/ppa
You may need to install ppa-purge:
apt install -y ppa-purge