Git Product home page Git Product logo

Comments (2)

o-l-a-v avatar o-l-a-v commented on May 26, 2024 1

@mdanish-kh

Yes, I've found the winget list equivalent cmdlet, but I don't view it as equivalent to winget upgrade as it returns all installed packages. Yes you can filter with PowerShell, but still.

If Get-WinGetPackage gets support to view updates for pinned packages too I guess we have the barebone functionality in place. But I'd still want a winget upgrade equivalent cmdlet.

from winget-cli.

mdanish-kh avatar mdanish-kh commented on May 26, 2024

I find no similar functionality in Microsoft.WinGet.Client

Have you tried using Get-WinGetPackage | Where-Object {$_.IsUpdateAvailable}? This command will include packages with installed versions as "Unknown" by default giving you the --include-unknown functionality. If you want to exclude those, you can do it with a check as: Get-WinGetPackage | Where-Object {$_.IsUpdateAvailable -and $_.InstalledVersion -ne "Unknown"}

As for --include-pinned, I believe that functionality will be added when support for pinning is added to PowerShell module. See #3234.

Note: Get-WinGetPackage is equivalent to the winget list command. You can think of the above command as an equivalent to winget list --upgrade-available (which itself is equivalent to winget upgrade)

from winget-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.