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

    Getting Started with Chocolatey

    IT Discussion
    chocolatey windows
    5
    10
    1.4k
    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.
    • S
      scottalanmiller
      last edited by scottalanmiller

      Just an example setup to get you started with Chocolatey package management. Simple setup here, just going to do a standalone system, on Windows 10 in the example.

      First, run PowerShell as Administrator

      In PowerShell, run these commands:

      Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
      

      Now Chocolatey is installed and ready to use. We can now use Chocolatey to install a new package from the Chocolatey Gallery. We will try FileZilla in our example. In CMD or PowerShell just run this command:

      choco install filezilla
      

      Now to perform an update of FileZilla we can just do:

      choco upgrade filezilla
      

      Or to upgrade every package that Chocolatey manages just do:

      choco upgrade
      
      J 1 Reply Last reply Reply Quote 3
      • S
        scottalanmiller
        last edited by

        Here is a quick link to the full Chocolatey Command Reference.

        1 Reply Last reply Reply Quote 0
        • A
          Alex Sage
          last edited by Alex Sage

          Thanks!

          S 1 Reply Last reply Reply Quote 0
          • S
            scottalanmiller @Alex Sage
            last edited by

            @anonymous said:

            And on remote computers?

            You want to know how to run PowerShell commands remotely?

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

              Updated the post with the more current installation command.

              1 Reply Last reply Reply Quote 1
              • J
                jmoore @scottalanmiller
                last edited by

                @scottalanmiller The cmd install is different btw so you have to use that version. To upgrade everything its choco upgrade all -y. I don't think that will work with no packages listed or not using all.

                J 1 Reply Last reply Reply Quote 0
                • J
                  JaredBusch @jmoore
                  last edited by JaredBusch

                  @jmoore said in Getting Started with Chocolatey:

                  @scottalanmiller The cmd install is different btw so you have to use that version.

                  The cmd version just calls the powershell version. But no one should be using anything but powershell in the first place IMO.

                  @jmoore said in Getting Started with Chocolatey:

                  To upgrade everything its choco upgrade all -y. I don't think that will work with no packages listed or not using all.

                  Have you read the manual? Because all is a package. It is a special package that tells it to do everything.

                  Also, -y is only if you want it to be non interactive and automatically accept all yes no prompts. That is not technically part of the upgrade command, it is a switch/option of the command.

                  0_1541608084287_f246038d-3000-4811-a0fd-58c66a577b9c-image.png

                  J 1 Reply Last reply Reply Quote 1
                  • J
                    jmoore @JaredBusch
                    last edited by

                    @JaredBusch Your right about using powershell. I did read the manual but did not remember [all] being a package. My mistake then. Yes [-y] would be a switch; I did not mean to imply it was part of the [upgrade] command but was giving a usage example.

                    1 Reply Last reply Reply Quote 0
                    • B
                      black3dynamite
                      last edited by

                      With most recent PowerShell version, is this a newer way of installing chocolatey?
                      https://chocolatey.org/install#install-from-powershell-v3
                      Set-ExecutionPolicy Bypass -Scope Process -Force; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        scottalanmiller @black3dynamite
                        last edited by

                        @black3dynamite said in Getting Started with Chocolatey:

                        With most recent PowerShell version, is this a newer way of installing chocolatey?
                        https://chocolatey.org/install#install-from-powershell-v3
                        Set-ExecutionPolicy Bypass -Scope Process -Force; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex

                        Nothing officially listed yet.

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