List All Installed Packages with Chocolatey


  • Service Provider

    When using Chocolatey on Windows, you will often want to list the currently installed packages on your system. You can do this with the following command...

    choco list --local-only
    

    To list all packages, their versions, and available upgrades...

    choco upgrade all --noop
    

    *Note, this command replaces the older choco version all command.



  • @scottalanmiller said in List All Installed Packages with Chocolatey:

    When using Chocolatey on Windows, you will often want to list the currently installed packages on your system. You can do this with the following command...

    choco list --local-only
    

    To list all packages, their versions, and available upgrades...

    choco upgrade all --noop
    

    *Note, this command replaces the older choco version all command.

    You should have posted this yesterday...



  • @scottalanmiller said in List All Installed Packages with Chocolatey:

    When using Chocolatey on Windows, you will often want to list the currently installed packages on your system. You can do this with the following command...

    choco list --local-only
    

    To list all packages, their versions, and available upgrades...

    choco upgrade all --noop
    

    *Note, this command replaces the older choco version all command.

    This can also be shortened to just choco list -lo


  • Service Provider

    @Obsolesce said in List All Installed Packages with Chocolatey:

    @scottalanmiller said in List All Installed Packages with Chocolatey:

    When using Chocolatey on Windows, you will often want to list the currently installed packages on your system. You can do this with the following command...

    choco list --local-only
    

    To list all packages, their versions, and available upgrades...

    choco upgrade all --noop
    

    *Note, this command replaces the older choco version all command.

    You should have posted this yesterday...

    I use the --local-only often, but I find no benefit to the --noop command. I suspect because I already have a schedule job that executes choco upgrade all -y daily.


  • Service Provider

    Example of the --noop output.

    PS C:\WINDOWS\system32> choco upgrade all --noop
    Chocolatey v0.10.11
    _ Chocolatey:ChocolateyUpgradeCommand - Noop Mode _
    7zip v18.5.0.20180730 is the latest version available based on your source(s).
    7zip.install v18.5.0.20180730 is the latest version available based on your source(s).
    azure-cli v2.0.49 is the latest version available based on your source(s).
    azurepowershell v6.9.0 is the latest version available based on your source(s).
    chocolatey v0.10.11 is the latest version available based on your source(s).
    chocolatey-core.extension v1.3.3 is the latest version available based on your source(s).
    chocolatey-visualstudio.extension v1.7.0 is the latest version available based on your source(s).
    chocolatey-windowsupdate.extension v1.0.3 is the latest version available based on your source(s).
    DotNet4.5.2 v4.5.2.20140902 is the latest version available based on your source(s).
    DotNet4.6.1 v4.6.01055.20170308 is the latest version available based on your source(s).
    dotnet4.6.2 v4.6.01590.20170129 is the latest version available based on your source(s).
    Firefox v63.0.1 is the latest version available based on your source(s).
    git v2.19.1 is the latest version available based on your source(s).
    git.install v2.19.1 is the latest version available based on your source(s).
    GoogleChrome v70.0.3538.7700 is the latest version available based on your source(s).
    hwinfo v5.90 is the latest version available based on your source(s).
    hwinfo.install v5.90 is the latest version available based on your source(s).
    javaruntime v8.0.181 is the latest version available based on your source(s).
    jre8 v8.0.181 is the latest version available based on your source(s).
    KB2919355 v1.0.20160915 is the latest version available based on your source(s).
    KB2919442 v1.0.20160915 is the latest version available based on your source(s).
    KB2999226 v1.0.20181019 is the latest version available based on your source(s).
    KB3033929 v1.0.4 is the latest version available based on your source(s).
    KB3035131 v1.0.2 is the latest version available based on your source(s).
    nextcloud-client v2.3.3.1 is the latest version available based on your source(s).
    putty v0.70.0.20171219 is the latest version available based on your source(s).
    putty.portable v0.70.0.20171219 is the latest version available based on your source(s).
    rufus v3.3 is the latest version available based on your source(s).
    
    You have sql-server-express v13.1.4001.0 installed. Version 14.1801.3958.1 is available based on your source(s).
    sql-server-management-studio v14.0.17285.0 is the latest version available based on your source(s).
    vcredist140 v14.15.26706 is the latest version available based on your source(s).
    vcredist2013 v12.0.40660.20180427 is the latest version available based on your source(s).
    vcredist2015 v14.0.24215.20170201 is the latest version available based on your source(s).
    visualstudio2017-installer v1.0.2 is the latest version available based on your source(s).
    visualstudio2017community v15.8.7.0 is the latest version available based on your source(s).
    visualstudiocode v1.23.1.20180730 is the latest version available based on your source(s).
    vlc v3.0.4 is the latest version available based on your source(s).
    vscode v1.28.2 is the latest version available based on your source(s).
    
    Chocolatey can upgrade 1/38 packages.
     See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
    
    Can upgrade:
     - sql-server-express v14.1801.3958.1
    


  • @JaredBusch said in List All Installed Packages with Chocolatey:

    @Obsolesce said in List All Installed Packages with Chocolatey:

    @scottalanmiller said in List All Installed Packages with Chocolatey:

    When using Chocolatey on Windows, you will often want to list the currently installed packages on your system. You can do this with the following command...

    choco list --local-only
    

    To list all packages, their versions, and available upgrades...

    choco upgrade all --noop
    

    *Note, this command replaces the older choco version all command.

    You should have posted this yesterday...

    I use the --local-only often, but I find no benefit to the --noop command. I suspect because I already have a schedule job that executes choco upgrade all -y daily.

    Ya I don't use noop either. I do the same, just schedule an upgrade all.



  • Using noop would be useful when you are checking on the status of a machine that you don't necessarily manage.