-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check if Package installed #291
Comments
Is this with respect to dependencies? Like frameworks or runtimes you may depend on? Or other packages? |
@KevinLaMS Just as we can easily install packages (winget install id), a simple command (winget exist id) can check the user's system for the installation of that package and return true or false |
No, there's no implementation for that yet. Subscribe to #153 |
It would be even more helpful if we could also specify a PowerShell |
I'd like the ability to know which packages are installed / have been installed via winget; and to ideally export to a file for future setups. My use case is a brand new Surface Laptop 3, migrating from an HP, would be great to know what I just winget-installed, and to export to a file for a future new setup, similar to a Brewfile. I understand that winget is not homebrew, but this would be very useful. |
@andypiper the experimental "list" command will tell you everything that is installed on the system. We have #220 export/import on the backlog to do what you're talking about. |
I have a script that installs and updates certain software. It does not currently use winget, because of the lack of an easy way to check first if a package is already installed. Basically, do a |
This behavior is different as per the apps: Note: Below packages are already installed! When AnyDesk is already installed: When Notepad++ is already installed: Where, Some other packages get insalled again.. 😞 Btw, |
|
@sanamhub you can use
|
I've looked at all of the other comments on this issue. I believe they are either implemented or already on the backlog as another issue. I'm going to go ahead and close this one. |
To the ones still looking for an answer, this works for me:
|
thank you brother! you saved me another week |
hi is there any command to check if package installed?
The text was updated successfully, but these errors were encountered: