Abasebenzisi be-Linux bajwayele ukufaka, ukukhipha kanye nokuvuselela izinhlelo zokusebenza kusetshenziswa umphathi wephakethe le-apt-uthole lokhu kuyindlela ephephile nevumayo yokufaka ngokushesha lokho okudingayo. Ku-Windows 7, 8 no-10, ungathola imisebenzi efanayo ngokusebenzisa umphathi wephakethe le-Chocolatey futhi yilokhu indatshana ezoxoxa ngakho. Inhloso yomyalo ukujwayeza umsebenzisi omaphakathi ukuthi umphathi wephakheji uyini futhi akhombise izinzuzo zokusebenzisa le ndlela.
Indlela ejwayelekile yokufaka izinhlelo kukhompyutha yabasebenzisi beWindows ukulanda uhlelo kwi-Intanethi, bese usebenzisa ifayili lokufaka. Kulula, kepha kunemiphumela emibi - ukufaka isoftware eyengeziwe engadingekile, izengezo zesiphequluli noma ukuguqula izilungiselelo zayo (konke lokhu kungabakhona ngenkathi ufaka kusuka kusayithi elisemthethweni), ungasasho amagciwane lapho ulanda emithonjeni engabazisayo. Ngaphezu kwalokho, cabanga ukuthi udinga ukufaka izinhlelo ezingama-20 ngasikhathi sinye, ungathanda ngandlela thile ukusebenzisa le nqubo?
Qaphela: I-Windows 10 ifaka imenenja yayo yephakheji ye-OneGet (Isebenzisa i-OneGet ku-Windows 10 kanye nokuxhuma isitolo se-Chocolatey).
Ukufakwa kwe-Chocolatey
Ukufaka i-Chocolatey kukhompyutha yakho, uzodinga ukusebenzisa umugqa wokuyala noma iWindows PowerShell njengomlawuli, bese usebenzisa imiyalo elandelayo:
Emugqeni womyalo
@powershell -NoProfile -ExecutionPolicy unhibric -Command "iex ((net-new net kitu.webclient) .DownloadString ('// chocolatey.org/install.ps1'))" &&ET STH =% PATH%;% AllUSERSPROFILE% chocolatey bin
KuWindows PowerShell, sebenzisa umyalo Setha-I-RulePolicy Kuthunyelwe kude ukunika amandla imibhalo esayiniwe ekude, bese ufaka i-Chocolatey ngomyalo
iex ((net-new net kitu.webclient) .DownloadString ('// chocolatey.org/install.ps1')
Ngemuva kokufaka ngokusebenzisa i-PowerShell, uyiqale kabusha. Yilokho, umphathi wephakheji elungele ukuhamba.
Usebenzisa Umphathi we-Chocolatey Package ku-Windows
Ukuze ulande futhi ufake noma yiluphi uhlelo usebenzisa umphathi wephakheji, ungasebenzisa umugqa wokuyala noma iWindows PowerShell, eyethulwe njengomlawuli. Ukuze wenze lokhu, udinga nje ukufaka omunye wemiyalo (isibonelo wokufaka i-Skype):
- choco ufake skype
- i-cinst skype
Kulokhu, inguqulo esemthethweni yohlelo izothunyelwa ngokuzenzakalelayo futhi ifakwe. Ngaphezu kwalokho, ngeke ubone okunikezwayo kokuvuma ukufaka isoftware engafuneki, izandiso, ukuguqula ukusesha okuzenzakalelayo nekhasi lokuqala lesiphequluli. Hhayi, futhi owokugcina: uma ucacisa amagama amaningi anesikhala, wonke lawo makhono azofakwa kukhompyutha.
Okwamanje, ngale ndlela ungafaka cishe ama-3,000 we-freeware kanye nezinhlelo ze-shareware futhi, ngeqiniso, awungeke wazi amagama abo bonke. Kulokhu, iqembu lizokusiza. ushokoledi sesha.
Isibonelo, uma uzama ukufaka isiphequluli seMozilla, uzothola umyalezo wephutha wokuthi uhlelo olunjalo alutholakalanga (namanje, ngoba isiphequluli sibizwa ngeFirefox), ushokoledi sesha mozilla izokuvumela ukuthi uqonde ukuthi yini iphutha futhi isinyathelo esilandelayo sizokwanela ukungena i-cinst isicishamlilo (inombolo yenguqulo ayidingeki).
Ngiyabona ukuthi ukusesha akusebenzi ngegama kuphela, kepha futhi nencazelo yezinhlelo zokusebenza ezitholakalayo. Isibonelo, ukucinga uhlelo lokushisa i-disc, ungasesha ngegama eliyisihluthulelo sokushisa, bese ngenxa yalokho uthole uhlu ngezinhlelo ezidingekayo, kufaka phakathi nalabo igama lakhe elingaveli. Ungabona uhlu olugcwele lwezinhlelo zokusebenza ezitholakalayo ku-chocky.org.
Ngokufanayo, ungasusa uhlelo:
- choco khipha uhlelo_ igama
- Uhlelo lwe-cuninst_ Igama
noma uyivuselele usebenzisa imiyalo ushokoledi buyekeza noma inkomishi. Esikhundleni segama lohlelo, ungasebenzisa igama lonke, i.e. ushokoledi buyekeza konke izovuselela zonke izinhlelo ezifakwe nge-Chocolatey.
Iphakheji Yemenenja Ye-GUI
Kungenzeka ukusebenzisa i-Chocolatey GUI ukufaka, ukukhipha, ukubuyekeza nokucinga ngezinhlelo. Ukuze wenze lokhu, ngena ushokoledi faka I-ChocolateyGUI bese usebenzisa uhlelo olufakiwe egameni lomlawuli (livela kumenyu yokuqala noma ohlwini lwezinhlelo ezifakiwe zeWindows 8). Uma uhlela ukuyisebenzisa kaningi, ngincoma ukuthi umaka ukwethulwa njengo-Administrator ezakhiweni zesinqamuleli.
Ukubonakaliswa kwemenenja yephakeji kuyinto enembile: amathebhu amabili anamaphakheji afakiwe futhi akhona (izinhlelo), iphaneli elinolwazi ngabo nezinkinobho zokuvuselela, ukukhipha noma ukufaka, ngokuya ngalokho okukhethiwe.
Ubuhle bale ndlela yokufaka izinhlelo
Ukufingqa, ngiphinda ngibone izinzuzo zokusebenzisa umphathi wephakethe le-Chocolatey ukufaka izinhlelo (zomsebenzisi we-novice):
- Uthola izinhlelo ezisemthethweni ezivela emithonjeni ethembekile futhi ungazifaki engcupheni yokuzama ukuthola isoftware efanayo kwi-Intanethi.
- Lapho ufaka uhlelo, awudingi ukuthi uqinisekise ukuthi okuthile okungadingekile akafakiwe, kuzofakwa uhlelo lokusebenza oluhlanzekile.
- Lokhu kushesha kakhulu kunokucinga ngesandla isiza esemthethweni nekhasi lokulanda kulo.
- Ungakha ifayela lesikripthi (.bat, .ps1) noma umane ufake zonke izinhlelo zamahhala ezidingekayo ngasikhathi sinye ngomyalo owodwa (ngokwesibonelo, ngemuva kokufaka kabusha iWindows), okungukuthi ukufaka izinhlelo eziyishumi nambili, kufaka phakathi ama-antivirus, izinsiza kusebenza kanye nabadlali, udinga kanye kuphela faka umyalo, emva kwalokho awudingi ngisho nokuchofoza inkinobho "elandelayo".
Ngiyethemba ukuthi lolu lwazi luzoba wusizo kwabanye babafundi bami.