How to get a list of packages from one machine and install in another with Chocolatey?

If you have a look at the help information for the choco install command (you can do this using choco install -h, you will find the following usage: cinst <pkg|packages.config> [<pkg2> <pkgN>] [<options/switches>] As you will see, it is possible to pass a packages.config file, which would contain all the packages that you want to … Read more

How to refresh the environment of a PowerShell session after a Chocolatey install without needing to open a new session

You have a bootstrapping problem: refreshenv (an alias for Update-SessionEnvironment) is generally the right command to use to update the current session with environment-variable changes after a choco install … command. However, immediately after installing Chocolatey itself, refreshenv / Update-SessionEnvironment themselves are only available in future PowerShell sessions, because loading these commands happens via code … Read more

How do I set Chocolatey to install applications onto another drive?

Chocolatey FOSS For each application, you would need to know its command line switch used during installation to change its installation directory and pass it using –installArgs. See Install Command (choco install) and Overriding default install directory or other advanced install concepts. Another way to ensure a different drive is to relocate your Program Files … Read more

How do I downgrade a Chocolatey package?

In most cases you will likely want to perform an uninstall and then an install. > choco uninstall virtualbox > choco install virtualbox –version 4.3.26 In almost all cases, the question is not whether Chocolatey will support it, but whether the underlying software supports a downgrade. With respect to MSIs, they don’t always support downgrades … Read more

How do I update all Chocolatey applications without confirmation?

As Rob points out, -y will skip the prompts for a given command. If you’d rather not be bothered with confirmation prompts at all, you can set the option globally. The following enables allowGlobalConfirmation, which will install or update without confirmation prompts. choco feature enable -n=allowGlobalConfirmation If you ever want to turn the prompts back … Read more

Difference between Chocolatey and NuGet

NuGet is designed to allow you to easily add code libraries to your project. Things like JSON.NET, Entity Framework, etc. Chocolatey is actually built on top of the NuGet package system, but it is designed to fill a different need. Chocolatey wraps up applications and other executables and makes it easy to install them on … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)