Git Product home page Git Product logo

get-packageupdates's Introduction

Get-PackageUpdates

Print Chocolatey and PSGallery updates in your PowerShell session

Installation

Install the module from the PowerShell Gallery:

Install-Module Get-PackageUpdates -Scope CurrentUser

Add the following lines to your $profile:

Import-Module Get-PackageUpdates
Write-PackageUpdates

Create a shortcut under shell:startup that includes the following line:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -WindowStyle Hidden -Command "Save-PackageUpdates"

This will start a PS session at startup (logon) which will get and save the available updates. That way it can be printed when you start a new session once it is available.

Inspired by and partially stolen from here

get-packageupdates's People

Contributors

jandedobbeleer avatar janjoris avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

get-packageupdates's Issues

Type for update counts differ

Number for PS Gallery and string for Chocolatey in ~/.updateinfo:

{
  "PSUpdatesCount": 1,
  "ChocoUpdatesCount": "1"
}

Can't import module on Linux

The module is installed into a folder called get-packageupdates. Renaming the folder to Get-PackageUpdates solves the issue.

Write-Update checks for wrong file name

Save-PackageUpdates writes to file ~/.updateInfo while Write-PackageUpdates checks for the existence of ~/.updateinfo (lower-case). That works on Windows because the file system API is case insensitive but fails on Linux and macOS. The result is that Write-PackageUpdates never displays package updates.

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.