Skip to content
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

-exclude Application from "winget upgrade --all" #3851

Closed
giuseppebin opened this issue Nov 4, 2023 · 4 comments
Closed

-exclude Application from "winget upgrade --all" #3851

giuseppebin opened this issue Nov 4, 2023 · 4 comments
Labels
Issue-Feature This is a feature request for the Windows Package Manager client. Resolution-Duplicate Issue is a duplicate
Milestone

Comments

@giuseppebin
Copy link

giuseppebin commented Nov 4, 2023

Description of the new feature / enhancement

Can we exclude some app from the "winget upgrade --all" please? Maybe some flag for the apps that can be recognised from the upgrade command? thanks.

Proposed technical implementation details

No response

@giuseppebin giuseppebin added the Issue-Feature This is a feature request for the Windows Package Manager client. label Nov 4, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Nov 4, 2023
@giuseppebin giuseppebin changed the title -exclude Application from upgrade --all -exclude Application from "winget upgrade --all" Nov 4, 2023
@CoolPlayLin
Copy link

CoolPlayLin commented Nov 4, 2023

Hi @giuseppebin
Maybe use pin command is a better way to do this? If you don't want to update specific software, you could use winget pin <package> command to prevent its updating.

@Trenly
Copy link
Contributor

Trenly commented Nov 4, 2023

To prevent a package being included in winget upgrade --all you can pin the package as @CoolPlayLin mentioned above.

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-Duplicate Issue is a duplicate and removed Needs-Triage Issue need to be triaged labels Nov 4, 2023
@giuseppebin
Copy link
Author

Hi @giuseppebin Maybe use pin command is a better way to do this? If you don't want to update specific software, you could use winget pin <package> command to prevent its updating.

oh I'm so sorry... I searched badly for this.

Many thanks.

This command is what i was looking for:
winget pin add <package>
and the corollary winget unpin <package>

thanks to all.

@bunam
Copy link

bunam commented Mar 11, 2024

pinned app aren't excluded

"1 package(s) ont des épingles qui empêchent la mise à niveau. Utilisez la commande « winget pin » pour afficher et modifier les épingles. L’utilisation de l’argument --include-pinned peut afficher plus de résultats."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature This is a feature request for the Windows Package Manager client. Resolution-Duplicate Issue is a duplicate
Projects
None yet
Development

No branches or pull requests

5 participants