Skip to content

Conversation

@Gobidev
Copy link
Contributor

@Gobidev Gobidev commented Jan 22, 2025

closes #181

Chocolatey package count is very straight forward, as it just counts the directories under C:\ProgramData\chocolatey\lib, which is consistent with chocolatey list.

For winget, I made use of an sqlite3 database under C:\Users\Username\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db, that contains a table ids with entries for each package that is explicitly installed with winget.

winget list lists a bunch more packages as installed by winget, e.g. Microsoft OneDrive and Cortana, but since those were not installed by the user using winget and those packages that were, are included, I think this is good as is.
Nevertheless, feedback by @Un1q32 or @Kodehawa from Gobidev/pfetch-rs#69 for this is welcome.

@grtcdr grtcdr merged commit 588f12e into Macchina-CLI:main Jan 23, 2025
6 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Support the winget package manager

2 participants