Chimodzi mwa zochititsa chidwi kwambiri pa Windows 10, zomwe osagwiritsa ntchito ambiri sangathe kuziwona, ndidongosolo lopangira phukusi la PackageManagement (lomwe kale linali OneGet), lomwe limapangitsa kuti likhale losavuta kukhazikitsa, kufufuza, ndi kusamalira mapulogalamu pa kompyuta yanu. Ponena za kukhazikitsa mapulogalamu kuchokera ku mzere wolamulira, ndipo ngati simukudziwa bwino lomwe ndi chifukwa chake zingakhale zothandiza, ndikupangira kuyamba kuyang'ana kanema pamapeto a malangizo awa.
Sinthani 2016: Mtsogoleri wothandizira pulogalamuyi adatchedwa OneGet pa siteji yoyamba ya Windows 10, tsopano ndi module PackageManagement ku PowerShell. Komanso mu buku lothandizira momwe mungagwiritsire ntchito.
PhukusiManagement ndi gawo limodzi la PowerShell mu Windows 10; pambali, mungapeze wothandizira phukusi mwa kukhazikitsa Windows Management Framework 5.0 ya Windows 8.1. Nkhaniyi ndi zitsanzo zochepa zogwiritsira ntchito wothandizira phukusi kwa wogwiritsa ntchito wamba, komanso njira yolumikizira malo (yosungirako deta, yosungirako) ku Chocolatey mu PackageManagement (Chocolatey ndi mtsogoleri wa phukusi wodziimira omwe mungagwiritse ntchito pa Windows XP, 7 ndi 8 Dziwani zambiri zokhudza kugwiritsa ntchito Chokoleti monga woyang'anira phukusi wodziimira.
Malamulo oyang'anira Package ku PowerShell
Kuti mugwiritse ntchito malamulo ambiri omwe ali pansipa, muyenera kuthamanga Windows PowerShell monga woyang'anira.
Kuti muchite izi, yambani kuyika PowerShell mu kufufuza kwa taskbar, kenako dinani pomwepo pa zotsatira zomwe mwapeza ndikusankha "Kuthamanga monga Mtsogoleri".
Phukusi Loyang'anira Phukusi kapena Management OneGet limakulolani kuti mugwire ntchito ndi mapulogalamu (kukhazikitsa, kuchotsa, kufufuza, kufufuza sikunaperekedwe) ku PowerShell pogwiritsa ntchito malamulo oyenerera - njira zomwezo ndizozoloŵera kwa ogwiritsa ntchito Linux. Kuti mupeze lingaliro la zomwe zanenedwa, mukhoza kuyang'ana chithunzichi pansipa.
Ubwino wa njira iyi kukhazikitsa mapulogalamu ndi:
- pogwiritsa ntchito mapulojekiti ovomerezeka (simukusowa kufufuza pa webusaitiyi)
- Kulephera kukhazikitsa mapulogalamu omwe sangafunike panthawi yowonjezera (ndi njira yodziwika bwino yowonjezera ndi batani "Yotsatira"),
- luso lopanga zolemba zowonjezera (mwachitsanzo, ngati mukufuna kukhazikitsa mapulogalamu onse pamakompyuta atsopano kapena mutabweretsanso Windows, simukufunikira kuwongolera ndi kuwakhazikitsa, kungothamanga script),
- komanso kumasuka kwa kukhazikitsa ndi kusamalira mapulogalamu pa makina akutali (kwa oyang'anira dongosolo).
Mungathe kupeza mndandanda wa malamulo omwe alipo mu PackageManagement pogwiritsa ntchito Pezani-Lamulo -Magulu Azinthu Zamalonda Zofungulo za wophweka mosavuta zidzakhala:
- Pezani-Phukusi - fufuzani phukusi (pulogalamu), mwachitsanzo: Pezani-Package -Name VLC (Dzina la parameter likhoza kuchotsedwa, vuto la makalata silofunikira).
- Sakani-Package - kukhazikitsa pulogalamu pa kompyuta
- Tulutsani-Phukusi - pulogalamu yochotsa
- Pezani-Package - yang'anani ma phukusi
Malamulo otsalirawa akuwunikira kuti ayang'ane magwero a mapulogalamu (mapulogalamu), kuphatikiza ndi kuchotsa. Mpata uwu ndi wothandiza kwa ife.
Kuwonjezera Chocolatey Repository ku PackageManagement (OneGet)
Mwamwayi, mu-pre-installed repositories (mapulogalamu a mapulogalamu) omwe PackageManagement amagwira ntchito, palibe chopezeka, makamaka pankhani ya malonda (koma opanda ufulu) malonda - Google Chrome, Skype, mapulogalamu osiyanasiyana othandizira.
Kusungidwa kosasinthika kwa Microsoft kwa NuGet yosungirako kuli ndi zida zothandizira olemba mapulogalamu, koma osati kwa wowerenga wanga weniweni (mwa njira, pamene akugwira ntchito ndi PackageManagement, mungathe kuperekedwa nthawi zonse kuti muike NuGet wothandizira, sindinapeze njira yoti ndichotsere kupatula kuvomereza ndi kukhazikitsa).
Komabe, vuto likhoza kuthetsedwa mwa kugwirizanitsa cholembera cha pulogalamu ya chokoleti. Kuti muchite izi, gwiritsani ntchito lamulo:
Pezani-PackageProvider -Name chocolatey
Tsimikizirani kukhazikitsa wogulitsa Chocolatey, ndipo mutatha kuyika mulowetsa lamulo:
Ikani Phukusi -Name-Chombo chokoleti -chotsedwa
Zachitika.
Chinthu chotsiriza chofunika pa phukusi chokoleti kuti chiyike ndikusintha Pulogalamu Yophedwa. Kusintha, lowetsani lamulo lololeza kuti PowerShell ayambe kulembedwa malemba kuti agwiritse ntchito:
Ikani-ExecutionPolicy RemoteSigned
Lamulo limalola kugwiritsa ntchito zolembedwa zolembedwa zomwe zilipo kuchokera pa intaneti.
Kuchokera pano, ma phukusi ochokera ku Chokoleti malo adzagwira ntchito mu PackageManagement (OneGet). Ngati zolakwika zikuchitika panthawi yowonjezera, yesetsani kugwiritsa ntchito parameter -Nkhani.
Ndipo tsopano chitsanzo chophweka chogwiritsira ntchito PackageManagement ndi chojambulidwa chopereka provider.
- Mwachitsanzo, tifunika kukhazikitsa pulogalamu yaulere pa Paint.net (ikhoza kukhala pulogalamu ina yaulere, zambiri za pulogalamu yaulere ziri mu malo osungira). Lowani timu pepala-fupa-dzina lapanyumba (Mungatchule dzina pang'onopang'ono, ngati simukudziwa dzina lenileni la phukusi, fungulo "-name" silofunika).
- Chotsatira chake, tikuwona kuti paint.net ilipo pakhomo. Kuti muyike, gwiritsani ntchito lamulo kukhazikitsa-phuku -name paint.net (timatenga dzina lenileni kuchokera kumanzere).
- Tikudikira kukonza kuti tithe kumaliza ndikupeza pulogalamuyi, osayang'ana komwe tingayisungire komanso osalandira pulogalamu iliyonse yosafunikira pa kompyuta yanu.
Video - Pogwiritsa ntchito Package Manager Manager Package (aka OneGet) kukhazikitsa mapulogalamu pa Windows 10
Chabwino, pomalizira - zonse ziri zofanana, koma mu mawonekedwe a kanema, zikhoza kukhala zophweka kwa owerenga ena kuti amvetse ngati izi zimapindulitsa kwa iye kapena ayi.
Kwa nthawiyi, tiwona momwe kayendetsedwe ka phukusi kawoneka ngati m'tsogolomu: Panali zambiri zokhudza mawonekedwe a OneGet zojambulajambula ndi zothandizira maofesi apakompyuta kuchokera ku Masitolo a Windows ndi zina zotheka za mankhwala.