Getting Started with Chocolatey
-
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
-
Here is a quick link to the full Chocolatey Command Reference.
-
Thanks!
-
@anonymous said:
And on remote computers?
You want to know how to run PowerShell commands remotely?
-
Updated the post with the more current installation command.
-
@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.
-
@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. -
@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.
-
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
-
@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.