Comments (19)
@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.
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.
@SyrianBallaS what version of choco are you using?
from choco.
0.9.9.12
from choco.
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.
from choco.
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.
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.
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.
from choco.
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.
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.
we are getting better at MSI change tracking next version.
from choco.
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.
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.
@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.
@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.
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.
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.
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.
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)
- Can't change default choco installation directory HOT 10
- Convert PowerShell Functions to C# CmdLets HOT 2
- Both upgrade and uninstall obs-studio.install fail blocking upgrade nodejs HOT 3
- Can't install adittional nodejs tools HOT 8
- Update Build scripts to call the base script.
- bind-toolsonly error : parse of C:\WINDOWS\system32\etc\resolv.conf failed HOT 2
- Chocolatey v2.3.0 || Failed to fetch results from V2 feed HOT 2
- Failing to install dependencies does not always fail packages which require them, leaving chocolatey in a broken state HOT 1
- NuGet 503 (Service Unavailable: Back-end server is at capacity) results in chocolatey package loss (no more upgrades!) HOT 1
- Chocolatey CLI is reporting successful installation when package is rolled back
- Increase retry timeout when deleting files or folders
- Unable to load the service index for source HOT 3
- Gleam installation fails with dependency constraint HOT 1
- The message ` 'vcredist140 14.40.33810' is not compatible with 'missionplanner 1.3.81 constraint: vcredist140 (>= 14.30.30704)'` does not seem logical HOT 5
- When installing or upgrading packages with dependencies, the error 'Unable to resolve dependency' is encountered
- Add a parameter `--lts` to the `choco install` command HOT 6
- Problems updating packages with existing dependencies pushed by previous versions of Chocolatey (probably due to SemVer v2 enforcement since choco v2) HOT 5
- Chocolatey folder migration logic should be removed from `chocolateysetup.psm1` file HOT 1
- With S3bucket as Sleet source choco cannot list more than 30 packages HOT 13
- Key not valid for use in specified state. HOT 27
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from choco.