Skip to content

Commit e3cc714

Browse files
kiazhisdwheeler
authored andcommitted
Updated Kali Linux Installation and Uninstallation (#2973)
* Updated Kali Linux Installation and Uninstallation Updated the Installation and Uninstallation Bash commands for Kali Linux distro to address the issue #2901. Tested the steps in Kali Linux on Windows Subsystem for Linux (WSL) on the following version: ```sh $ sudo cat /etc/os-release PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/Linux" ID=kali VERSION="2018.3" VERSION_ID="2018.3" ID_LIKE=debian ANSI_COLOR="1;31" HOME_URL="https://www.kali.org/" SUPPORT_URL="https://forums.kali.org/" BUG_REPORT_URL="https://bugs.kali.org/" ``` ```sh $ pwsh PowerShell 6.1.0 Copyright (c) Microsoft Corporation. All rights reserved. https://aka.ms/pscore6-docs Type 'help' to get help. PS /> $PSVersionTable Name Value ---- ----- PSVersion 6.1.0 PSEdition Core GitCommitId 6.1.0 OS Linux 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 Platform Unix PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0 PS /> Get-Content -Path /etc/os-release PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/Linux" ID=kali VERSION="2018.3" VERSION_ID="2018.3" ID_LIKE=debian ANSI_COLOR="1;31" HOME_URL="https://www.kali.org/" SUPPORT_URL="https://forums.kali.org/" BUG_REPORT_URL="https://bugs.kali.org/" ``` * Included apt-get update Added `apt-get update` to update packages list before `apt-get install` * Removed note for Kali install
1 parent 09ea43c commit e3cc714

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

reference/docs-conceptual/setup/Installing-PowerShell-Core-on-Linux.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -579,19 +579,22 @@ sudo snap remove powershell-preview
579579

580580
## Kali
581581

582-
> [!NOTE]
583-
> Kali support is not currently working. Please use the [Snap package][snap] instead.
584-
585582
### Installation
586583

587584
```sh
588585
# Download & Install prerequisites
589-
sudo apt-get install libunwind8 libicu55
590-
wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb
591-
sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb
586+
wget http://ftp.us.debian.org/debian/pool/main/i/icu/libicu57_57.1-9_amd64.deb
587+
dpkg -i libicu57_57.1-9_amd64.deb
588+
apt-get update && apt-get install -y curl gnupg apt-transport-https
592589

593-
# Install PowerShell
594-
sudo dpkg -i powershell_6.1.0-1.ubuntu.16.04_amd64.deb
590+
# Add Microsoft public repository key to APT
591+
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
592+
593+
# Add Microsoft package repository to the source list
594+
echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" | tee /etc/apt/sources.list.d/powershell.list
595+
596+
# Install PowerShell package
597+
apt-get update && apt-get install -y powershell
595598

596599
# Start PowerShell
597600
pwsh
@@ -600,7 +603,8 @@ pwsh
600603
### Uninstallation - Kali
601604

602605
```sh
603-
sudo dpkg -r powershell_6.0.2-1.ubuntu.16.04_amd64.deb
606+
# Uninstall PowerShell package
607+
apt-get remove -y powershell
604608
```
605609

606610
## Raspbian

0 commit comments

Comments
 (0)