Kugwiritsa ntchito Chocolatey kukhazikitsa Mapulogalamu pa Windows

Pin
Send
Share
Send

Ogwiritsa ntchito a Linux adazolowera kukhazikitsa, kusayimitsa ndikusintha mapulogalamu pogwiritsa ntchito apt-Get package manager - iyi ndi njira yotetezeka komanso yosavuta kukhazikitsa zomwe mukufuna. Mu Windows 7, 8 ndi 10, mutha kupeza zofanana ndi izi pogwiritsa ntchito Chocolatey package manager ndipo izi ndi zomwe nkhaniyi ikukambirana. Cholinga cha malangizowa ndikuwonetsa ogwiritsa ntchito zomwe ali ndiomwe amapangira phukusi ndi kuwonetsa mapindu ake pogwiritsa ntchito njirayi.

Njira yokhazikika kukhazikitsa mapulogalamu pa kompyuta kwa owerenga Windows ndikutsitsa pulogalamuyo kuchokera pa intaneti, kenako ndikuyendetsa fayilo yoyika. Ndiosavuta, koma pali zotsatira zoyipa - kukhazikitsa pulogalamu yowonjezera yosafunikira, zowonjezera za asakatuli kapena kusintha makina ake (zonsezi zitha kukhalanso ndikukhazikitsa kuchokera ku tsamba lovomerezeka), osatchula ma virus mukatsitsa kuchokera kumagwero oyipa. Kuphatikiza apo, ingoganizirani kuti muyenera kukhazikitsa mapulogalamu 20 nthawi imodzi, kodi mungafune kusintha njirayi?

Chidziwitso: Windows 10 imaphatikizapo woyang'anira phukusi lake la OneGet (Pogwiritsa ntchito OneGet pa Windows 10 ndikulumikiza posungira ya Chocolatey).

Kukhazikitsa Chocolatey

Kukhazikitsa Chocolatey pakompyuta yanu, muyenera kuyendetsa chingwe chalamulo kapena Windows PowerShell monga oyang'anira, kenako gwiritsani ntchito malamulo awa:

Panjira yolamula

@powershell -NoProfile -ExecutionPolicy unsetric -Command "iex ((net-chinthu net.webclient) .DownloadString ('// chocolatey.org/install.ps1'))" && SET PATH =% PATH%;% AllUSERSPROFILE%  chokoleti  bin

Mu Windows PowerShell, gwiritsani ntchito lamulo KhazikitsaniYachimKaKhalam Kutumiza kuti muthandizire zolemba zakunja zosainidwa, ndikukhazikitsa Chocolatey ndi lamulo

iex ((net-new net.webclient) .DownloadString ('// chocolatey.org/install.ps1')

Pambuyo kukhazikitsa kudzera PowerShell, kuyambitsanso. Ndizo, woyang'anira phukusi wakonzeka kupita.

Kugwiritsa ntchito Chocolatey Package Manager pa Windows

Kuti muthe kutsitsa ndi kukhazikitsa pulogalamu iliyonse pogwiritsa ntchito phukusi la woyang'anira, mutha kugwiritsa ntchito mzere wolamula kapena Windows PowerShell, yokhazikitsidwa ngati woyang'anira. Kuti muchite izi, muyenera kungoika lamulo limodzi (monga kukhazikitsa Skype):

  • chokoleti kukhazikitsa skype
  • cinst skype

Poterepa, pulogalamu yovomerezeka yaposachedwa idatsitsidwa ndikukhazikitsa. Kuphatikiza apo, simukuwona zofunikira kuvomereza kukhazikitsa mapulogalamu osafunikira, zowonjezera, kusintha kusaka ndi tsamba loyambira. Chabwino, ndipo chomaliza: ngati mungatchule mayina angapo ndi danga, ndiye kuti onsewo adzaikidwa kuti ayike kompyuta.

Pakadali pano, mwanjira iyi mutha kukhazikitsa mapulogalamu pafupifupi 3,000 a freeware ndi shareware ndipo, mwachidziwikire, simungadziwe mayina awo onse. Pankhaniyi, gulu likuthandizani. chokoleti kusaka.

Mwachitsanzo, ngati muyesera kukhazikitsa msakatuli wa Mozilla, mudzalandira uthenga wolakwika kuti pulogalamuyi sinapezeke (komabe, chifukwa osatsegula amatchedwa Firefox), chokoleti kusaka mozilla lidzakuthandizani kuti mumvetsetse zomwe cholakwacho chiri ndipo gawo lotsatira lidzakhala lokwanira kulowa cinst firefox (nambala ya mtundu siyofunikira).

Ndazindikira kuti kusaka sikugwira ntchito ndi dzina lokha, komanso malongosoledwe a mapulogalamu omwe alipo. Mwachitsanzo, kuti mufufuze pulogalamu yoyaka ya disc, mutha kusaka ndi mawu osakira, ndipo chifukwa chake pezani mndandanda ndi mapulogalamu omwe amafunikira, kuphatikizira omwe dzina lake silimawoneka. Mutha kuwona mndandanda wonse wa mapulogalamu omwe akupezeka pa chocolatey.org.

Momwemonso mutha kuchotsa pulogalamu:

  • choco uninstall program_name
  • pulogalamu yoyera - dzina

kapena musinthe pogwiritsa ntchito malamulo chokoleti sinthani kapena kapu. M'malo mwa dzina la pulogalamuyo, mutha kugwiritsa ntchito mawu onse, i.e. chokoleti sinthani zonse ikonzanso mapulogalamu onse omwe aikidwa ndi Chocolatey.

Phukusi Manager wa GUI

Ndikotheka kugwiritsa ntchito Chocolatey GUI kukhazikitsa, kuchotsa, kusinthitsa ndi kusaka mapulogalamu. Kuti muchite izi, lowetsani chokoleti khazikitsa ChocolateyGUI ndikuyendetsa pulogalamu yoyika m'malo mwa Administrator (imapezeka mumenyu yoyambira kapena mndandanda wa mapulogalamu a Windows 8). Ngati mukufuna kugwiritsa ntchito pafupipafupi, ndikulangizani kuti mulembepo kukhazikitsa monga Administrator muzinthu zazifupi.

Mawonekedwe a woyang'anira phukusi ndiwopanda pake: ma tabo awiri omwe ali ndi ma phukusi omwe adakhazikitsidwa komanso omwe akupezeka (mapulogalamu), gulu lomwe lili ndi zidziwitso za iwo ndi mabatani kuti musinthe, osasunga kapena kuyika, kutengera zomwe zidasankhidwa.

Ubwino wa njirayi yakhazikitsa mapulogalamu

Mwachidule, ndibwerezanso kuzindikira phindu logwiritsa ntchito chokoleti cha Chocolatey kukhazikitsa mapulogalamu (ogwiritsa ntchito novice):

  1. Mumalandira mapulogalamu ovomerezeka kuchokera ku magwero odalirika ndipo osakhala pachiwopsezo chofufuza pulogalamu yomweyo pa intaneti.
  2. Mukakhazikitsa pulogalamuyi, simuyenera kuonetsetsa kuti china chake chosafunikira sichinayikidwe, pulogalamu yoyera iyenera kuyikiridwa.
  3. Ichi ndichofulumira kwambiri kuposa kusaka pamasamba pawebusayiti ndi kutsitsa patsamba lake.
  4. Mutha kupanga fayilo ya script (.bat, .ps1) kapena kungoika mapulogalamu onse aulere nthawi imodzi ndi lamulo limodzi (mwachitsanzo, mukayikanso Windows), ndiye kuti, kukhazikitsa mapulogalamu awiri, kuphatikiza ma antivirus, zofunikira ndi osewera, muyenera kamodzi kokha lowetsani lamulo, pambuyo pake simuyenera kudina "batani" Kenako.

Ndikukhulupirira kuti chidziwitso ichi chikhala chothandiza kwa ena mwa omwe amawerenga.

Pin
Send
Share
Send