Package Manager Package Management (OneGet) pa Windows 10

Pin
Send
Share
Send

Chimodzi mwazinthu zosangalatsa kwambiri mu Windows 10 chomwe wosuta wamba sangazindikire ndi PackageManagement package manager (omwe kale anali OneGet), zomwe zimapangitsa kukhazikitsa, kusaka, ndi kusamalira mapulogalamu ena pakompyuta yanu. Ndizokhudza kukhazikitsa pulogalamu kuchokera pamzere wamalamulo, ndipo ngati sizikudziwikiratu kuti izi ndi chifukwa chiyani ndipo zingakhale zothandiza, ndikulimbikitsani kuti muwonere kaye vidiyoyo kumapeto kwa bukuli.

Kusintha 2016: woyang'anira phukusi lomwe linamangidwa adatchedwa OneGet pa gawo loyambirira la Windows 10, tsopano ndi gawo la PackageManagement ku PowerShell. Komanso mu malangizo omwe asinthidwa momwe mungagwiritsire ntchito.

PackageManagement ndi gawo limodzi la PowerShell mu Windows 10; kuphatikiza, mutha kupeza woyang'anira phukusi mwa kukhazikitsa Windows Management Framework 5.0 ya Windows 8.1. Munkhaniyi, pali zitsanzo zingapo zogwiritsa ntchito kasitomala waomwe amagwiritsa ntchito wosuta, komanso njira yolumikizira posungira chokoleti cha mtundu wa Chocolatey (mtundu wa nkhokwe yosungirako, yosungira) mu PackageManagement (Chocolatey ndi phukusi loyima pawokha lomwe mutha kugwiritsa ntchito mu Windows XP, 7 ndi 8 ndi zomwe zikugwirizana. posungira pulogalamu. Phunzirani zambiri za kugwiritsa ntchito Chocolatey ngati woyang'anira phukusi wodziimira.)

Malamulo a PackageManagement ku PowerShell

Kuti mugwiritse ntchito malamulo ambiri omwe afotokozedwa pansipa, muyenera kuyendetsa Windows PowerShell ngati oyang'anira.

Kuti muchite izi, yambani kulemba PowerShell pakusaka kwa taskbar, dinani kumanja pazotsatira ndikusankha "Run ngati Administrator".

Phukusi la PackageManagement kapena OneGet limakupatsani mwayi wogwira ntchito ndi mapulogalamu (kukhazikitsa, kusakatula, kusaka, kukweza sizinaperekedwe) ku PowerShell pogwiritsa ntchito malamulo oyenera - njira zofananira ndizodziwika ndi ogwiritsa ntchito a Linux. Kuti mumve zomwe zili pachiwopsezo, mutha kuyang'ana pazenera pansipa.

Ubwino wa njira yokhazikitsa mapulogalamu ndi:

  • kugwiritsa ntchito magwero otsimikizika (simuyenera kusaka pamanja tsamba lovomerezeka),
  • kusowa kwa kukhazikitsa pulogalamu yomwe siyingafunike nthawi yoyika (komanso njira yodziwika bwino yokhazikitsira ndi batani la "Kenako"),
  • kuthekera kopanga ma script oyika (mwachitsanzo, ngati mukufuna kukhazikitsa pulogalamu yonse pamakompyuta atsopano kapena mutakonzanso Windows, simuyenera kuchita kukopera pamanja ndikukhazikitsa, ingoyendetsa script),
  • komanso kukhazikitsa mosavuta ndi kuyang'anira mapulogalamu pa makina akutali (oyang'anira makina).

Mutha kupeza mndandanda wamalamulo omwe akupezeka mu PackageManagement pogwiritsa ntchito Pezani-Command -Module PackageManagement zazikulu zomwe wogwiritsa ntchito amakhala:

  • Pezani-Phukusi - sakani phukusi (pulogalamu), mwachitsanzo: Pezani-Phukusi -Name VLC (Dzina paramenti ikhoza kudumulidwa, vuto silofunika).
  • Ikani-Phukusi - khazikitsa pulogalamuyo pakompyuta
  • Sulani-Phukusi - sankhani pulogalamu
  • Pezani-Phukusi - Onani phukusi lomwe lakhazikitsidwa

Malamulo otsalawa adapangidwa kuti azitha kuwona komwe phukusi (mapulogalamu), amawonjezera ndikuwachotsa. Izi zikuthandizanso ife.

Powonjezera chokoleti cha Chocolatey ku PackageManagement (OneGet)

Tsoka ilo, ndizochepa zomwe zimapezeka m'mabuku omwe adakhazikitsidwa kale (mapulogalamu a pulogalamuyi) omwe PackageManagement imagwira nawo ntchito, makamaka pankhani zamalonda (koma nthawi yomweyo zaulere) - Google Chrome, Skype, mapulogalamu osiyanasiyana othandizira ndi zothandizira.

Chosungira cha NuGet cha Microsoft choyikiratu ndi makina a mapulogalamu, koma osati owerenga wamba (panjira, mukamagwira ntchito ndi PackageManagement mungaperekedwe nthawi zonse kukhazikitsa wothandizira wa NuGet, sindinapeze njira "yakuchotsera" izi, kupatula kuti mubvomereze kamodzi ndi kukhazikitsa).

Komabe, vutoli litha kuthetsedwa ndikulumikiza posungira phukusi la Chocolatey, kuti muchite izi, gwiritsani ntchito lamulo:

Pezani-PackageProvider -Ndi chokoleti

Tsimikizani kuyika kwa Chocolatey, ndipo mutatha kuyika, ikani lamulo:

Seti-PackageSource -Chimake chokoleti -kupitilira

Zachitika.

Chochita chomaliza chomwe chidzafunikira kuti mapaketi a chokoleti ayikidwe ndikuti asinthe Wopereka-Ndondomeko. Kuti musinthe, ikani lamulo lolola kuti zolembedwa zonse za PowerShell zosayidwa ziphedwe:

Kukhazikitsidwa-Pazochita Zapamwamba Zakutali

Lamuloli limalola kugwiritsa ntchito zolemba zolembedwa pa intaneti.

Kuyambira pano, phukusi lochokera ku chokoleti cha Chocolatey lidzagwira ntchito ku PackageManagement (OneGet). Ngati zolakwa zimachitika pakukhazikitsa, yesani kugwiritsa ntchito chizindikiro -Kutulutsa.

Ndipo tsopano chitsanzo chosavuta chogwiritsa ntchito PackageManagement ndi wopereka wa Chocolatey wolumikizidwa.

  1. Mwachitsanzo, tifunika kukhazikitsa pulogalamu yaulere Paint.net (iyi ikhoza kukhala pulogalamu ina yaulere, mapulogalamu ambiri aulere amapezeka posungira). Lowani lamulo pezani-phukusi - dzina (mutha kuyika dzinalo pang'ono, ngati simukudziwa dzina la phukusi, batani la "-nat" ndiosankha).
  2. Zotsatira zake, tikuwona kuti penti.net ilipo posungira. Kukhazikitsa, gwiritsani ntchito lamulo kukhazikitsa-phukusi - dzina penti.net (timatenga dzina lenileni kuchokera kumanzere).
  3. Timadikirira mpaka kukhazikitsa kumalizidwa ndipo timapeza pulogalamuyo osayang'ana kuti tiitsitse bwanji popanda kutsata pulogalamu yomwe siikufuna pa kompyuta yanu.

Video - Kugwiritsa ntchito pulogalamu ya PackageManagement package (aka OneGet) kukhazikitsa mapulogalamu pa Windows 10

Pamapeto pake - ndizofanana, koma m'makanema apakanema, mwina kwa owerenga ena ndizosavuta kumvetsetsa ngati izi ndizothandiza kwa iye kapena ayi.

Pakalipano, tiwona momwe kasamalidwe ka phukusi amayang'ana mtsogolo: panali zidziwitso pakuwoneka kwa OneGet GUI komanso za chithandizo cha mapulogalamu pazenera kuchokera ku Windows Store ndi zina zomwe zikuyembekezeka kukulembedwera.

Pin
Send
Share
Send