Questions tagged [oneget]

PS C:\> Import-Module .\OneGet.psd1 PS C:\> Find-Package -Name zoomit -AllVersions

OneGet is a unified interface to package management systems and aims to make Software Discovery, Installation and Inventory (SDII) work via a common set of cmdlets (and eventually a set of APIs). Regardless of the installation technology underneath, users can use these common cmdlets to install/uninstall packages, add/remove/query package repositories, and query a system for the software installed. Included in this CTP is a prototype implementation of a Chocolatey-compatible package manager that can install existing Chocolatey packages.

With OneGet, you can

  • Manage a list of software repositories in which packages can be searched, acquired, and installed
  • Search and filter your repositories to find the packages you need
  • Seamlessly install and uninstall packages from one or more repositories with a single PowerShell command

We'll also be publishing standalone builds, once the source code is published.

https://github.com/OneGet/oneget

16 questions
17
votes
1 answer

Create pure powershell Nuget module for PowerShellGet

What I want I want to publish number of PowerShell scripts as Nuget package to be used on build systems. I want to use PowerShellGet to do installation work for me and version management. I don't want those scripts to be part of any Visual Studio…
Anton
  • 10,890
  • 8
  • 45
  • 54
13
votes
4 answers

How to install Node.js with Windows PowerShell PackageManager (OneGet)?

I tried Install-Package nodejs, which seems to have done something: PS C:\WINDOWS\system32> Install-Package nodejs The package(s) come(s) from a package source that is not marked as trusted. Are you sure you want to install software from…
trusktr
  • 44,284
  • 53
  • 191
  • 263
12
votes
6 answers

Invalid Web Uri error on Register-PSRepository

After Windows November update (PackageManagement and PowerShellGet modules of 1.0.0.1 version) I can't register HTTPS NuGet servers as PSRepository anymore: Register-PSRepository -Name test -SourceLocation https://some-nuget/api/v2 It returns…
Anton
  • 10,890
  • 8
  • 45
  • 54
11
votes
2 answers

Skip confirmation while using Install-Package?

I have added ChocolateyGet as a provider on Powershell so I can use it with PackageManagement (OneGet), it works but every package I try to install warns: https://www.chocolatey.org is not a trusted package source Then asks for confirmation. It…
guilherme.oc97
  • 431
  • 1
  • 3
  • 13
7
votes
3 answers

Corrupt PackageManager? Unable to find module providers (PowerShellGet)

This is a common error that is not solved by the common solutions I have found on the internet. Unable to run Get-PsRepository, Install-Module, and related (OneGet?) commands without them throwing the "Unable to find module providers…
GeneralZod
  • 109
  • 1
  • 8
4
votes
1 answer

What's relationship between the new winget and the Microsoft.PackageManagement

Years back, there was a Microsoft package manager called PackageManagement (aka OneGet), which seems to be based on PowerShell command conventions, and was extensible. Recently, Microsoft introduced another package manager tool known as winget,…
Burt_Harris
  • 6,415
  • 2
  • 29
  • 64
3
votes
3 answers

PowerShell package source confirmation

I'm trying to create a function that will automatically install, update and import on demand a PowerShell module from repository PSGallery and this will be run on a build server so I have to avoid any kind of confirmation prompts. This function will…
vinhent
  • 2,692
  • 4
  • 17
  • 20
3
votes
0 answers

Can I provide package parameters using Install-Package?

I know I can install packages on Windows Package Management with eg: Get-PackageSource -Provider chocolatey Install-Package -Name win32-openssh But is there a way to provide package params? Eg packages like win32-openssh have options when they're…
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
2
votes
1 answer

How do I install a package using OneGet / install-package from nuget.org

I am attempting to install the Microsoft.Experimental.IO library from here : https://www.nuget.org/packages/Microsoft.Experimental.IO/1.0.0 on Windows 10 using Powershell - Install-Package. I have added the nuget.org repo and when I use the command…
leinad13
  • 445
  • 2
  • 8
  • 26
2
votes
1 answer

Update-Module duplicates module instead of updating

I'm using PowerShellGet to install my own PowerShell module from my local Nuget feed (packed and published as here). I'm installing it once like this: Install-Module MyModule -Scope CurrentUser And then I'm updating it like this: Update-Module…
Anton
  • 10,890
  • 8
  • 45
  • 54
1
vote
2 answers

How to fix "invalid Web Uri" for Powershell Register-PSRepository?

A few weeks ago this error started popping up. Set-PSRepository : The specified Uri 'http://*****' for parameter 'SourceLocation' is an invalid Web Uri. Please ensure that it meets the Web Uri requirements. I'm not sure how to fix this short…
user1869558
  • 697
  • 3
  • 11
  • 21
1
vote
1 answer

How do I shim executables with the same names in different directories?

I am creating a Chocolatey package for internal team usage. (In this case, the package is for Microsoft's windows debuggers.) Windows Debuggers contains two folders, one for 32-bit x86 executables and an x64 folder for 64-bit executables. The…
Ayo I
  • 7,722
  • 5
  • 30
  • 40
0
votes
0 answers

How do I download and install Nuget packages with PackageManagement Module?

How do I download and install Nuget packages with PackageManagement Module? I can't seem to find any packages when I run find-package -Source nuget.org or try to run the install with a package I see on nuget.org. Is there some configuration I am…
Monty Harris
  • 59
  • 1
  • 5
0
votes
1 answer

How can I create executable package for OneGet Install-Package?

I understand how to create a package for NuGet. There's also nothing especially hard with creating a NuGet package or PowerShell package. I'm aware it may be impossible to create PowerShell package with binary cmdlet in .NET Core, so wondering if…
brutallord
  • 861
  • 2
  • 11
  • 16
0
votes
1 answer

Import currently installed programs in OneGet

I would like to start using OneGet for installing programs in windows. However, I would rather not have to go through and uninstall my current programs just so that i can use them with OneGet. Does OneGet automatically import installed programs and…
binary-idiot
  • 119
  • 1
  • 9
1
2