-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Description
I followed the direction located here.
And I receive the following error:
sudo dnf install powershell
Repository packages-microsoft-com-prod is listed more than once in the configuration
Last metadata expiration check: 0:05:34 ago on Tue 12 Feb 2019 08:19:37 PM EST.
No match for argument: powershell
Error: Unable to find a match
Steps to reproduce
- Start with a fresh install of Fedora 29
- Install Microsoft .NET Core following directions here.
- Follow directions to install PowerShell Core from here
Expected behavior
That there wouldn't be a naming conflict that prevents searching the repository to find the PowerShell package.
Actual Issue
Both the .NET Core package repository and the PowerShell package repository for Fedora both use the same package name which cause the conflict.
.NET Core
[packages-microsoft-com-prod]
name=packages-microsoft-com-prod
baseurl=https://packages.microsoft.com/fedora/27/prod/
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
PowerShell
[packages-microsoft-com-prod]
name=packages-microsoft-com-prod
baseurl=https://packages.microsoft.com/rhel/7/prod/
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
Workaround
I just opened the microsoft.prod repo file that was created and edited it to change the repository name.
[packages-microsoft-com-pwsh]
name=packages-microsoft-com-pwsh
baseurl=https://packages.microsoft.com/rhel/7/prod/
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
Actual Resolution
Either change the name of one of the package files or create a single repo that all Microsoft packages can be obtained.