6 Version
Emiliano Vavassori edited this page 2024-03-09 17:58:58 +01:00

Usage - versions

loaih can be used to find out information about a specific LibreOffice version; the script parses the official LibreOffice download page and, in specific cases like daily builds, infers their availability from other known repositories.

loaih getversion can be used as:

loaih getversion 5.4

To receive the following information:

query: 5.4
x86: https://downloadarchive.documentfoundation.org/libreoffice/old/
x86_64: https://downloadarchive.documentfoundation.org/libreoffice/old/

The query line would report each argument for the getversion verb (see below in Multiple queries); the version is the full version of LibreOffice matching the query; the x86 and x86_64 would provide URLs to download all the needed archives to build the AppImage.

Textual queries

loaih supports textual queries, when you want to find the latest version of some specific categories of LibreOffice releases.

The following textual queries are supported:

  • fresh and still: these are the stable release versions for LibreOffice;
  • prerelease: refers to the last prerelease version published on the website;
  • current, daily, yesterday: returns the version and the URLS to download respectively the current last daily build, the daily build for today, and the daily build for yesterday;
  • yyyymmdd: outputs the information for the daily build corresponding to the indicated date (in the format 4-digits year, 2-digits month, 2-digits day number); for a working example, 20231231 for the December 31st, 2023.

Fallback to current for missing daily versions

If the daily upstream version has not been built today (e.g. likely between midnight and 03:00 CET), a daily query will result in a blank output.

To avoid this, the option -d will modify the query as "today's build or the most recent one" (the most recent one being the "current" one - as it would have been called with current query instead of daily):

loaih getversion daily -d

Multiple queries

It is possible to ask for different queries in the same run, by separating each query with a comma ',':

loaih getversion 7.4,fresh,still

This asks loaih to resolve to the latest version of the 7.4 branch, to the actual "fresh" stable release, and to the actual "still" release. All results should be reported to standard output in the order requested.

JSON output

The information normally given on the standard output can be also provided as a JSON output:

loaih getversion fresh -j

HomePrerequisitesInstallationCore conceptsUsage - manual buildUsage - batch build