As a reluctant windows admin I like Chocolatey a lot. I have installed some of our software with special parameters, e.g. choco install webex --params "/ALLUSERS". Infortunately, when I run choco upgrade all those params seem to get lost, when the package actually received an upgrade. Consequently, in this case other users can no longer use webex.
Is there a way to keep those params when doing an choco upgrade all?
So far, I have to take care about this case when upgrading, and then do an excplicit uninstall and then re-install as shown above with the desired params. Suboptimal.
Ensure you have the Chocolatey feature useRememberedArgumentsForUpgrades enabled. You can do this by running choco feature enable -n='useRememberedArgumentsForUpgrades'
See the docs for more information.
Related
I've installed Firefox using Chocolatey to the different install directory C:\Software\Firefox with the following command: choco install firefox --params "/InstallDir:C:\Software\Firefox"
When upgrading Firefox via choco upgrade firefox, the Firefox installation gets moved from C:\Software\Firefox to the Firefox default C:\Program Files\Mozilla Firefox.
Can I somehow work around this behavior so that my custom install directory gets preserved even on choco upgrade?
Thanks!
I had to enable the Chocolatey feature useRememberedArgumentsForUpgrades with the following command:
choco feature enable --name=useRememberedArgumentsForUpgrades
After this, the install directory was preserved even when calling choco upgrade.
Is there any way, within the chocolateyinstall.ps1 file, to check if the process was triggered with the Upgrade command versus the Install command?
I tried using things like "choco list --lo" and "choco outdated", but those kept bringing up the package currently being installed - even if it hadn't yet been fully installed. I was hoping there was some sort of environment variable or something easy that I've overlooked.
Thanks!
I have installed yarn via windows installer sometimes back. Now I want to update it to latest version. How can I do that?
The following worked for me:
npm i -g yarn
Just download the new installer and rerun the setup.
choco upgrade yarn -y
open powershell as administrator
run choco upgrade yarn -y
I stumble across this minutes ago, searching on the docs I found nothing but 'yarn self-update', I don't know if this is a deprecated command, but themselves do not recommend it. so I looked for the install options and it give the Chocolatey package. So just upgrade via it.
I need Wget for my Laravel v5.2 & PhP v7 practice and I am stack since couple hours as I coudn't find any way to install Wget on Windows10 any help would be appreciated.
While this question is not strictly Laravel oriented, this question may get asked again.
There are a number of ways to install wget on Windows. The Chocolatey package manager has a build available for install:
https://chocolatey.org/packages/Wget
To install Chocolatey, follow their installation instructions:
https://chocolatey.org/install
There's also a number of other good tools for Windows Laravel dev available through Chocolatey, such as Redis (great for cache and queue work)
https://chocolatey.org/packages/redis
Take a look through the packages available to customise your Windows Laravel environment.
I'm something of a Cygwin newbie, so that might be the problem, but I'm trying to install a package using apt-get and it's telling me there's no such command. I installed it on Windows 7.
The best I got from searching other questions here and across the net was that you need to install something specific (or run the setup file to update) when initially installing, but it's not clear to me what I need to install or run or whatever.
How do I install or update my cygwin to be able to use apt-get or, alternatively, how would I install packages with the basic, default installation of Cygwin that I already have?
Thank you.
You can use this : apt-cyg
It works just like apt-get in terms of command line arguments, but you will be using apt-cyg instead.
Refer https://github.com/transcode-open/apt-cyg It did helped me.
To install apt-cyg package.
Cygwin's official installer is setup.exe. This is the "proper" way to install Cygwin packages. There's a project called cyg-apt but it's not officially part of Cygwin.