Closed ferventcoder closed 2 years ago
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.
@SyrianBallaS what version of choco are you using?
0.9.9.12
That's an interesting observation - the package name has nothing to do with the tracking of the actual software.
Follow the link:
Note the registry snapshot file:
https://gist.github.com/choco-bot/b309ca01ed32fcbb4e22f5c80b3728ef#file-1-registrysnapshot-xml
Name doesn't matter.
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
I'd suggest turning it on with choco feature enable -n autoUninstaller
so that it will uninstall the applications when it uninstalls the packages.
I already have that enabled, some packages do not get off the list even after uninstalling. aida64extreme 4.60.3100 for example.
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.
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.
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.
we are getting better at MSI change tracking next version.
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. 👍
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
@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/
@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??
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
@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. :)
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
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.
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. https://github.com/chocolatey/choco/issues/2787
Currently the output for all versions shows up correctly, but it doesn't use all versions to detect against the registry managed programs that choco has installed for all versions of a package.
should be