-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


OneGet, NuGet, Chocolatey, PowerShellGet

, 18 2017 . 04:55 +
Windows. , , , Linux, .
, :
chocolatey , nuget .

, .

, Linux? : , . : - (deb, rpm) - ( , tar-). , (), (). : , , ( stdeb pip elastalert npm) , .

Windows.

. msi/msu , , [ , ]. rpm. spec-. NuGet, .nupkg. , , , .

, . apt, yum, : pip, gem, npm, cpan, cpm,
Windows?
NuGet. NuGet-, nuget.exe , .

:
Debian: apt(deb) + pip + npm + gem +
RHEL: yum(rpm) + pip + npm + gem +
Windows: nuget(nupkg) + pip + npm + gem +
, msi ( , ).

Linux.
Windows - , , . open-source' OneGet ( : PackageManager, PowerShell >=5.0).
OneGet , . OneGet . , Install-Package, wrapper' .
: OneGet . : NuGet, PIP, NPM.
, - , :
Install-Package < pip->

OneGet :
pip install < pip->

NuGet :
Install-Package < nupkg->

:
nuget install < nupkg->


. Install-Package , . ( PowerShell) . . OneGet . .

NuGet NuGet- . : NuGet , NuGet(nuget.exe), NuGet(.nupkg).

. (Source Windows):
PS C:\> nuget source list
Registered Sources:

  1.  nuget.org [Enabled]
      https://api.nuget.org/v3/index.json
  2.  ABC [Enabled]
      http://<___IP>/artifactory/api/nuget/<_>

:
PS C:\> gem sources
*** CURRENT SOURCES ***

https://rubygems.org

OneGet , . , , .

:
PS C:\> Get-PackageProvider

Name                     Version          DynamicOptions
----                     -------          --------------
Chocolatey               2.8.5.130        SkipDependencies, ContinueOnFailure, ExcludeVers
ChocolateyGet            1.0.0.1          AdditionalArguments
msi                      3.0.0.0          AdditionalArguments
msu                      3.0.0.0
NuGet                    2.8.5.208        Destination, ExcludeVersion, Scope, SkipDependen
PowerShellGet            1.0.0.1          PackageManagementProvider, Type, Scope, AllowClo
Programs                 3.0.0.0          IncludeWindowsInstaller, IncludeSystemComponent

:
PS C:\> Get-PackageSource

Name                             ProviderName     IsTrusted  Location
----                             ------------     ---------  --------
nuget.org                        NuGet            False      https://api.nuget.org/v3/index.json
PSGallery                        PowerShellGet    False      https://www.powershellgallery....
chocolatey                       Chocolatey       False      http://chocolatey.org/api/v2/


PowerShellGet. PowerShell. PowerShell 2 PackageManager(aka OneGet). . PowerShellGet , , , OneGet.
.nupkg, PowerShell. , PSGallery NuGet:
PS C:\> Get-PSRepository -Name "PSGallery" | Format-List * -Force

Name                      : PSGallery
SourceLocation            : https://www.powershellgallery.com/api/v2/
Trusted                   : False
Registered                : True
InstallationPolicy        : Untrusted
PackageManagementProvider : NuGet
PublishLocation           : https://www.powershellgallery.com/api/v2/package/
ScriptSourceLocation      : https://www.powershellgallery.com/api/v2/items/psscript/
ScriptPublishLocation     : https://www.powershellgallery.com/api/v2/package/
ProviderOptions           : {}

: PackageManager Get-PackageSource, Get-PSRepository.
, , , PowerShell. , . ( PublishLocation).
, :
PS C:\> Get-PackageSource -Name "PSGallery" | Format-List * -Force

Name         : PSGallery
Location     : https://www.powershellgallery.com/api/v2/
Source       : PSGallery
ProviderName : PowerShellGet
Provider     : Microsoft.PackageManagement.Implementation.PackageProvider
IsTrusted    : False
IsRegistered : True
IsValidated  : False
Details      : {[ScriptPublishLocation, https://www.powershellgallery.com/api/v2/package/], [InstallationPolicy, Untrusted], [PackageManagementProvider, NuGet],
               [ScriptSourceLocation, https://www.powershellgallery.com/api/v2/items/psscript/]...}


: Chocolatey.
, Chocolatey NuGet. , . Chocolatey spec', . .msi silent-. , NuGet nuget.exe NuGet-, Chocolatey + , . Chocolatey NuGet. Chocolatey .

, Chocolatey ChocolateyGet. . , . .
Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/331124/

:  

: [1] []
 

:
: 

: ( )

:

  URL