Downloads:

778,358

Downloads of v 6.3.1:

10

Last Update:

10/18/2019

Package Maintainer(s):

Software Author(s):

  • LibreOffice developers

Tags:

libreoffice office cross-platform foss admin

LibreOffice Fresh

This is not the latest version of LibreOffice Fresh available.

6.3.1 | Updated: 10/18/2019

Downloads:

778,358

Downloads of v 6.3.1:

10

Maintainer(s):

Software Author(s):

  • LibreOffice developers

LibreOffice Fresh 6.3.1

This is not the latest version of LibreOffice Fresh available.

This Package Contains an Exempted Check

1 Test Passing and 1 Exempted Test


Validation Testing Passed


Verification Testing Exempt:

Requires reboot due to dependency.

To install LibreOffice Fresh, run the following command from the command line or from PowerShell:

>

To upgrade LibreOffice Fresh, run the following command from the command line or from PowerShell:

>

To uninstall LibreOffice Fresh, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade libreoffice-fresh -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade libreoffice-fresh -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure libreoffice-fresh installed
  win_chocolatey:
    name: libreoffice-fresh
    state: present
    version: 6.3.1
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'libreoffice-fresh' do
  action    :install
  version  '6.3.1'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: libreoffice-fresh,
    Version: 6.3.1,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller libreoffice-fresh
{
   Name     = 'libreoffice-fresh'
   Ensure   = 'Present'
   Version  = '6.3.1'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'libreoffice-fresh':
  provider => 'chocolatey',
  ensure   => '6.3.1',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install libreoffice-fresh version="6.3.1" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 10/18/2019.

Description

LibreOffice is the free power-packed Open Source personal productivity suite for Windows, macOS and Linux, that gives you six feature-rich applications for all your document production and data processing needs.

Notes

  • This package installs LibreOffice Fresh which is the stable version of LibreOffice with the most recent bleeding-edge features. This version is recommended for technology enthusiasts, early adopters or power users. For more conservative users or for deployments in enterprise or corporate environments, it is recommended to install libreoffice-still instead.
  • Older versions of this package are likely broken because the LibreOffice team removes the download links for older versions after each update.

tools\chocolateyInstall.ps1
$ErrorActionPreference = 'Stop'

$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
. $toolsDir\helpers.ps1

$packageArgs = @{
  packageName            = 'libreoffice-fresh'
  version                = '6.3.1'
  fileType               = 'msi'
  url                    = 'https://download.documentfoundation.org/libreoffice/stable/6.3.1/win/x86/LibreOffice_6.3.1_Win_x86.msi'
  url64bit               = 'https://download.documentfoundation.org/libreoffice/stable/6.3.1/win/x86_64/LibreOffice_6.3.1_Win_x64.msi'
  checksum               = '18e90b5f4f630f041554a1cd0fd4d8ff12e99ea0035caab6b1019710677fbe6a'
  checksum64             = '343fabba083ade4223cee497d50de4e32115290ce907c947e18015170ed9df67'
  checksumType           = 'sha256'
  checksumType64         = 'sha256'
  silentArgs             = '/qn /passive /norestart /l*v "{0}"' -f "$($env:TEMP)\$($env:ChocolateyPackageName).$($env:ChocolateyPackageVersion).MsiInstall.log"
  validExitCodes         = @(0,3010)
  softwareName           = 'LibreOffice*'
}

if (-not (IsUrlValid $packageArgs.url)) {
  $exactVersion = GetLibOExactVersion $packageArgs.version
  $packageArgs.url = $exactVersion.Url32
  $packageArgs.url64bit = $exactVersion.Url64
}

Install-ChocolateyPackage @packageArgs
tools\helpers.ps1
# Send a generic request to the LibreOffice update service
function GetLatestVersionFromLibOUpdateChecker($userAgent) {
  $url = "https://update.libreoffice.org/check.php"
  $request = [System.Net.WebRequest]::Create($url)
  $request.UserAgent = $userAgent
  $s = $request.GetResponse().GetResponseStream()
  $sr = New-Object -TypeName System.IO.StreamReader($s)
  [xml]$xmlAnswer = $sr.ReadToEnd()
  return $xmlAnswer.description.version
}

# Send a request to the LibreOffice update service to get the latest Still
# version
function GetLatestStillVersionFromLibOUpdateChecker() {
  # We are taking the build UUID of 3.5.7. This is needed because the update
  # service is determining which branch to take depending on the third dot
  # number. If the latest fresh release has a third dot number greater or
  # equal to the third dot number we specified (here 7), the fresh branch is
  # returned, otherwise this is the Still branch.
  # src.: https://web.archive.org/web/20190806174607/https://cgit.freedesktop.org/libreoffice/website/tree/check.php?h=update&id=c0c4940e998a0f5fbeb57910b1dfe6778226c51b#n665
  return GetLatestVersionFromLibOUpdateChecker "LibreOffice 0 (3215f89-f603614-ab984f2-7348103-1225a5b; Chocolatey; x86; )"
}

# Send a request to the LibreOffice update service to get the latest fresh
# version
function GetLatestFreshVersionFromLibOUpdateChecker() {
  # We are taking the build UUID of 3.5.0.1 here for the same explanation
  # as before.
  return GetLatestVersionFromLibOUpdateChecker "LibreOffice 0 (b6c8ba5-8c0b455-0b5e650-d7f0dd3-b100c87; Chocolatey; x86; )"
}

# Get all the links from a MirrorBrain instance without the copyright
# and owner links
function GetAllBuildsFromMirrorBrainUrl($url) {
  $request = [System.Net.WebRequest]::Create($url)
  $s = $request.GetResponse().GetResponseStream()
  $sr = New-Object -TypeName System.IO.StreamReader($s)
  $answer = $sr.ReadToEnd()
  [xml]$xmlAnswer = [System.Net.WebUtility]::HtmlDecode($answer)
  $linksArray =  $xmlAnswer.GetElementsByTagName("a")
  # ? outputs all items that conform with condition (here: TryParse returning
  # a boolean). As if it was "foreach { if (...) {return ... } }"
  # The returned values are still a string that must be parsed to a Version object.
  return @($linksArray | ForEach-Object href | ForEach-Object {$_ -Split '/' } | Where-Object { [version]::TryParse($_, [ref]($__)) })
}

function GetBuildHashFromMirrorBrainUrl($url) {
  if ([string]::IsNullOrEmpty($url)) {
    return $null
  }

  # We are not using the $url/sha256 suffix because that file is missing
  # from downloadarchive :/
  $request = [System.Net.WebRequest]::Create("$url.sha256")
  $s = $request.GetResponse().GetResponseStream()
  $sr = New-Object -TypeName System.IO.StreamReader($s)
  $answer = $sr.ReadToEnd()

  return $answer.Split(" ")[0]
}

function IsUrlValid($url) {
  try {
    [System.Net.HttpWebRequest]$request = [System.Net.WebRequest]::Create($url)
    $request.Method = "HEAD"
    # GetResponse raises a WebException when an error occurred.
    $response = $request.GetResponse()
    $status = [int]$response.StatusCode
    $response.Close()
    if ($status -eq 200) {
      return $true
    } else {
      return $false
    }
  } catch {
    return $false
  }
}

# Get correspondance between release and build versions
# e.g. 6.2.0 => 6.2.0.3
function BuildLibOReleasesToBuildsMapping($builds) {

  $mapping = New-Object -TypeName System.Collections.Specialized.OrderedDictionary  
  $buildVersion = New-Object -TypeName System.Version

  # The last one is never populated, prevent this by adding one additional
  # different item in order for the loop to work properly.
  [System.Collections.ArrayList]$buildsPlusOne = $builds
  $buildsPlusOne.Add("0.0.0.")

  foreach ($build in $buildsPlusOne) {
    [void][version]::TryParse($build, [ref]$buildVersion)
    $releaseId = "$($buildVersion.Major).$($buildVersion.Minor).$($buildVersion.Build)"

    if ($releaseId -ne $previousReleaseId -and $previousReleaseId -ne $null) {
      $mapping.add($previousReleaseId, $previousBuildId)
    }

    $previousReleaseId = $releaseId
    $previousBuildId = $build
  }

  return $mapping
}

function GetFilename($url, $releasesMapping, $release, $arch) {
  # Sorted to most likely to less likely to avoid unneeded tests
  $filenamePatterns = @(
    "LibreOffice_[VERSION]_Win_[ARCH].msi",
    "LibO_[VERSION]_Win_[ARCH]_install_multi.msi",
    "LibO_[VERSION]_Win_[ARCH]_install_multi.exe",
    "LibO_[VERSION]_Win_[ARCH]_install_all_lang.msi",
    "LibO_[VERSION]_Win_[ARCH]_install_all_lang.exe"
  )
  $filename64bitsPatterns = @(
    "x86_64",
    "x64"
  )
  $filename32bitsPatterns = @(
    "x86"
  )

  if ($arch -eq "x64") {
    $folderArchPattern = "x86_64"
    $filenameArchPatterns = $filename64bitsPatterns
  } else {
    $folderArchPattern = "x86"
    $filenameArchPatterns = $filename32bitsPatterns
  }

  $urlFolder = "${url}$($releasesMapping.$release)/win/$folderArchPattern/"

  # No need to go further if the folder doesn't even exist. i.e. typically
  # the case when only 32 bits version are available.
  if (!(IsUrlValid "$urlFolder")) {
    Write-Debug "$urlFolder doesn't exist"
    return $null
  }

  [System.Collections.ArrayList]$filenames = @()

  # Build all possible URL variants with filename patterns and arch patterns
  foreach ($filename in $filenamePatterns) {
    foreach ($archPattern in $filenameArchPatterns) {
      # Replace template URL by assuming the release id is used, e.g. 6.2.0
      [void]$filenames.Add($($filename -Replace "\[VERSION\]","$release" -Replace "\[ARCH\]","$archPattern"))
      # Replace template URL by assuming the build id is used instead, e.g. 6.2.0.0
      [void]$filenames.Add($($filename -Replace "\[VERSION\]","$($releasesMapping.$release)" -Replace "\[ARCH\]","$archPattern"))
    }
  }

  # Test all the filename variants we crafted
  foreach ($filename in $filenames) {
    $completeUrl = "${urlFolder}${filename}"
    Write-Debug "Testing $completeUrl..."
    # As soon we have a valid URL, break the loop and go to the next release
    if (IsUrlValid "$completeUrl") {
      Write-Debug "Testing $completeUrl is valid."
      return "$completeUrl"
    }
  }
  return $null
}

# Generate an array with all the LibreOffice versions that exist from one
# version to another with checksums and valid links at the time.
function GetLibOVersions($fromVersion, $toVersion) {

  # Define table and columns
  # src.: https://blogs.msdn.microsoft.com/rkramesh/2012/02/01/creating-table-using-powershell/
  $table = New-Object System.Data.DataTable
  $table.columns.add($(New-Object System.Data.DataColumn Version))
  $table.columns.add($(New-Object System.Data.DataColumn Build))
  $table.columns.add($(New-Object System.Data.DataColumn Url64))
  $table.columns.add($(New-Object System.Data.DataColumn Checksum64))
  $table.columns.add($(New-Object System.Data.DataColumn Url32))
  $table.columns.add($(New-Object System.Data.DataColumn Checksum32))

  $latestStillVersion = GetLatestStillVersionFromLibOUpdateChecker
  $latestStillBranch  = $latestStillVersion.Split(".")[0,1] -Join '.'
  $latestFreshVersion = GetLatestFreshVersionFromLibOUpdateChecker
  $latestFreshBranch  = $latestFreshVersion.Split(".")[0,1] -Join '.'

  # Get all versions from the downloadarchive according to the limits
  # specified above.
  $url = 'https://downloadarchive.documentfoundation.org/libreoffice/old/'
  $builds = GetAllBuildsFromMirrorBrainUrl $url | Sort-Object
  $releasesMapping = BuildLibOReleasesToBuildsMapping $builds
  foreach ($release in $releasesMapping.Keys) {

    $releaseBranch = $release.Split(".")[0,1] -Join '.'

    # These first 2 conditions ensures if the loop continue that we are in
    # the interval, since the array is properly sorted (lower to greater).
    if ($release -lt $fromVersion) {
      continue
    } elseif ($release -gt $toVersion) {
      break
    # Imagine we ask to generate released builds from 6.2.7 to 6.3.2.
    # There might be on the server builds 6.2.8 and 6.3.3, the later might
    # not have been released by TDF yet. Avoid this.
    } elseif (($releaseBranch -eq $latestStillBranch -and $release -gt $latestStillVersion) -or
              ($releaseBranch -eq $latestFreshBranch -and $release -gt $latestFreshVersion)) {
      continue
    }

    $row = $table.NewRow()
    $row.Version = $release
    $row.Build = $releasesMapping.$release

    # Find 64 bits version if any. At the beginning of the LibreOffice
    # project, there weren't 64 bits versions for Windows.
    $row.Url64 = GetFilename $url $releasesMapping $release "x64"
    $row.Checksum64 = GetBuildHashFromMirrorBrainUrl $row.Url64

    $row.Url32 = GetFilename $url $releasesMapping $release "x86"
    $row.Checksum32 = GetBuildHashFromMirrorBrainUrl $row.Url32

    $table.Rows.Add($row)
  }

  # If versions are under CDN replace the links with the ones from the CDN
  # instead. We assume, all released builds in the stable folder are those
  # that are being under CDN.
  $url = 'https://download.documentfoundation.org/libreoffice/stable/'
  $builds = GetAllBuildsFromMirrorBrainUrl $url | Sort-Object
  # $releasesMapping is an ordered dictionnary containing
  # mappings like 6.2.0 => 6.2.0.3
  $releasesMapping = New-Object -TypeName System.Collections.Specialized.OrderedDictionary  
  foreach ($release in $builds) {
    $releasesMapping.Add($release, $release)
  }
  foreach ($release in $releasesMapping.Keys) {
    foreach ($row in $table) {
      if ($row.Version -eq $release) {
        $row.Url64 = GetFilename $url $releasesMapping $release "x64"
        $row.Url32 = GetFilename $url $releasesMapping $release "x86"
      }
    }
  }

  # Powershell doesn't have all the enumerable tools implemented with the
  # .NET collections reponsible of the proper unrolling arrays/collections,
  # which means if we want our DataTable to be returned under this type,
  # we need to wrap the collection into a dummy array with a heading comma
  # operator.
  # src.: https://stackoverflow.com/a/1918455/3514658
  return ,$table
}

function GetLibOVersionsWithoutFromVersion($fromVersion, $toVersion) {

  $versions = GetLibOVersions $from $to

  # Discard the first version since it is the current one that has already
  # been pushed to Chocolatey.
  if ($versions.Rows.Count -gt 0) {
    $versions.Rows[0].Delete()
  }

  # Casting needed for the same reason as above
  return ,$versions
}

function GetLibOExactVersion($version) {
    $versions = GetLibOVersions $version $version
    return $versions.Rows[0]
}

function AddLibOVersionsToStreams($streams, $branch, $from, $to) {

  $versions = GetLibOVersionsWithoutFromVersion $from $to

  foreach ($row in $versions) {

    # The package variable needs to be a hashtable. Therefore, we cannot use
    # an OrderedDictionary. Tradeoff: The dictionary keys will unfortunately
    # appear in random order.
    # $row is a DataRow, we have to convert manually to a hashtable.
    $package = @{}
    $package.Version = $row.Version
    $package.URL64 = $row.URL64
    $package.Checksum64 = $row.Checksum64
    $package.URL32 = $row.URL32
    $package.Checksum32 = $row.Checksum32
    $package.FileType = $package.URL32 -Replace ".*",""
    if ($branch -eq "still") {
      $package.PackageName = "libreoffice-still"
      $package.Title = "LibreOffice Still"
    } else {
      $package.PackageName = "libreoffice-fresh"
      $package.Title = "LibreOffice Fresh"
    }
    
    # Add package to streams. By adding the branch name to the hashtable
    # key name, we are hacking the way AU streams are working here
    # (bypassing hashtables key unicity) in order to avoid gaps when
    # updating LibreOffice versions.
    $streams.Add("$($package.Version).$branch", $package)
  }

  return $streams
}

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
LibreOffice Fresh 6.3.2 34635 Friday, October 18, 2019 Approved
LibreOffice Fresh 6.3.1 10 Friday, October 18, 2019 Approved
LibreOffice Fresh 6.3.0 5 Friday, October 18, 2019 Approved
LibreOffice Fresh 6.2.7 11 Friday, October 18, 2019 Approved
LibreOffice Fresh 6.2.6 30 Friday, October 18, 2019 Approved
LibreOffice Fresh 6.2.5 378400 Thursday, July 4, 2019 Approved
LibreOffice Fresh 6.2.4 30381 Wednesday, May 22, 2019 Approved
LibreOffice Fresh 6.2.3 23770 Thursday, April 18, 2019 Approved
LibreOffice Fresh 6.2.2 21738 Thursday, March 21, 2019 Approved

Discussion for the LibreOffice Fresh Package

Ground Rules:

  • This discussion is only about LibreOffice Fresh and the LibreOffice Fresh package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or LibreOffice Fresh, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus