ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Chocolatey.org: Install vs. Upgrade

    Scheduled Pinned Locked Moved IT Discussion
    5 Posts 3 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gjacobseG
      gjacobse
      last edited by

      Looking at my scripts to install / update applications using Chocolatey.org I noticed when I did an Upgrade on an application that wasn't installed, it installed it for me.

      C:\WINDOWS\system32>choco upgrade javaruntime -force -y
      Upgrading the following packages:
      javaruntime
      By upgrading you accept licenses for the packages.
      javaruntime is not installed. Installing...
      
      jre8 v8.0.101 (forced)
       Searching if new version exists...
       Downloading jre8 32 bit
         from 'http://javadl.oracle.com/webapps/download/AutoDL?BundleId=211997'
       Installing jre8...
       jre8 has been installed.
       Downloading jre8 64 bit
         from 'http://javadl.oracle.com/webapps/download/AutoDL?BundleId=211999'
       Installing jre8...
       jre8 has been installed.
       Searching if the previous version exists...
       The upgrade of jre8 was successful.
      
      javaruntime v8.0.73 (forced)
       The upgrade of javaruntime was successful.
      
      Chocolatey upgraded 2/2 package(s). 0 package(s) failed.
       See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
      
      1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        Upgrade is standard nomenclature for packaging systems to upgrade of installed and to install if not. Upgrade on RPM is identical.

        On RPM, what you would be looking for is called Freshen.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          If you don't specify package names it will only upgrade what is installed.

          JaredBuschJ 1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch @scottalanmiller
            last edited by

            @scottalanmiller said in Chocolatey.org: Install vs. Upgrade:

            If you don't specify package names it will only upgrade what is installed.

            Right. I have scheduled task that runs this command.

            choco upgrade all -y
            
            gjacobseG 1 Reply Last reply Reply Quote 3
            • gjacobseG
              gjacobse @JaredBusch
              last edited by

              @JaredBusch said in Chocolatey.org: Install vs. Upgrade:

              @scottalanmiller said in Chocolatey.org: Install vs. Upgrade:

              If you don't specify package names it will only upgrade what is installed.

              Right. I have scheduled task that runs this command.

              choco upgrade all -y
              

              That is much easier than doing them one at a time. Thanks.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post