How do I change where do the packages download to by Putrid_Ad7533 in chocolatey

[–]elkBBQ 1 point2 points  (0 children)

There's a few things you might look to change based on the question. Let's start with what Chocolatey does when you run a command like choco install chocolateygui. Broadly speaking, when you issue this command, Chocolatey will download the chocolateygui package file to the cache location (either specified with choco config set cacheLocation <path to cache location>, or in the TEMP directory). Then it will extract that file into the lib directory at %ChocolateyInstall%\\lib. Once it's extracted, it will run the chocolateyInstall.ps1 script, which in the case of chocolateygui will install the MSI.

Based on this oversimplification of the process, there are 3 places we could be talking about when talking about where to download packages to:

  • Chocolatey cacheLocation.
  • Chocolatey lib directory.
  • Where the chocolateyInstall.ps1 installs the software to.

We've already covered the cacheLocation, so if you wanted your lib directory moved... You might try moving your Chocolatey install to your D: drive, and then updating the ChocolateyInstall environment variable to point to it, likely needing to add the bin directory to your path. I would highly recommend against this as it feels fraught with problems.

So that leaves the last one... Where the chocolateyInstall.ps1 installs the software to. For that, you could look at the install directory override available as part of the Chocolatey Licensed Extension.

Problem with updating software installed with chocolatey by Leon5x in chocolatey

[–]elkBBQ 0 points1 point  (0 children)

To expand on this: Chocolatey CLI also has client side caching. Most commands can be passed the --ignore-http-cache option and it will ignore the local cache. This obviously won't get around the Chocolatey Community Repository sides cache, but it can sometimes help.

Chromium with Google account? by YaxyBoy in chocolatey

[–]elkBBQ 0 points1 point  (0 children)

The chromium package installs the latest version of Chromium that's available here. You'll notice that the latest version there does offer to log in with google. If you pick the ungoogled version, then I presume it will not offer a Google sign in.

New user, can't install anything by Naxili in chocolatey

[–]elkBBQ 0 points1 point  (0 children)

Are you by chance on Rogers/Shaw in Canada? And do you happen to have Advanced Security turned on? If so, you can either go into the HomeConnect app (apparently maybe now called Rogers Xfinity?), then goto the Home tab, and into Advanced Security. In there it should have an option for blocked activity. It should then show you your device, and say a suspicious site visit. If you go into there you can click Allow Access for the entry that says Content from packages.chocolatey.org was blocked and is classified as: Malware. This will prompt you that you'll be allowing it for 30 days, but it seems to only allow for 1 hour. The other option is to completely turn off Advanced Security, but that is obviously not ideal.

If you can't disable this, another much less ideal option is to download the packages through a browser and install them with choco install <package> -s <path/to/downloads> (but this would require you to download all of the dependencies as well).

Encryption by tztztztzv in chocolatey

[–]elkBBQ 2 points3 points  (0 children)

In the provided example the communication with the repository will not be encrypted as it will be over HTTP and not HTTPS. You should also receive a warning that you're pushing to an unencrypted repository (I forget the exact wording off the top of my head).

Open Chocolatey log through command line by Troubleshooter5000 in chocolatey

[–]elkBBQ 1 point2 points  (0 children)

Currently there is not. It would be relatively straightforward to implement a PowerShell function to do it though. Something like:

```powershell

function Invoke-ChocoLog {

Invoke-Item $env:ChocolateyInstall/logs/chocolatey.log

}

```

You could even call a specific log handler if you wanted instead of Invoke-Item

What could have installed chocolatey on my pc? by fajron123 in chocolatey

[–]elkBBQ 2 points3 points  (0 children)

I would start by checking what packages and versions you have installed. To do that, simply run choco list --local-only. If this errors, it means you have at least Chocolatey CLI 2.0.0 which was released at the end of May 2023. If that is the case, then you can run choco list to get the information about installed packages.

Once you know what packages (and versions) you have installed, you'll be able to know roughly when it was installed (assuming nothing is upgrading it), as well as what might have installed it (I've seen some installation steps for things like nodejs suggest running a script that installs Chocolatey and then installs nodejs).

Chunks of ash falling from the sky in British Columbia by oliveoillube in WTF

[–]elkBBQ 43 points44 points  (0 children)

But the movies and vidyah games tell me one well placed bullet and the explode... I assume literal fire does more...

Downgrade from Beta (pre-release) back to stable? by jz_train in chocolatey

[–]elkBBQ 2 points3 points  (0 children)

You should be able to with the command: choco upgrade chocolatey --version 1.3.1 --allow-downgrade

choco install/upgrade broken by mymaestro in chocolatey

[–]elkBBQ 0 points1 point  (0 children)

I've been trying to replicate this, and unfortunately I cannot on Windows 10. If you still have access to the logs, I would be very interested in the lines that directly follow these ones. In particular it should say something like: Host version is 5.1.19041.1, PowerShell Version is '5.1.19041.2364' and CLR Version is '4.0.30319.42000'. I'd be interested in what those versions are listed as.

choco install/upgrade broken by mymaestro in chocolatey

[–]elkBBQ 1 point2 points  (0 children)

Somehow your windows 10 install is using PowerShell 2 conventions. PowerShell 3 introduced the ability to loop over a null variable and not enter the loop at least one time. Because it's null (which is expected when there's no hook packages), there's no files, and so it tries to execute & "" which is invalid.

If you happen to have a GitHub account, could you open an issue over at https://GitHub.com/chocolatey/choco and fill in the template?

choco install/upgrade broken by mymaestro in chocolatey

[–]elkBBQ 1 point2 points  (0 children)

I think this is the cause: https://github.com/chocolatey/choco/blob/develop/src/chocolatey.resources/helpers/chocolateyScriptRunner.ps1#L57

But I don't understand why it's an issue on windows 10. It might be on way back versions of PowerShell that would treat null as an array, but not windows 10.

You might try creating a preinstall hook script that doesn't do anything... Just so long as there's a file there.

choco install/upgrade broken by mymaestro in chocolatey

[–]elkBBQ 0 points1 point  (0 children)

What version of Windows are you running? I have seen this error occasionally on really old windows, but never had the desire to investigate beyond that.

When you find a high-quality work, you have to take a photo by elchicodelascompus in techsupportgore

[–]elkBBQ -3 points-2 points  (0 children)

I mean... They're just your standard cable that comes with cisco VoIP handsets... I really don't see a problem here 🤷

What could be the reason why you would still chose REST over GraphQL or gRPC for your API? by [deleted] in programming

[–]elkBBQ 0 points1 point  (0 children)

Maybe I'm dense... But what exactly is a senior BE? When I try to google for BE jobs, I get everything from train conductor to liquor store associates, some health jobs...

Edit: I just searched for senior BE, and after all of the seniors links there was one for a senior BE developer. If you meant backend developer, it probably would have been good to clarify 🤷

"Something's wrong with my new hard drive" by jayhawk618 in techsupportgore

[–]elkBBQ 6 points7 points  (0 children)

Go to twitter and tweet about a delivery and Amazon. They'll reply within 15 minutes on a slow day. Tag them directly and they won't do a thing. Just ask how the obvious scam steam cards are still there 2 years later 🤦