Skip to content

Provide a latest vanity release. #20338

Open

Description

Name of the Distribution

All

Version of the Distribution

Stable and Preview

Package Types

  • Deb
  • RPM
  • Tar.gz
  • Snap - Stop! Please file your issue in PowerShell-Snap instead.

Processor Architecture

All

.NET Core Support

Distribution Requirements

  • The version of the Distribution is supported for at least one year.
  • The version of the Distribution is not an interim release or equivalent.

Exemption Justification

This refers to all releases.

Progress

For PowerShell Team ONLY

  • Docker image created
  • Docker image published
  • Distribution tested
  • Update packages.microsoft.com deployment
  • Lifecycle updated
  • Documentation Updated

Activity

  1. beedell-roke commented on Sep 24, 2023

    @beedell-roke
    Author

    #20338 (comment)

    This is for documentation like en.opensuse.org/index.php?title=PowerShell&oldid=165673#Install_PowerShell, where it cannot be feasibly updated every time PowerShell releases a new version. Precedent exists for such vanity links, especially within GitHub Releases.

  2. mklement0 commented on Sep 24, 2023

    @mklement0
    Contributor

    It's a bit confusing that you've framed your issue as a distribution request and that the issue's title talks about a release.

    That said, it would indeed be useful to have abstract download links that refer to whatever release is current at the time, using a format such as:

    https://aka.ms/powershell-release/download/{release-type}/{os}/{arch}[/{option}]
    

    where:

    • {release-type} is one of: lts, stable, preview, and perhaps even daily
    • {os} is win, osx, ...
    • {arch} is x64, arm64, ...
    • an optional {option} segment to target special binaries such as the ones whose release file names contain fxDependent and msixbundle

    which could automatically be translated into the corresponding specific binary file name as listed at https://github.com/PowerShell/PowerShell/releases

    GitHub
    PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.
  3. StevenBucher98 commented on Sep 25, 2023

    @StevenBucher98
    Collaborator

    You are able to use the https://github.com/PowerShell/PowerShell/releases/download/v<VERSION>/<SPECIFIC PACKAGE> to get to the release you may need, i.e https://github.com/PowerShell/PowerShell/releases/download/v7.3.7/powershell-7.3.7-1.cm.x86_64.rpm. Does that meet your scenarios?

  4. StevenBucher98 commented on Sep 25, 2023

    @StevenBucher98
    Collaborator

    We also have https://aka.ms/PowerShell-Release?tag=v<VERSION> that takes you to the releases page.

  5. mklement0 commented on Sep 25, 2023

    @mklement0
    Contributor

    Steven Bucher (@StevenBucher98), assuming I understand the intent of this issue correctly:

    • It is about direct download links that can be used in installation commands - https://aka.ms/PowerShell-Release?tag=v<VERSION> links aren't direct download links, but my suggestion above was to use a https://aka.ms/powershell-release prefix for the yet-to-be-implemented vanity links.

    • NOT having to specify an explicit version number is precisely what motivated the issue: instead, abstract identifiers should dynamically refer to whatever release is the current one in the specified channel (LTS, stable, preview, daily).

      • That way, published installation instructions (such as the ones linked to in the initial post for openSUSE) that currently contain explicit version numbers wouldn't need updating with every new release (or wouldn't become obsolete).

    See my previous comment for details on how this might be implemented.

  6. StevenBucher98 commented on Sep 25, 2023

    @StevenBucher98
    Collaborator

    Gotcha missed the "latest" part of the issue, unfortunately we don't have that at the moment but would be good to have in the future, I'll see if there is some kind of automation we can use to set this up but may be tricky to do with our currently release pipelines

  7. kilasuit commented on Sep 26, 2023

    @kilasuit
    Collaborator

    Whilst vanity urls for downloading releases would be great for those that want/need to have their own installation mechanisms, personally I think that we should be raising better awareness of the various install-powershell scripts in the tools folder in this repo. As not only can they remove the need for custom install mechanisms they can take care of all dependency issues too & reduce admin overheads too (so win win win all around)

    Which kinda helps with this ask too, albeit in a different way entirely & as it also helps take care of installation too & whilst aren't officially documented (yet) as install methods, perhaps Steven Bucher (@StevenBucher98) we can look at getting them documented properly and not just in the repo.

    Especially as the https://aka.ms/install-powershell.ps1 script & it's counter part of the install-powershell.sh script are already available via https://aka.ms/install-powershell.sh

    Also I've added some additional updates in this PR to the install-powershell.ps1 script (which yes needs some form of PowerShell installed already to run) & have blogged a bit about some of this in Installing PowerShell Side by Side for testing purposes which may be of help going forward/

    Also as a complete aside I just tested on the latest OpenSUSE Leap 15.5 WSL distro & I was able to get pwsh installed using this oneliner bash <(wget -O - https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/installpsh-suse.sh) (from the installpsh-suse.sh script in the tools folder)

    Once PowerShell was installed I was then run the following to get the Preview release (same as how I had blogged above)
    Invoke-Expression "& {$(Invoke-RestMethod https://raw.githubusercontent.com/kilasuit/PowerShell/update-install-powershell-script/tools/install-powershell.ps1)} -Preview"
    Then run this to install the LTS release too
    Invoke-Expression "& {$(Invoke-RestMethod https://raw.githubusercontent.com/kilasuit/PowerShell/update-install-powershell-script/tools/install-powershell.ps1)} -LTS" to install the LTS release too

    (as I noted in my blog post - this https://raw.githubusercontent.com/kilasuit/PowerShell/update-install-powershell-script/tools/install-powershell.ps1 is just until the above linked PR is merged.

    @RokeJulianLockhart does all of the above help you in the meantime prior to there being an available vanity url sometime in the future?

  8. beedell-roke commented on Sep 26, 2023

    @beedell-roke
    Author

    #20338 (comment)

    Ryan Yates (@kilasuit), no, because they're not RPMs. Unlike on Windows, most Linux users aren't used to running discrete installers with non-obvious behaviour. Installing with an RPM integrates with the system package management solutions. The sole useful solution to this is a vanity link for every item of the release, because some might need DEBs, others RPMs.

    Thanks though.

  9. kasini3000 commented on Sep 29, 2023

    @kasini3000
  10. rhubarb-geek-nz commented on Nov 15, 2023

    @rhubarb-geek-nz

    I recommend having deb and rpm for each distribution and architecture in https://packages.microsoft.com/

    Then if you install the repository configuration you get the appropriate version with dependencies using the existing apt or yum commands.

    This does have problems, for instance there is a conflict between the dotnet provided by the base ubuntu repository and that provided by https://packages.microsoft.com/.

    From Ubuntu repository

    $ ls -ld /usr/bin/dotnet
    lrwxrwxrwx 1 root root 20 Nov 13 14:08 /usr/bin/dotnet -> ../lib/dotnet/dotnet
    

    From microsoft repository

    $ ls -ld /usr/bin/dotnet
    lrwxrwxrwx 1 root root 22 Mar 24  2023 /usr/bin/dotnet -> ../share/dotnet/dotnet
    
  11. beedell-roke commented on Feb 4, 2025

    @beedell-roke
    Author

    #20338 (comment)

    Note that /releases/latest is provided by GitHub, but I don't believe that this would be useful when linking to a specific file-type (like a .RPM).

  12. JustinGrote commented on Mar 28, 2025

    @JustinGrote
    Contributor

    FYI Docker containers are no longer being maintained by the team so this issue should be closed as "wontfix"
    PowerShell/Announcements#75

    Hopefully runtime images will become available but for now just a note this isn't going to be fixed with the mcr.microsoft.com/powershell images

  13. beedell-roke commented on Mar 28, 2025

    @beedell-roke
    Author

    #20338 (comment)

    Justin Grote (@JustinGrote), I'm unfamiliar with your CI pipeline, but this is primarily about binaries packaged into OS-specific installer files. Docker images may well be released alongside, but I don't understand how that relates to this.

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

    Needs-TriageThe issue is new and needs to be triaged by a work group.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions