Skip to content

Support more distributions in installpsh-debian.sh script #6364

Closed

Description

This is a follow-up of #6314 (and #5700).

I would like to know if you want to support more Debian distributions in the installation script, and if so, how you would like to support them (and if this would be tested or not).

We could simply add a message in the script that says to open a PR (with a link to this repo) to add support for the current distribution (if it's not already supported), and let people open PRs one by one.

If you are ok with more distributions support, I can immediately add BunsenLabs to the list 😉

The diff is basically:

- debian)
+ debian|bunsenlabs)

I tried it and it works fine!

Activity

  1. added
    Issue-Question
    on Mar 12, 2018
  2. iSazonov commented on Mar 12, 2018

    @iSazonov
    Collaborator

    I wonder - how many Debian distributions exist?
    I would prefer to add references to community-supported scripts to our documentation.

  3. pawamoy commented on Mar 12, 2018

    @pawamoy
    ContributorAuthor

    There are a lot indeed! Here is the Debian family tree.

    Would these community-supported scripts reside in the powershell repository itself? Or another, dedicated repository? Or would the references just point to random repositories, like https://github.com/some-user/some-repo/blob/master/installpsh-some-distro.sh, and people would open PRs to add them in the docs?

  4. iSazonov commented on Mar 13, 2018

    @iSazonov
    Collaborator

    I believe we can not test and support all such scripts in the repo.

    /cc Joey Aiello (@joeyaiello) Steve Lee (@SteveL-MSFT)

  5. SteveL-MSFT commented on Mar 13, 2018

    @SteveL-MSFT
    Member

    Timothée Mazzucotelli (@pawamoy) are you aware of any existing precedent set by other projects when the community extends distro support? If there's already a well defined pattern, would prefer to use that unless there's a big reason not to follow it.

  6. pawamoy commented on Mar 13, 2018

    @pawamoy
    ContributorAuthor

    Steve Lee (@SteveL-MSFT) unfortunately no, but I will dig a bit and see if I can find some useful examples or patterns.

  7. iSazonov commented on Oct 21, 2018

    @iSazonov
    Collaborator

    Timothée Mazzucotelli (@pawamoy) Have you any updates?

  8. pawamoy commented on Oct 23, 2018

    @pawamoy
    ContributorAuthor

    Ilya (@iSazonov) No 😕 I was not able to find similar examples. I guess it's usually up to the package repositories managers to make a package available for the distro he's in charge of. Or to project developers to give a generic installation script.

    Maybe if powershell's installation scripts relied on something else than /etc/lsb-release, like /etc/os-release (which includes a ID_LIKE="debian" line for example) or /proc/version, it would handle more cases.

    Or maybe the simplest solution would be to duplicate installpsh-debian.sh in installpsh-ubuntu.sh. The Ubuntu script would always use ubuntu as distribution ID, and the Debian script would always use debian as distribution ID. Then the DISTRIB_VERSION would be read from the environment variable, and if it's not set, from the /etc/lsb-release or /etc/os-release files. I could then install powershell on BunsenLabs or any other distribution based on Debian 8 with DISTRIB_VERSION=8 ./installpsh-debian.sh.

  9. iSazonov commented on Oct 23, 2018

    @iSazonov
    Collaborator

    Timothée Mazzucotelli (@pawamoy) In the repo we can support only distributives which CoreFX supports. Other ones can be only community driven.

  10. pawamoy commented on May 15, 2019

    @pawamoy
    ContributorAuthor

    Seeing that LinuxMint was added, would you agree to add BunsenLabs to the list? I know it's not a widespread distribution but I'm still interested in it being supported. Besides, as written in the first comment, it's simply a matter of adding bunsenlabs in the debian) case. I can open a new issue for it if you prefer.

  11. iSazonov commented on May 16, 2019

    @iSazonov
    Collaborator

    I see that Linux Mint will added in .Net Core 3.0 https://github.com/dotnet/core/blob/de2f7eaab2bb652b246c322827bda42a05e2fbb3/release-notes/3.0/3.0-supported-os.md#linux

    Timothée Mazzucotelli (@pawamoy) We will move to 3.0 in weeks. Please wait and then you can make PR to update the install script and docs.

    /cc Travis Plunk (@TravisEz13)

  12. TravisEz13 commented on May 16, 2019

    @TravisEz13
    Member

    We have two paths, PowerShell can support it. Or this script can unofficially support it. If we want the former, we should file an issue that specifically asks that linux mint be added to the list of supported distributions.

  13. pawamoy commented on May 16, 2019

    @pawamoy
    ContributorAuthor

    About LinuxMint, I myself have no preferences. About BunsenLabs, I don't mind it being unofficially supported in the script. Afterall, I just want to be able to run ./installpsh-debian.sh.

  14. TravisEz13 commented on May 16, 2019

    @TravisEz13
    Member

    BunsenLabs would have to be unofficial as it's not supported by DotNet.

  15. SteveL-MSFT commented on May 16, 2019

    @SteveL-MSFT
    Member

    Timothée Mazzucotelli (@pawamoy) perhaps an option is to update ./installpsh-debian.sh to have a -force type switch so that we aren't preventing attempts to use it but it wouldn't be something we would support

  16. pawamoy commented on May 16, 2019

    @pawamoy
    ContributorAuthor

    Steve Lee (@SteveL-MSFT) I think it would complicate the script too much. I understand it's preferable to only add officially supported distributions in the script (by the way, debian 8 still appears in the script but is out of support, right?), so I won't push for BunsenLabs. For people who really want to install it on a distro based on debian 9, it's very easy anyway:

    curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
    curl https://packages.microsoft.com/config/debian/9/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
    sudo apt-get update
    sudo apt-get install powershell

    Thanks for your feedback everyone 🙂

  17. iSazonov commented on Oct 13, 2019

    @iSazonov
    Collaborator

    #10773 now we use /etc/os-release

  18. ghost closed this as completedon Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-QuestionResolution-Fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions