Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ You can download and install a PowerShell package for any of the following platf
| Docker | | [Instructions][in-docker] |
| Kali Linux | [.deb][rl-ubuntu16] | [Instructions][in-kali]

[rl-windows10]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/PowerShell-6.0.0-beta.3-win10-win2016-x64.msi
[rl-windows81]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/PowerShell-6.0.0-beta.3-win81-win2012r2-x64.msi
[rl-windows10]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/PowerShell-6.0.0-beta.4-win10-win2016-x64.msi
[rl-windows81]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/PowerShell-6.0.0-beta.4-win81-win2012r2-x64.msi
[rl-windows7-64]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.18/PowerShell-6.0.0-alpha.18-win7-win2008r2-x64.msi
[rl-windows7-86]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.18/PowerShell-6.0.0-alpha.18-win7-x86.msi
[rl-ubuntu16]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/powershell_6.0.0-beta.3-1ubuntu1.16.04.1_amd64.deb
[rl-ubuntu14]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/powershell_6.0.0-beta.3-1ubuntu1.14.04.1_amd64.deb
[rl-centos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/powershell-6.0.0_beta.3-1.el7.x86_64.rpm
[rl-ai]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/PowerShell-6.0.0-beta.3-x86_64.AppImage
[rl-macos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/powershell-6.0.0-beta.3-osx.10.12-x64.pkg
[rl-opensuse421]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/powershell-6.0.0_beta.3-1.suse.42.1.x86_64.rpm
[rl-ubuntu16]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell_6.0.0-beta.4-1ubuntu1.16.04.1_amd64.deb
[rl-ubuntu14]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell_6.0.0-beta.4-1ubuntu1.14.04.1_amd64.deb
[rl-centos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell-6.0.0_beta.4-1.el7.x86_64.rpm
[rl-ai]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/PowerShell-6.0.0-beta.4-x86_64.AppImage
[rl-macos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell-6.0.0-beta.4-osx.10.12-x64.pkg
[rl-opensuse421]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell-6.0.0_beta.4-1.suse.42.1.x86_64.rpm

[installation]: docs/installation
[in-windows]: docs/installation/windows.md#msi
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 6.0.0-beta.3-{build}
version: 6.0.0-beta.4-{build}

image: Visual Studio 2015

Expand Down
6 changes: 3 additions & 3 deletions docker/release/fedora24/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ LABEL description="This Dockerfile will install the latest release of PS."
# TODO: Until a release of PowerShell for Fedora 24 is available,
# this Dockerfile installs the CentOS 7 version for compatibility.

ARG POWERSHELL_VERSION=6.0.0-beta.3
ARG POWERSHELL_RELEASE=v6.0.0-beta.3
ARG POWERSHELL_PACKAGE=powershell-6.0.0_beta.3-1.el7.x86_64.rpm
ARG POWERSHELL_VERSION=6.0.0-beta.4
ARG POWERSHELL_RELEASE=v6.0.0-beta.4
ARG POWERSHELL_PACKAGE=powershell-6.0.0_beta.4-1.el7.x86_64.rpm

# The CentOS 7 release relies on an older version of libicu, so we'll be downloading it
# from the University of Kent (GB) mirror service.
Expand Down
4 changes: 2 additions & 2 deletions docker/release/nanoserver-insider/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ARG NanoServerRepo=microsoft/nanoserver-insider
FROM ${WindowsServerCoreRepo}:$WindowsServerCoreVersion AS installer-env

# Arguments for installing powershell, must be defined in the container they are used
ARG PS_VERSION=6.0.0-beta.3
ARG PS_DOWNLOAD_SHA=FF45FE7D184B50297CA706EFAEA4E37C59807D33577521A715C147BCD5098B01
ARG PS_VERSION=6.0.0-beta.4
ARG PS_DOWNLOAD_SHA=DAB8CC377D1BADD91688AEC9277D7696CC8DB2C25CECBCC934BD91AA7C724901

ENV PS_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v$PS_VERSION/PowerShell-$PS_VERSION-win10-win2016-x64.zip

Expand Down
2 changes: 1 addition & 1 deletion docker/release/nanoserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LABEL maintainer="PowerShell Team <powershellteam@hotmail.com>"
LABEL readme.md="https://github.com/PowerShell/PowerShell/blob/master/docker/README.md"
LABEL description="This Dockerfile will install the latest release of PS."

ARG POWERSHELL_ZIP=https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/PowerShell-6.0.0-beta.3-win10-win2016-x64.zip
ARG POWERSHELL_ZIP=https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/PowerShell-6.0.0-beta.4-win10-win2016-x64.zip

RUN setx /M PATH "%PATH%;%ProgramFiles%\PowerShell"
# Setup PowerShell - Log-to > C:\Docker.log
Expand Down
4 changes: 2 additions & 2 deletions docker/release/opensuse42.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ LABEL maintainer="PowerShell Team <powershellteam@hotmail.com>"
LABEL readme.md="https://github.com/PowerShell/PowerShell/blob/master/docker/README.md"
LABEL description="This Dockerfile will install the latest release of PS."

ARG POWERSHELL_VERSION=6.0.0_beta.3
ARG POWERSHELL_RELEASE=v6.0.0-beta.3
ARG POWERSHELL_VERSION=6.0.0_beta.4
ARG POWERSHELL_RELEASE=v6.0.0-beta.4
ARG FORK=PowerShell
ARG POWERSHELL_PACKAGE=powershell-$POWERSHELL_VERSION-1.suse.42.1.x86_64.rpm

Expand Down
2 changes: 1 addition & 1 deletion docker/release/windowsservercore/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LABEL maintainer="PowerShell Team <powershellteam@hotmail.com>"
LABEL readme.md="https://github.com/PowerShell/PowerShell/blob/master/docker/README.md"
LABEL description="This Dockerfile will install the latest release of PS."

ARG POWERSHELL_MSI=https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/PowerShell-6.0.0-beta.3-win10-win2016-x64.msi
ARG POWERSHELL_MSI=https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/PowerShell-6.0.0-beta.4-win10-win2016-x64.msi

RUN setx /M PATH "%PATH%;%ProgramFiles%\PowerShell"
# Setup PowerShell - Log-to > C:\Docker.log
Expand Down
54 changes: 27 additions & 27 deletions docs/installation/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ from then on, you just need to use `sudo apt-get upgrade powershell` to update i
### Installation via Direct Download

Using [Ubuntu 14.04][], download the Debian package
`powershell_6.0.0-beta.3-1ubuntu1.14.04.1_amd64.deb`
`powershell_6.0.0-beta.4-1ubuntu1.14.04.1_amd64.deb`
from the [releases][] page onto the Ubuntu machine.

Then execute the following in the terminal:

```sh
sudo dpkg -i powershell_6.0.0-beta.3-1ubuntu1.14.04.1_amd64.deb
sudo dpkg -i powershell_6.0.0-beta.4-1ubuntu1.14.04.1_amd64.deb
sudo apt-get install -f
```

Expand Down Expand Up @@ -107,13 +107,13 @@ from then on, you just need to use `sudo apt-get upgrade powershell` to update i
### Installation via Direct Download - Ubuntu 16.04

Using [Ubuntu 16.04][], download the Debian package
`powershell_6.0.0-beta.3-1ubuntu1.16.04.1_amd64.deb`
`powershell_6.0.0-beta.4-1ubuntu1.16.04.1_amd64.deb`
from the [releases][] page onto the Ubuntu machine.

Then execute the following in the terminal:

```sh
sudo dpkg -i powershell_6.0.0-beta.3-1ubuntu1.16.04.1_amd64.deb
sudo dpkg -i powershell_6.0.0-beta.4-1ubuntu1.16.04.1_amd64.deb
sudo apt-get install -f
```

Expand Down Expand Up @@ -160,13 +160,13 @@ from then on, you just need to use `sudo apt-get upgrade powershell` to update i
### Installation via Direct Download - Debian 8

Download the Debian package
`powershell_6.0.0-beta.3-1ubuntu1.14.04.1_amd64.deb`
`powershell_6.0.0-beta.4-1ubuntu1.14.04.1_amd64.deb`
from the [releases][] page onto the Debian machine.

Then execute the following in the terminal:

```sh
sudo dpkg -i powershell_6.0.0-beta.3-1ubuntu1.14.04.1_amd64.deb
sudo dpkg -i powershell_6.0.0-beta.4-1ubuntu1.14.04.1_amd64.deb
sudo apt-get install -f
```

Expand Down Expand Up @@ -205,19 +205,19 @@ you just need to use `sudo yum update powershell` to update PowerShell.
### Installation via Direct Download - CentOS 7

Using [CentOS 7][], download the RPM package
`powershell-6.0.0_beta.3-1.el7.x86_64.rpm`
`powershell-6.0.0_beta.4-1.el7.x86_64.rpm`
from the [releases][] page onto the CentOS machine.

Then execute the following in the terminal:

```sh
sudo yum install ./powershell-6.0.0_beta.3-1.el7.x86_64.rpm
sudo yum install ./powershell-6.0.0_beta.4-1.el7.x86_64.rpm
```

You can also install the RPM without the intermediate step of downloading it:

```sh
sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/powershell-6.0.0_beta.3-1.el7.x86_64.rpm
sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell-6.0.0_beta.4-1.el7.x86_64.rpm
```

### Uninstallation - CentOS 7
Expand Down Expand Up @@ -251,19 +251,19 @@ you just need to use `sudo yum update powershell` to update PowerShell.
### Installation via Direct Download - Red Hat Enterprise Linux (RHEL) 7

Download the RPM package
`powershell-6.0.0_beta.3-1.el7.x86_64.rpm`
`powershell-6.0.0_beta.4-1.el7.x86_64.rpm`
from the [releases][] page onto the Red Hat Enterprise Linux machine.

Then execute the following in the terminal:

```sh
sudo yum install ./powershell-6.0.0_beta.3-1.el7.x86_64.rpm
sudo yum install ./powershell-6.0.0_beta.4-1.el7.x86_64.rpm
```

You can also install the RPM without the intermediate step of downloading it:

```sh
sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/powershell-6.0.0_beta.3-1.el7.x86_64.rpm
sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell-6.0.0_beta.4-1.el7.x86_64.rpm
```

### Uninstallation - Red Hat Enterprise Linux (RHEL) 7
Expand All @@ -279,21 +279,21 @@ Installation instruction for OpenSUSE 42.1.
### Installation via Direct Download - OpenSUSE 42.1

Using [OpenSUSE 42.1][], download the RPM package
`powershell-6.0.0_beta.3-1.suse.42.1.x86_64.rpm`
`powershell-6.0.0_beta.4-1.suse.42.1.x86_64.rpm`
from the [releases][] page onto the OpenSUSE machine.

Then execute the following in the terminal:

```sh
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo zypper install ./powershell-6.0.0_beta.3-1.suse.42.1.x86_64.rpm
sudo zypper install ./powershell-6.0.0_beta.4-1.suse.42.1.x86_64.rpm
```

You can also install the RPM without the intermediate step of downloading it:

```sh
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo zypper install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.3/powershell-6.0.0_beta.3-1.suse.42.1.x86_64.rpm
sudo zypper install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell-6.0.0_beta.4-1.suse.42.1.x86_64.rpm
```

### Uninstallation - OpenSUSE 42.1
Expand All @@ -319,14 +319,14 @@ For more information on installing packages from the AUR, see the [Arch Linux wi
## Linux AppImage

Using a recent Linux distribution,
download the AppImage `PowerShell-6.0.0-beta.3-x86_64.AppImage`
download the AppImage `PowerShell-6.0.0-beta.4-x86_64.AppImage`
from the [releases][] page onto the Linux machine.

Then execute the following in the terminal:

```bash
chmod a+x PowerShell-6.0.0-beta.3-x86_64.AppImage
./PowerShell-6.0.0-beta.3-x86_64.AppImage
chmod a+x PowerShell-6.0.0-beta.4-x86_64.AppImage
./PowerShell-6.0.0-beta.4-x86_64.AppImage
```

The [AppImage][] lets you run PowerShell without installing it.
Expand All @@ -340,14 +340,14 @@ and is a single binary.
## macOS 10.12

Using macOS 10.12, download the PKG package
`powershell-6.0.0-beta.3-osx.10.12-x64.pkg`
`powershell-6.0.0-beta.4-osx.10.12-x64.pkg`
from the [releases][] page onto the macOS machine.

Either double-click the file and follow the prompts,
or install it from the terminal:

```sh
sudo installer -pkg powershell-6.0.0-beta.3-osx.10.12-x64.pkg -target /
sudo installer -pkg powershell-6.0.0-beta.4-osx.10.12-x64.pkg -target /
```

### Uninstallation - macOS 10.12
Expand Down Expand Up @@ -421,7 +421,7 @@ wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libs
dpkg -i libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb

# Install PowerShell
dpkg -i powershell_6.0.0-beta.3-1ubuntu1.16.04.1_amd64.deb
dpkg -i powershell_6.0.0-beta.4-1ubuntu1.16.04.1_amd64.deb

# Start PowerShell
powershell
Expand All @@ -431,24 +431,24 @@ powershell

```sh
# Grab the latest App Image
wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.18/PowerShell-6.0.0-alpha.18-x86_64.AppImage
wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/PowerShell-6.0.0-beta.4-x86_64.AppImage

# Make executable
chmod a+x PowerShell-6.0.0-alpha.18-x86_64.AppImage
chmod a+x PowerShell-6.0.0-beta.4-x86_64.AppImage

# Start PowerShell
./PowerShell-6.0.0-alpha.18-x86_64.AppImage
./PowerShell-6.0.0-beta.4-x86_64.AppImage
```

### Uninstallation - Kali

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alpha.18 is used in the Kali section, and they need to be updated to beta.4.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.


```sh
dpkg -r powershell_6.0.0-beta.3-1ubuntu1.16.04.1_amd64
dpkg -r powershell_6.0.0-beta.4-1ubuntu1.16.04.1_amd64
```

## Paths

* `$PSHOME` is `/opt/microsoft/powershell/6.0.0-beta.3/`
* `$PSHOME` is `/opt/microsoft/powershell/6.0.0-beta.4/`
* User profiles will be read from `~/.config/powershell/profile.ps1`
* Default profiles will be read from `$PSHOME/profile.ps1`
* User modules will be read from `~/.local/share/powershell/Modules`
Expand All @@ -463,7 +463,7 @@ On Linux and macOS, the [XDG Base Directory Specification][xdg-bds] is respected

Note that because macOS is a derivation of BSD,
instead of `/opt`, the prefix used is `/usr/local`.
Thus, `$PSHOME` is `/usr/local/microsoft/powershell/6.0.0-beta.3/`,
Thus, `$PSHOME` is `/usr/local/microsoft/powershell/6.0.0-beta.4/`,
and the symlink is placed at `/usr/local/bin/powershell`.

[releases]: https://github.com/PowerShell/PowerShell/releases/latest
Expand Down
12 changes: 6 additions & 6 deletions tools/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trap '

get_url() {
fork=$2
release=v6.0.0-beta.3
release=v6.0.0-beta.4
echo "https://github.com/$fork/PowerShell/releases/download/$release/$1"
}

Expand All @@ -26,7 +26,7 @@ case "$OSTYPE" in
sudo yum install -y curl
fi

package=powershell-6.0.0_beta.3-1.el7.x86_64.rpm
package=powershell-6.0.0_beta.4-1.el7.x86_64.rpm
;;
ubuntu)
if ! hash curl 2>/dev/null; then
Expand All @@ -36,10 +36,10 @@ case "$OSTYPE" in

case "$VERSION_ID" in
14.04)
package=powershell_6.0.0-beta.3-1ubuntu1.14.04.1_amd64.deb
package=powershell_6.0.0-beta.4-1ubuntu1.14.04.1_amd64.deb
;;
16.04)
package=powershell_6.0.0-beta.3-1ubuntu1.16.04.1_amd64.deb
package=powershell_6.0.0-beta.4-1ubuntu1.16.04.1_amd64.deb
;;
*)
echo "Ubuntu $VERSION_ID is not supported!" >&2
Expand All @@ -55,7 +55,7 @@ case "$OSTYPE" in

case "$VERSION_ID" in
42.1)
package=powershell-6.0.0_beta.3-1.suse.42.1.x86_64.rpm
package=powershell-6.0.0_beta.4-1.suse.42.1.x86_64.rpm
;;
*)
echo "OpenSUSE $VERSION_ID is not supported!" >&2
Expand All @@ -69,7 +69,7 @@ case "$OSTYPE" in
;;
darwin*)
# We don't check for curl as macOS should have a system version
package=powershell-6.0.0-beta.3-osx.10.12-x64.pkg
package=powershell-6.0.0-beta.4-osx.10.12-x64.pkg
;;
*)
echo "$OSTYPE is not supported!" >&2
Expand Down