Skip to content

Fedora RPM #1882

Closed
Closed

Description

Please provide RPMs for Fedora too.

The CentOS RPM isn't a workaround because it doesn't work on Fedora 24 at this moment:

$ powershell 
Failed to initialize CoreCLR, HRESULT: 0x80131500

Activity

  1. andyleejordan commented on Aug 18, 2016

    @andyleejordan
    Member

    Ah yes, we'll need to start building for fedora.23-x64 .NET Core RID too. It will come! (If you want to do it, it's just a few additions of that RID to the correct project.json files and a couple places in build.psm1, and then generate a new package with New-UnixPackage.) I would love to accept a PR like that!

  2. JoaaoVerona commented on Aug 18, 2016

    @JoaaoVerona

    Pretty please!

  3. mattico commented on Aug 18, 2016

    @mattico

    Giovanni Tirloni (@gtirloni) this hn comment explains a method to get it working on Fedora 24.

    But yes, a native package would be nice.

  4. ImNtReal commented on Aug 18, 2016

    @ImNtReal

    Any chance the .spec file used to build the current RPM could be released to make it easier to figure out how to package for other distros?

  5. gromnitsky commented on Aug 18, 2016

    @gromnitsky

    Jameson Pugh (@ImNtReal) judging from build.psm1 they are not writing .spec file directly but are using https://github.com/jordansissel/fpm for the rpm generation.

  6. brandon-arnold commented on Aug 19, 2016

    @brandon-arnold

    In the meantime for Fedora 24, install the older LibICU package from ftp://195.220.108.108/linux/fedora/linux/releases/23/Everything/x86_64/os/Packages/l/libicu-54.1-5.fc23.x86_64.rpm as per this dotnet issue.

  7. plinnell commented on Aug 23, 2016

    @plinnell

    Using fpm for rpm and .deb generation is sub optimal. Source rpms and .deb files are desirable for a repeatable build outside someone's random build environment. This will be important for acceptance in enterprise distros as well as Debian.

    I strongly recommend looking at https://openbuildservice.org for Linux builds as it not only covers a wide range of popular distros, but easily supports building on non X86 arches, everything from tiny Arm5 to IBM mainframes. OBS as we call it is 10+ years of maturity and the most powerful build platform for native Linux packages.

    If the build team is in Redmon, I'll gladly drop in and show them how it works. It also integrates with Jenkins/Git workflows for CI.

  8. andyleejordan commented on Aug 23, 2016

    @andyleejordan
    Member

    Using fpm for rpm and .deb generation is sub optimal.

    Totally agree, but it was very quick to go from zero to multiple packages 😉

    I'm unclear if we should own the creation of packages for distributions to release. My understanding is that usually outside package maintainers pick up your build output and source, and create packages for their distribution; not pickup packages from you. However, I don't know if this is the route they'll take with PowerShell. If distributions end up wanting us to maintain the actual packages going into their repositories, we absolutely will need to create them from scratch (RPM spec etc.).

  9. gtirloni commented on Aug 23, 2016

    @gtirloni
    Author

    It would be ideal to have packages accepted into the official repositories but that usually requires quite some time from maintainers. I think it's unreasonable to request this from open source projects.

    If there are volunteers or a company with a vested interest in having these packages, then I'm sure we'll see that in time.

    It's completely acceptable for the upstream project to only provide packages generated through fpm. It's already much better than just releasing the source code or some zipped binaries.

    As for this specific issue, rebuilding on Fedora 24 with the correct requirements properly defined and a new RPM being made available through the website is all that's needed, in my opinion.

  10. xasx commented on Aug 26, 2016

    @xasx

    Maybe people from RedHat get interested in or can be convinced to getting respective packages sooner into their upstream Linux ⁉️

  11. jrm16020 commented on Aug 30, 2016

    @jrm16020

    CentOS provides a Docker container with Powershell installed. Why not just use it and a shell function to start it? Maybe something like this?

    powershell () {
        DOCKER_RUN="docker run --rm --name powershell -it"
        DOCKER_IMAGE="centos/powershell"
        DOCKER_COMMAND="/usr/bin/powershell"
    
        ## Check permissions on Docker socket and fix if necessary
        if [[ ! -w /var/run/docker.sock ]]; then
            sudo setfacl -m u:$( whoami ):rw /var/run/docker.sock
        fi
    
        ## Make sure Powershell image is installed
        if [[ "$( docker images | grep -i powershell &>/dev/null; echo $? )" != "0" ]]; then
            printf "Pulling powershell image for use...\n"
            docker pull "${DOCKER_IMAGE}" &>/dev/null
        fi
    
        ## If we passed arguments, parse them, and if necessary, mount in the directory of the script we're trying to execute.
        if [[ "$#" > 0 ]]; then
            ARGS="$@"
            while [[ "$#" > 0 ]]; do
                if [[ "$1" == *".ps1"* ]]; then
                    CURRENT_DIR=$( dirname $1 )
                fi
                shift
            done
    
            if [[ -n "${CURRENT_DIR}" ]]; then
                ${DOCKER_RUN} -v ${CURRENT_DIR}:/opt/powershell_volume:rw -w /opt/powershell_volume ${DOCKER_IMAGE} ${DOCKER_COMMAND} ${ARGS}
            else
                ${DOCKER_RUN} ${DOCKER_IMAGE} ${DOCKER_COMMAND} ${ARGS}
            fi
        else
            ${DOCKER_RUN} ${DOCKER_IMAGE} ${DOCKER_COMMAND}
        fi
    }
    
  12. suvayu commented on Sep 1, 2016

    @suvayu

    Jeremy Young (@jrm16020), doesn't that defeat the purpose a bit? It's a shell after all; I would like to try powershell as a regular shell for a few days side-by-side with my usual shell. Wouldn't that be impossible when using a docker container?

  13. 25 remaining items

  14. RheaAyase commented on May 20, 2017

    @RheaAyase

    For future readers - Please always refer to the source about installing anything, do not use copypasta cut out of other places, because it will not be updated and maintained here. Look up these instructions on Fedora .NET wiki (which will refer you to the right download instructions for your version)

  15. DarkLite1 commented on May 20, 2017

    @DarkLite1

    You are correct, comment updated.

  16. rjmholt commented on May 16, 2018

    @rjmholt
    Collaborator

    What's the status of this issue? I believe our RPM release is working with Fedora 27?

  17. RheaAyase commented on May 16, 2018

    @RheaAyase

    What's the status of this issue? I believe our RPM release is working with Fedora 27?

    That's not how packaging works in Linux.

    Open Source products are built and packaged by package maintainers, not by the authors of the products. Yes, one may be both, but in the case of .NET Core that is in no way true. Package maintainers can make sure that said product works with all the quirks of their Linux distribution, and they have to comply with it's rules. Among the many rules of Fedora packages, one of the main ones is that the packages have to be fully built from source, including the tools used to do so. All done in Fedora, for Fedora. This way we can make sure that there is nothing spooky coming from some 3rd party binary that could cause issues or vulnerabilities, etc...

    .NET Core is packaged by the Fedora .NET SIG and all the information around .NET Core in Fedora is maintained and always up to date at fedoraloves.net

    On a side note, as you can also find out on our pages, .NET Core, VSCode and other packages published by Microsoft are not free software, are under proprietary licenses, and contain proprietary code and libraries. We exclude these bits and pieces from our packages and provide necessary hacks to get the sh!# to work.


    Now on topic of PowerShell packages themselves, I've not looked into it so I can not tell if it's the same as the above and with the same issues. From a glance from afar, those are not Fedora packages. They're rhel packages. There is major difference, so I expect a huge load of issues.

    (I'll take a closer look some time next week.)

  18. 0009-0009-1013-986X commented on May 23, 2022

    @0009-0009-1013-986X
  19. 0009-0009-1013-986X commented on Jun 1, 2022

    @0009-0009-1013-986X

    #1882 (comment)

    Giovanni Tirloni (@gtirloni), official support for Fedora appears to have been revoked, 1 2 which explains why the hyperlink 3 that I previously noted 4 is inoperative. Does that invalidate this issue? I hope not: the .RPM is perfectly operative for me, so this decision appears to be unreasonable.

    Footnotes

    1. https://github.com/MicrosoftDocs/PowerShell-Docs/commit/52ed58f82265285cc29eec70b59ab8cebc0792f3#:~:text=Remove%20CentOS%20and%20Fedora%20from,and%20Fedora%20from%20supported%20lists ↩

    2. https://github.com/MicrosoftDocs/PowerShell-Docs/issues/8883#issue-1254316188:~:text=to%20be%20updated-,https://docs.microsoft.com/powershell/scripting/install/install%2Dfedora,-https://docs.microsoft.com/powershell/scripting/install/install%2Dcentos ↩

    3. https://docs.microsoft.com/en-us/powershell/scripting/install/install-fedora?view=powershell-7.2#installation-via-package-repository ↩

    4. https://github.com/PowerShell/PowerShell/issues/1882#issuecomment-1134207331:~:text=@gtirloni%2C-,docs.microsoft.com/powershell/scripting/install/install%2Dfedora%23installation%2Dvia%2Dpackage%2Drepository,-successfully%20installs%20PowerShell ↩

  20. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  21. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  22. added
    Resolution-No Activity
    on Nov 16, 2023
  23. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  24. 0009-0009-1013-986X commented on Nov 16, 2023

    @0009-0009-1013-986X

    #1882 (comment)

    @jwflory, I mean that docs.microsoft.com/powershell/scripting/install/install-fedora was replaced by solely /install-rhel. 1 RHEL isn't Fedora, even if their .RPMs are occasionally adequately compatible to use.

    Footnotes

    1. MicrosoftDocs/PowerShell-Docs/commit/52ed58f82265285cc29eec70b59ab8cebc0792f3 ↩

  25. microsoft-github-policy-service commented on Nov 24, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

  26. 0009-0009-1013-986X commented on Dec 8, 2024

    @0009-0009-1013-986X
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

    OS-LinuxResolution-No ActivityWG-Maintainers-Build

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions