Installing powershell on openSUSE Leap and Tumbleweed is relatively straight forward with the exception of a few issues.
1) adding the repository doesn't work though their command line that they have issued on their powershell instructions
2) They neglected the instructions for adding OpenSSL 1 which is required
If you go to the Powershell Repository on github there are a set of instructions to install powershell on openSUSE and we are going to follow them and I will add the deviation points so you can get powershell running on openSUSE. The link for the original Microsoft instructions are https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux?view=powershell-6
You can view a 12 Minute video of the procedure on my youtube channel. https://www.youtube.com/watch?v=8yzDH0v99Us
Open a Terminal Window and Copy and Paste the following
# Register the Microsoft signature key
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
Now we want to add the repository to our openSUSE system. Open Yast and Open Software Repositories.
Select Add
Select Specify URL
Name and Add the Repository URL listed below
# Add the Microsoft Repository
https://packages.microsoft.com/rhel/7/prod/
You will get a warning about the Repository not being digitally signed. If you want to use powershell I would add the Repo.
Once complete go to your terminal and run a zypper update
# Update the list of products
sudo zypper update
Then in the terminal in stall powershell using the command below.
# Install PowerShell
sudo zypper install powershell
You will get the error below
Problem: nothing provides libcurl needed by powershell-6.1.0-1.rhel.7.x86_64
Solution 1: do not install powershell-6.1.0-1.rhel.7.x86_64
Solution 2: break powershell-6.1.0-1.rhel.7.x86_64 by ignoring some of its dependencies
Select Option 2.
Once the install is down in Terminal you can start powershell but you will get an error about libssl that no usable version is found like the image below.
# Start PowerShell
pwsh
To fix that we go back to YAST and we need to go to Addon Products -> software manager and do a search for libssl
You will want to add libopenssl1_0_0 and libopenssl1_0_0-32bit
Once the install is done you can now run powershell! You will know this by the
PS \Home\$USER (in this case administrator)
The OptionKey is a Technology blog. How to tips and useful documentation on Apple, Microsoft, Open Source Project.
How to fix CURL call imporitng an RSS feed on a site blocking CURL calls
There is a 3rd party service provider that my organization uses called bibliocommons. They have these nice book carousels. However the car...
-
When working in a test environment you don't exactly want something to have internet access; so you need to be able to download files in...
-
Automatic updates can be a huge bane for IT Administrators, especially if it is a server you have to have up and you don't have any scal...
-
Kaspersky Security Center Error Failed to establish connection with the remote device (location: http://localhost:13291) connection has fa...