Giter Site home page Giter Site logo

Comments (19)

bcurran3 avatar bcurran3 commented on May 18, 2024 2

@jzabroski - You typo-ed.

choco.exe list --**localy-only** --all-versions --include-programs

"localy" will give you the error you pasted as it's not a valid switch and (seemingly ignored?) goes out to https://chocolatey.org/api/v2/ to get a list of all packages in community repository feed (which is currently having caching problems).

When you retried after your upgrade, you didn't do the typo and all worked as supposed and your expectations. :)

from choco.

SyrianBallaS avatar SyrianBallaS commented on May 18, 2024

I can reproduce this issue by typing: "choco list -li".

The only "workaround" I could find is to completely uninstall using Revo Uninstaller, and reinstall with chocolatey. This is because sometimes packages that should be uninstalled are still there.

One more thing to add, apps like skype and the VS runtimes, or any software that has a different name than the package name will show up in the not managed part.

from choco.

ferventcoder avatar ferventcoder commented on May 18, 2024

@SyrianBallaS what version of choco are you using?

from choco.

SyrianBallaS avatar SyrianBallaS commented on May 18, 2024

0.9.9.12

from choco.

ferventcoder avatar ferventcoder commented on May 18, 2024

That's an interesting observation - the package name has nothing to do with the tracking of the actual software.

Follow the link:

image

Note the registry snapshot file:

https://gist.github.com/choco-bot/b309ca01ed32fcbb4e22f5c80b3728ef#file-1-registrysnapshot-xml

image

Name doesn't matter.

from choco.

ferventcoder avatar ferventcoder commented on May 18, 2024

We talk more about tracking installed software and uninstalls, but it's probably best laid out in how AutoUninstaller works - https://chocolatey.org/docs/commands-uninstall

from choco.

ferventcoder avatar ferventcoder commented on May 18, 2024

I'd suggest turning it on with choco feature enable -n autoUninstaller so that it will uninstall the applications when it uninstalls the packages.

from choco.

SyrianBallaS avatar SyrianBallaS commented on May 18, 2024

I already have that enabled, some packages do not get off the list even after uninstalling. aida64extreme 4.60.3100 for example.
image

And let me show you the skype:
It seems to have resolved itself, but similar to the OP, at in the Managed Packages part it would say:
skype 7.24.0.104

Unmanaged part:
SkypeT 7.24.0.104 | 7.24.0.104

Maybe I should enable the failOnAutoUninstaller as well.

from choco.

SyrianBallaS avatar SyrianBallaS commented on May 18, 2024

I'm actually quite interested in this project and wish to contribute. I love the efficiency of Linux but it's moderately tedious to work with. I find the simplicity of Windows w/ the efficiency of Linux quite fascinating.

Would be better to clone the repository directly or fork it over? I'm not quite sure how to make branches on projects not in my profile.

from choco.

ferventcoder avatar ferventcoder commented on May 18, 2024

The problem you are describing is when there is no snapshot discovered when installing software, which happens if the registry does not change on install. It's harder for Chocolatey to track pre-existing software, especially if the uninstaller registry does not change.

from choco.

ferventcoder avatar ferventcoder commented on May 18, 2024

we are getting better at MSI change tracking next version.

from choco.

ferventcoder avatar ferventcoder commented on May 18, 2024

For contributing - you would want to fork so you have a remote repository you can push to to provide Pull Requests. We have a pretty good write up in CONTRIBUTING.md in the base of the repo - https://github.com/chocolatey/choco/blob/master/CONTRIBUTING.md

It has some very detailed expectations related to git and commits. I would definitely read that through. 👍

from choco.

jzabroski avatar jzabroski commented on May 18, 2024

The following hangs on my machine:

PS C:\WINDOWS\system32> choco.exe list --localy-only --all-versions --include-programs
Chocolatey v0.10.7

Edit: After awhile, it returned the following weird error for --local-only flag!

[NuGet] Could not connect to the feed specified at 'https://chocolatey.org/api/v2/'. Please verify that the package source (located in the Package Manager Settings) is valid and ensure your network connectivity.
0 packages found.

Did you know Pro / Business automatically syncs with Programs and
 Features? Learn more about Package Synchronizer at
 https://chocolatey.org/compare

from choco.

bcurran3 avatar bcurran3 commented on May 18, 2024

@jzabroski You're getting hit by the problem with the chocolatey.org caching controller. I just did a search for packages on the page - 1st time showed results 2nd time showed 0 packages.

This is a chocolatey.org problem. You should inform the powers that be in the Chocolatey Google Groups or on the Chocolatey Gitter channel (best).

https://groups.google.com/forum/#!forum/chocolatey
https://gitter.im/chocolatey/choco
https://status.chocolatey.org/

from choco.

jzabroski avatar jzabroski commented on May 18, 2024

@bcurran3 I think you're literally not seeing what I'm seeing. Why on God's green earth is --local-only doing an HTTP call??

from choco.

jzabroski avatar jzabroski commented on May 18, 2024

Looks like upgrading to v0.10.11 fixed the problem for me... I'll try to dig into why --local-only is so insane and see if it still is insane on v0.10.11

from choco.

datocrats-org avatar datocrats-org commented on May 18, 2024

One thing I noticed with was when I ran the choco list -lai shorthand of the command in a non-admin powershell prompt, I get a low number of packages managed by chocolatey sometimes. As soon as I rerun the same command as an admin powershell prompt, the strangely shorter list of chocolatey managed packages goes away on the non-admin prompt.

I can't remember exactly the output the first time through, I think it included just the base chocolatey packages, dotnet, and WSL related packages.

chocolatey 0.10.15
chocolatey-core.extension 1.3.5.1
chocolatey-dotnetfx.extension 1.0.1
chocolatey-windowsupdate.extension 1.0.4
DotNet4.5 4.5.20120822
DotNet4.5.2 4.5.2.20140902
dotnet4.6.2 4.6.01590.20190822
dotnetfx 4.8.0.20190930
wsl2 2.0.0.20210721
wsl-ubuntu-2004 20.4.0.20200912

from choco.

TheCakeIsNaOH avatar TheCakeIsNaOH commented on May 18, 2024

I am unable to reproduce this with a build from the latest develop. I installed multiple versions of ruby.install side by side:

\src\chocolatey.console\bin\Debug\choco.exe install ruby.install --version=2.5.9.1 --allow-multiple
\src\chocolatey.console\bin\Debug\choco.exe install ruby.install --version=2.6.10.1 --allow-multiple
\src\chocolatey.console\bin\Debug\choco.exe install ruby.install --version=2.7.6.1 --allow-multiple
\src\chocolatey.console\bin\Debug\choco.exe install ruby.install --version=3.0.4.1 --allow-multiple
\src\chocolatey.console\bin\Debug\choco.exe install ruby.install --version=3.1.2.1

But when I ran \src\chocolatey.console\bin\Debug\choco.exe list --local-only --all-versions --include-programs, none of the ruby installs showed up in the applications not managed by Chocolatey, so multiple versions are noted correctly.

from choco.

TheCakeIsNaOH avatar TheCakeIsNaOH commented on May 18, 2024

As this has not been able to be reproduced with the current version of Chocolatey, and side by side installs are deprecated, this issue can be closed. #2787

from choco.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.