E 'ngoe ea lintho tse thahasellisang ka ho fetisisa ho Windows 10, eo mohoeletsi ea tloaelehileng a ke keng a e hlokomela, ke mookameli oa phakana oa package ea PackageManagement (eo pele e neng e le OneGet), e etsang hore ho be bonolo ho kenya, ho batla le ho laola mananeo a khomphuteng ea hau. Ke ho kenya mananeo ho tsoa molaong oa taelo, 'me haeba u sa hlaka hantle hore na ke eng le hore na ke hobane'ng ha e ka ba molemo, ke khothaletsa ho qala ho shebella video qetellong ea taelo ena.
Phatlalatso 2016: mookameli oa liphutheloana tse hahiloeng kahare o bitsoa OneGet sethaleng sa liphetolelo tsa pele tsa Windows 10, hona joale ke module ea PackageManagement ea PowerShell. Hape bukeng e nchafalitsoeng ea ho e sebelisa.
PackageManagement ke karolo ea bohlokoa ea PowerShell ho Windows 10; ntle le moo, o ka fumana mookameli oa phakeletso ka ho kenya Windows Management Framework 5.0 bakeng sa Windows 8.1. Sehlooho sena ke mehlala e seng mekae ea ho sebelisa mookameli oa phapanyetsano bakeng sa mochine ea tloaelehileng, hammoho le tsela ea ho hokahanya sebaka sa polokelo (mofuta oa ditshwantsho, polokelo) ho Chocolatey ka PackageManagement (Chocolatey ke mookameli oa phakethe o ikemetseng oo u ka o sebelisang ho Windows XP, 7 le 8 le e tšoanang Software repository. Ithute ho eketsehileng ka ho sebelisa Chocolatey e le mookameli oa pasekha e ikemetseng.
Melao ea PackageManagement e PowerShell
Ho sebelisa boholo ba litaelo tse hlalositsoeng ka tlase, u tla lokela ho matha Windows PowerShell e le motsamaisi.
E le ho etsa sena, qala ho thapanya PowerShell sebakeng sa ho batla sa libaka, ebe u tobetsa ka ho nepahetseng ho sephetho se fumanoeng 'me u khethe "Matla e le Mookameli".
Mohoete oa Package Manager kapa Management OneGet eu lumella hore u sebetse le mananeo (kenya, ho tlosa, ho batlisisa, ho ntlafatsa ha ho e-s'o fanoe) ka PowerShell ho sebelisa litaelo tse loketseng - mekhoa e tšoanang e tloaelehile ho basebelisi ba Linux. E le hore u fumane khopolo ea seo ho buuoang ka sona, u ka sheba skrine e ka tlase.
Melemo ea mokhoa ona oa ho kenya mananeo ke:
- ho sebelisa lisebelisoa tsa software tse hlakileng (ha ho hlokahale hore u batlisise websaeteng ea molao ka letsoho),
- ho hloka mokhoa oa ho kenya lenaneo le sa batleheng nakong ea ho kenya (le mokhoa o tloaelehileng oa ho kenyelletsa le konopo e "Latelang"),
- bokhoni ba ho etsa litemana tsa ho kenya (mohlala, haeba u hloka ho kenya lenaneo le feletseng la lik'homphieutha kapa ka mor'a hore u tsosolose Windows, ha ho hlokahale hore u li boloke ka letsoho le ho li kenya, feela u tsamaise script),
- hammoho le boiketlo ba ho kenya le ho tsamaisa mananeo ho mechini e hōle (bakeng sa batsamaisi ba tsamaiso).
U ka fumana lethathamo la litaelo tse fumanehang ho PackageManagement u sebelisa Fumana-Taelo -Phaketeng ea Boipheliso Lintlha tsa bohlokoa bakeng sa mosebedisi o bonolo e tla ba:
- Fumana-Package - batla lipatlisiso (lenaneo), ka mohlala: Find-Package -Name VLC (Lebitso la parameter le ka tlosoa, taba ea mangolo ha ea bohlokoa).
- Kenya-Package - kenya lenaneo lenaneong la khomphuta
- Tlosa-Package - tlosa lenaneo
- Fumana-Package - sheba liphutheloana tse kentsoeng
Melao e setseng e reretsoe ho shebella mohloli oa liphutheloana (mananeo), ho phaella le ho tlosoa ha bona. Monyetla ona o boetse oa sebetsa ho rona.
Ho eketsa Chocolatey Repository ho PackageManagement (OneGet)
Ka bomalimabe, li-repositories tsa pele ho kopo (mehloli ea lenaneo) eo PackageManagement e sebetsang ho eona, ha ho na ntho e ka fumanoang, haholo-holo ha ho tluoa lihlahisoa tsa khoebo (empa e sa lefelloe) - Google Chrome, Skype, mananeo a mangata a kopo le lits'ebeletso tsa tšebeletso.
Tlhōrō ea hau ea tlhahiso ea Microsoft ea NuGet e na le lisebelisoa tsa nts'etso-pele bakeng sa li-program, empa eseng bakeng sa 'mali oa ka ea tloaelehileng (ka tsela, ha u ntse u sebetsa le PackageManagement, u ka' na ua fuoa kamehla ho kenya mofani oa NuGet, ha ke fumane tsela ea ho e tlosa ntle le ho lumellana ka kopo).
Leha ho le joalo, bothata bo ka rarolloa ka ho kopanya polokelo ea mookameli oa paketeng ea Chocolatey. Ho etsa sena, sebelisa taelo:
Get-PackageProvider -Name chocolatey
Tiisa ho kenya mofani oa Chocolatey, 'me ka mor'a kopo kenya konopo:
Set-PackageSource -Name chocolatey-e tlositsoe
E se e felile.
Ntho ea ho qetela e hlokahalang bakeng sa liphutheloana tsa chokolete tse lokelang ho kenngoa ke ho fetola Leano la Phatlalatso. Ho fetola, kenya taelo ea ho lumella matla a mang a matla a PowerShell a tšeptjoang ho sebetsa:
Beha-ExecutionPolicy RemoteSigned
Taelo e lumella ho sebelisoa ha litokomane tse ngotsoeng ho tsoa Inthaneteng.
Ho tloha joale ho ea pele, liphutheloana tse tsoang sebakeng sa Chocolatey li tla sebetsa PackageManagement (OneGet). Haeba liphoso li etsahala nakong ea tlhahlobo, leka ho sebelisa parameter -Ke molemong oa.
Hona joale ke mohlala o bonolo oa ho sebelisa PackageManagement le mochini oa Chocolatey o kopantseng.
- Ka mohlala, re lokela ho kenya lenaneo la mahala la Paint.net (e ka ba lenaneo le leng la mahala, boholo ba mananeo a mahala a le polokelong). Kenya sehlopha fumana pente-lebitso la pente (O ka kenya lebitso ka thōko, haeba u sa tsebe lebitso le tobileng la pakete, senotlolo "-name" ha ea hlokeha).
- Ka lebaka leo, rea bona hore paint.net e teng sebakeng sa polokelo. Ho kenya, sebelisa taelo kenya-package -name paint.net (re nka lebitso le tobileng ho tloha ka letsohong le letšehali).
- Re emetse ho hlongoa ho qeta le ho fumana lenaneo le kenyelelitsoeng, re sa batle hore na re ka le kopanela hokae le hore ha re amohele software leha e le efe e sa batleheng khomphuteng ea hau.
Video - Ho sebelisa Package Manager Manager Package (aka OneGet) ho kenya software ho Windows 10
Ha e le hantle, qetellong - ntho e 'ngoe le e' ngoe e ts'oana, empa mofuteng oa video, ho ka 'na ha e-ba bonolo ho babali ba bang hore ba utloisise hore na sena sea mo thusa kapa che.
Ha nako e ntse e le, re tla bona kamoo tsamaiso ea liphutheloana e tla shebahala kateng nakong e tlang: ho ne ho e-na le tlhahisoleseding e mabapi le ponahalo e ka khonehang ea sebopeho sa setšoantšo sa OneGet le ts'ehetso bakeng sa lik'homphieutha tsa lisebelisoa ho tswa ho Store Store le litebello tse ling tse ka khonehang bakeng sa sehlahisoa.