Git Product home page Git Product logo

win-upgrade's Introduction

win-upgrade

Release Build Version Pre release and or current build version Dev-build or the latest tag of the current build. win-upgrade Downloads win-upgrade Issues

Windows upgrade or Upgrade for short are a update script written in powershell. The script look for your package managers including WSL ones and update them.

To run the script make sure your PS1 file is placed in a location in your path and that you are allowed to run scripts.

To run the script make sure the script location is placed in your windows $PATH variable. (For a real terminal super user feeling.) But you can also just run the script.

The script can detect:

PS > upgrade --help     
Usage: upgrade [-w] [-su] [-v] [-help]

    -h, --help                Show this help
    -w, --noWindowsUpdate     Disable update check for windows
    -su, --suMode             Disable suMode and require sudo password on a user level for wsl update. This may lead to required confirms.

    --updateWSL               Upgrade WSL client

    -v, --version             Show current version

Note! When using a sudo windows script i recommend you using lukesampson sudo simply run scoop install sudo.

Install

  1. Create a .bin directory in your home directory and make sure it added to your $PATH environment variable.
    PS> New-Item -itemtype "directory" -path "$env:userprofile\.bin" -Force
    PS> [Environment]::SetEnvironmentVariable("Path", $env:Path + ";$env:userprofile\.bin", "User")
  2. Download latest release (Can be found here)
    PS> $version=(irm 'https://api.github.com/repos/AndreasBrostrom/win-upgrade/releases/latest' | Select tag_name).tag_name
    PS> iwr -URI "https://github.com/AndreasBrostrom/win-upgrade/releases/download/$version/upgrade-$version.zip" -OutFile "$env:userprofile/Downloads/upgrade-latest.zip"
  3. Unzip latest release
    PS> Expand-Archive "$env:userprofile\Downloads\upgrade-latest.zip" -DestinationPath "$env:userprofile\.bin"
    PS> Remove-Item "$env:userprofile\.bin\README.md"
  4. Run
    PS> upgrade

win-upgrade's People

Contributors

andreasbrostrom avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

arznic

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.