Downloads:

143,549

Downloads of v 0.6.13.0:

123,004

Last Update:

6/10/2017

Package Maintainer(s):

Software Author(s):

  • Rob Reynolds

Tags:

chocolatey package automatic updater

Chocolatey Automatic Package Updater (for package maintainers)

0.6.13.0 | Updated: 6/10/2017

Downloads:

143,549

Downloads of v 0.6.13.0:

123,004

Maintainer(s):

Software Author(s):

  • Rob Reynolds

Chocolatey Automatic Package Updater (for package maintainers) 0.6.13.0

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install Chocolatey Automatic Package Updater (for package maintainers), run the following command from the command line or from PowerShell:

>

To upgrade Chocolatey Automatic Package Updater (for package maintainers), run the following command from the command line or from PowerShell:

>

To uninstall Chocolatey Automatic Package Updater (for package maintainers), 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 chocolateypackageupdater -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 chocolateypackageupdater -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 chocolateypackageupdater installed
  win_chocolatey:
    name: chocolateypackageupdater
    state: present
    version: 0.6.13.0
    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 'chocolateypackageupdater' do
  action    :install
  version  '0.6.13.0'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: chocolateypackageupdater,
    Version: 0.6.13.0,
    Source: STEP 3 URL
);

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


cChocoPackageInstaller chocolateypackageupdater
{
   Name     = 'chocolateypackageupdater'
   Ensure   = 'Present'
   Version  = '0.6.13.0'
   Source   = 'STEP 3 URL'
}

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


package { 'chocolateypackageupdater':
  provider => 'chocolatey',
  ensure   => '0.6.13.0',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install chocolateypackageupdater version="0.6.13.0" 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 9/3/2019.

Description

ChocolateyPackageUpdater (chocopkgup) - your automatic package updating solution for package maintainers.

This works in conjunction with ketarin to keep the chocolatey packages you maintain automatically updated. So you don't even have to think about updating a package or keeping it up to date. It just happens. Automatically, in the background, and even faster than you could make it happen. It's almost as if you were the application/tool author.

See https://chocolatey.org/docs/automatic-packages for creating automatic packages.

FAQs

  1. Is it magic? I'm not sure.
  2. Does it work? Is like Schwarzenegger hard to spell?
  3. How does it work? See the project url for more information.
  4. Is it harder than maintaining a package myself? Not really. You pay an initial upfront cost, but it's small compared to maintenance over time.
  5. Is it perfect? Is anything?
  6. Is it free? Yes! As long as you release your packages openly at chocolatey.org, this is free! If you want to use it for private packages, you will need to pony up some $$.

tools\chocolateyInstall.ps1
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" 
$installDir = Join-Path $toolsDir 'chocopkgup' 
$installDirBackup = $installDir.Replace("\lib\","\lib-bkp\")

$binRoot = Get-BinRoot
$oldInstallDir = Join-Path $binRoot 'ChocolateyPackageUpdater'
$oldInstallDirBackup = Join-Path $binRoot 'ChocolateyPackageUpdater.backup'

if ([System.IO.Directory]::Exists($oldInstallDir)) {
  Copy-Item "$($oldInstallDir)\chocopkgup.exe.config" "$installDir" -Force -Recurse
  Copy-Item "$($oldInstallDir)\chocopkgup.exe.config" "$installDirBackup" -Force -Recurse
  if (![System.IO.Directory]::Exists($oldInstallDirBackup)) {[System.IO.Directory]::CreateDirectory($oldInstallDirBackup)}
  Copy-Item "$($oldInstallDir)\*" "$oldInstallDirBackup" -Force -Recurse -ErrorAction Continue
  Write-Warning "Inspect and delete '$oldInstallDirBackup' - new install location is with package"
  [System.IO.Directory]::Delete($oldInstallDir, $true)
}
tools\chocopkgup\chocopkgup.exe
md5: 29D4E00F763A418DA5CD1651DEC3C59E | sha1: 880C775B7F8B0A308BF151EE260A14173105D02D | sha256: 50417DDD1A945581DB5056E4D85A596869E8753963691FA81DCA56C0CEB820CA | sha512: 86DFFC5217AD97A42C7BE927AB8E8679129675C5DA92947B85DC16A6BBB1AF51867AF515635CFC5533852C9F24E466854A6CD93E00455D08338AA6501379BE00
tools\chocopkgup\chocopkgup.exe.config
<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="PackagesFolder" value="C:\code\mine\chocolateyautomaticpackages" />
    <add key="TokenReplaceFileSearchPattern" value="*.txt|*.nuspec|*.ps1|*.config" />
    <add key="PS1FileToExecute" value="ChocoPkgUp.ps1" />
    <add key="LatestPackageVersionOnly" value="true" />
  </appSettings>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
  </startup>
</configuration>
tools\chocopkgup\chocopkgup.exe.config.install.xdt
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  <appSettings>
    <add key="PackagesFolder" value="C:\code\mine\chocolateyautomaticpackages" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
    <add key="TokenReplaceFileSearchPattern" value="*.txt|*.nuspec|*.ps1|*.config" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
    <add key="PS1FileToExecute" value="ChocoPkgUp.ps1" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
    <add key="LatestPackageVersionOnly" value="false" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
  </appSettings>
</configuration>
tools\chocopkgup\ketarinupdate.cmd
@echo off
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c%%a%%b)
For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set mytime=%%a%%b)

"Ketarin.exe" /silent /log=C:\ProgramData\chocolateypackageupdater\ketarin.%mydate%_%mytime%.log
tools\chocopkgup\License.txt
Chocolatey Package Updater
Copyright (C) 2012-Present RealDimensions Software, LLC ("RDS")
===================================================================
Grant of License
===================================================================
You may use Chocolatey Package Updater with this notice and the provided license.xml file if you use it only to keep packages up to date on (and only on) the feed(s) for http://chocolatey.org. 

The use of feeds other than chocolatey.org ("proprietary feeds") is strictly prohibited.

You can use other means to copy said packages from chocolatey.org to proprietary feeds provided the following criteria are met:
 1. The packages on chocolatey.org are not hidden or otherwise unusable from the site and client(s) that would connect to chocolatey.org. 
 2. Packages are updated first on chocolatey.org prior to being copied to proprietary feeds.
 3. Packages must remain available on chocolatey.org indefinitely or until the package is no longer usable. 
 4. The package must be removed from proprietary feeds at the same time as the package is hidden on chocolatey.org.
 3. This is the only grant of private/proprietary use and subject to change at any time with or without notice.

If you would like to use this for private, proprietary, or other feeds that are not chocolatey.org, you must obtain a personal or commercial license to do so. To do that you must contact RDS at ferventcoder.com.

This software is not free to distribute and should only be packaged on authorized sources, such as but not limited to chocolatey.org. If you would like to distribute this software, you must receive written permission from the software owner.

===================================================================
End-User License Agreement
===================================================================
EULA - Chocolatey Package Updater 

IMPORTANT- READ CAREFULLY: This RealDimensions Software ("RDS") End-User License Agreement ("EULA") is a legal agreement between you("End User") and RDS for all RDS products, controls, source code, demos, intermediate files, media, printed materials, and "online" or electronic documentation ("SOFTWARE PRODUCT(S)") contained with this distribution. 

RDS grants to you as an individual, a personal, nonexclusive license to install and use the SOFTWARE PRODUCT(S) for the sole purposes of keeping packages up to date on the feed(s) of http://chocolatey.org ("chocolatey.org"). By installing, copying, or otherwise using the SOFTWARE PRODUCT(S), you agree to be bound by the terms of this EULA. If you do not agree to any part of the terms of this EULA, DO NOT INSTALL, USE, OR EVALUATE, ANY PART, FILE OR PORTION OF THE SOFTWARE PRODUCT(S). 

ALL SOFTWARE PRODUCT(S) are licensed not sold. If you are an individual, you must acquire an individual license for the SOFTWARE PRODUCT(S) from RDS or its authorized resellers. If you are an entity, you must acquire an individual license for each Developer End User and each Build Machine Running the SOFTWARE PRODUCT(S) within your organization from RDS or its authorized resellers. Both Virtual and Physical Build Machines running the SOFTWARE PRODUCT(S) must be counted in the SOFTWARE PRODUCT(S) licenses quantity of the organization.

===================================================================
Commercial / Personal Licensing
===================================================================
Chocolatey Package Updater is also offered under personal and commercial licenses.
You can learn more about this option by contacting RDS at http://ferventcoder.com
tools\chocopkgup\license.xml
<?xml version="1.0" encoding="utf-8"?>
<license id="d8e9752b-1cd2-443f-bc95-bf25954271bb" expiration="2018-06-02T00:00:00.0000000" type="Standard">
  <name>Chocolatey.org Updates Only - Bound By Licensing Agreement in License.txt File</name>
  <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
    <SignedInfo>
      <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
      <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
      <Reference URI="">
        <Transforms>
          <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
        </Transforms>
        <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <DigestValue>muWal+dJlO1USdMsNk/MdpzthwY=</DigestValue>
      </Reference>
    </SignedInfo>
    <SignatureValue>JDJ2IN7FT+i8u1jQaAyVdhJctN0g35+OCHas+osD7lYmoL/0EGdfsetdmWIGHzgHdCFJnhEEgyEG9F/oWp/A6kQEo98YybXQqv6bWM9fniHG7UjlvB/cUaMy7aZU3J2jlbyQp+3lpBrvIpbgh2KUFqz5IMkWUGmhEhzypWVGJdA=</SignatureValue>
  </Signature>
</license>

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
Chocolatey Automatic Package Updater (for package maintainers) 0.6.12.0 2271 Tuesday, January 3, 2017 Approved
Chocolatey Automatic Package Updater (for package maintainers) 0.6.11.0 2933 Monday, August 22, 2016 Approved
Chocolatey Automatic Package Updater (for package maintainers) 0.6.10.0 294 Monday, August 22, 2016 Approved
Chocolatey Automatic Package Updater (for package maintainers) 0.6.9.0 473 Thursday, August 18, 2016 Approved
Chocolatey Automatic Package Updater (for package maintainers) 0.6.8.0 679 Thursday, June 30, 2016 Approved
Chocolatey Automatic Package Updater (for package maintainers) 0.6.7.0 1627 Thursday, December 31, 2015 Approved
Chocolatey Automatic Package Updater (for package maintainers) 0.6.6.0 1743 Tuesday, June 30, 2015 Approved
Chocolatey Automatic Package Updater (for package maintainers) 0.6.5.0 1841 Wednesday, February 18, 2015 Approved
Chocolatey Automatic Package Updater (for package maintainers) 0.6.4.0 1226 Thursday, January 1, 2015 Approved

v0.6.13

  • Update license to 6/2/2018

v0.6.12

  • Update license

v0.6.11

  • Fix - Allow only keeping the latest of each package in the _output folder. This time with feeling.

v0.6.10

  • Fix - Allow only keeping the latest of each package in the _output folder.

v0.6.9

  • Allow prerelease versions passed in as the version string (- in the version or 1.0.0-beta1) - #12
  • Do not edit the version, pass in --beta - #18
  • Pass in checksumType and checksumTypex64 - #25
  • Only keep the latest files for each package in the _output folder - #5
  • Use the package directory instead of Get-BinRoot - #26

v0.6.8

  • Don't fail on invalid license until after packages are generated
  • Update license

v0.6.7

  • Update license

v0.6.6

  • Update license

v0.6.5

  • Use choco to push packages.

v0.6.4

v0.6.3

  • License does not expire until 06/30/2014

v0.6.2

  • License does not expire until 12/31/2014

v0.6.0

  • License does not expire until 6/30/2014
  • You can define a PS1 file in the package folder to be called by the updater just before packaging. Use it to download files or whatever else might be necessary. The file that it looks for is named ChocoPkgUp.ps1 by default.

v0.5.6

  • License does not expire until 12/31/2013
  • The output folder is now a subfolder "_output" of your package folder, allowing you to commit for others to look at later and provide fix pull requests.

Discussion for the Chocolatey Automatic Package Updater (for package maintainers) Package

Ground Rules:

  • This discussion is only about Chocolatey Automatic Package Updater (for package maintainers) and the Chocolatey Automatic Package Updater (for package maintainers) 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 Chocolatey Automatic Package Updater (for package maintainers), 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