Apt- * ko Kwarewa, wanne za ayi amfani da shi?

Ya dace (Ashayarwa Prawanin Tlol) ana amfani dashi don girkawa da cirewa fakiti a ciki GNU / Linux. Wadanda muke amfani dasu Debian da abubuwanda suka samo asali, muna amfani dashi koyaushe, kodayake zamu iya amfani da shi Amincewa.

Shin kun san menene bambanci tsakanin su biyun? Ni ma ban san su ba, don haka na fara yin bincike da gwaji. Anan zan nuna muku sakamako.

Hankali.

An ce Amincewa sigar inganta ce Ya dace kuma yana sarrafa abubuwan dogaro mafi kyau kuma har ma ana bada shawarar hakan ta Debian. Amincewa ya ƙunshi ƙarin zaɓuɓɓuka da yawa fiye da Dace, Bari mu ga mafi yawan waɗanda aka yi amfani da su da bayanin su gwargwadon taimakon ƙwarewa.

shigar : Sanya fakiti ɗaya ko fiye. Ya kamata fakitocin su bayyana bayan umarnin "shigar".
cire, share, riƙe, riƙe, riƙe, sake sanyawa : Waɗannan dokokin suna yin daidai da "girka", amma a wannan yanayin aikin da aka ambata zai shafi duk waɗancan fakitin a layin umarnin da ba su warware shi ba.
update : Theaukaka jerin wadatattun fakitoci daga asalin hanyoyin (daidai da "apt-get update").
lafiya-inganci : Sabunta abubuwanda aka sanya su zuwa sabuwar sigar su. Za a cire fakitin da aka girka sai dai ba a yi amfani da su ba.
cikakken-inganci : Sabunta abubuwan fakiti da aka sanya su zuwa sabuwar sigar su, girkawa ko cire kunshin idan hakan ya zama dole. Wannan umarnin ba shi da ra'ayin mazan jiya fiye da haɓakawa mai aminci, don haka ya fi dacewa da ayyukan da ba a so. Koyaya, yana da damar sabunta fakiti waɗanda ingantaccen-haɓakawa ba zai iya sabuntawa ba. Saboda dalilai na tarihi, asalin sunan sa ana kiransa da harzuka ne, kuma har ilayau har ilayau har ilayau yana ganin sakewa da sabuntawa a matsayin ma'ana don cikakken haɓakawa.
search : Nemi fakiti waɗanda suka dace da ɗayan alamu da aka shigar akan layin umarni.
show : Nuna cikakkun bayanai masu alaƙa da fakiti ɗaya ko sama, da aka jera bisa ga umurnin «bincika».

Don ganin ƙarin bayani game da iyawa da zaɓuɓɓukanta, zamu iya amfani da ɗayan mafi kyawun hanyoyi don neman taimako, sanyawa a cikin na'urar wasan bidiyo:

$ mutum basira

Ya dace

Game da Apt, ana amfani da shi ta hanyar umarni: apt-cache, dace-samu, apt.conf, apt_preferences, amintaccen amintacce, 2 na farko shine mafi yawan amfani. Zaɓuɓɓukan da aka haɗa sune masu zuwa:

update : ana amfani da sabuntawa don aiki tare da alamun kunshin daga asalin su.
inganci : ana amfani da haɓaka don shigar da sabon juzu'i na duk fakitin da aka sanya akan tsarin daga kowane tushe da aka jera a cikin /etc/apt/sources.list.
dist-sabuntawa : Baya ga ayyukan haɓakawa, yana da hankali don ɗaukar canje-canje na dogaro saboda sabbin sigar kunshin. apt-get yana da tsarin "wayo" na sasanta rikice-rikice, kuma idan ya cancanta zaiyi kokarin sabunta muhimman kunshin kudi ta hanyar amfani da wadanda basu da mahimmanci.
shigar : Shigar ko sabunta abubuwan fakitin da ke bin kalmar "girka".
cire : Yana yin halayya iri ɗaya kamar yadda aka girka tare da bambancin da yake cire fakitin maimakon sanya su. Lura cewa lokacin cire kunshin, fayilolin saitunan suna kan tsarin. Idan alamar ƙari ta riga sunan kunshin (ba tare da wani farin sarari tsakanin su biyun ba), za a shigar da kunshin da ake magana a madadin maimakon cirewa.
tsabta : Daidai yake don cirewa, tare da banbancin cewa za'a cire fakitin kuma a tsarkake su (duk fayilolin sanyi suma za'a cire su).

Don ganin ƙarin bayani game da iyawa da zaɓuɓɓukanta, zamu iya amfani da ɗayan mafi kyawun hanyoyi don neman taimako, sanyawa a cikin na'urar wasan bidiyo:

$ man apt-get.

Menene bambanci to?

A zahiri duk ya dogara ne da amfanin da kowane mutum ya bashi da kuma abin da yakamata suyi. Musamman koyaushe ina amfani da ƙwarewa, saboda yana da ƙarin zaɓuɓɓuka da yawa, amma idan har zan yi bincike, apt-cache yafi birge ni. Hakanan, ƙwarewa yana da na'ura mai kwakwalwa:

Na karanta a wasu wuraren cewa aptitude Hakanan yana shigar da masu dogaro da shawarar, kuma hakan apt-get kawai shigar da shawarar wadanda. Koyaya, idan muka yi ƙoƙarin shigar da Audacious misali, za mu ga cewa yana shigar da fakiti iri ɗaya.

Bari mu gani lokacin shigar da ƙarfin gwiwa tare da aptitude:

sudo basira shigar audacious
Za a shigar da sabbin kunshin nan masu zuwa:
  m-plugins masu ƙarfin ji-kwazo {a} libaudclient2 {a} libaudcore1 {a} libbinio1ldbl {a} libcue1 {a} libfluidsynth1 {a} 
  libmcs1 {a} libmowgli2 {a} libreid-builder0c2a {a} libsidplay2 {a} kasa kwancewa {a} 
0 kunshin da aka sabunta, sababbi 12 an girka, 0 don cirewa kuma 0 ba'a sabunta ba. Ina bukatan zazzage 3494 kB na fayiloli. Bayan kwashe kayan, za'a yi amfani da MB 11,0.

kuma yanzu tare da apt-get:

sudo dace-samun shigar mai karfin gwiwa
Jerin abubuwan kunshin karantawa ... Anyi Kirkiro bishiyar dogara da bayanin matsayin halin ... Anyi Za'a shigarda wadannan karin fakiti:
  audacious-plugins libaudclient2 libaudcore1 libbinio1ldbl libcue1 libfluidsynth1 libmcs1 libmowgli2 libreid-builder0c2a
  cirewa libsidplay2
Fakitin da aka ba da shawara:
  libmcs-backend-gconf libmcs-kayan amfani zip
Za a shigar da sabbin kunshin nan masu zuwa:
  m audacious-plugins libaudclient2 libaudcore1 libbinio1ldbl libcue1 libfluidsynth1 libmcs1 libmowgli2
  libreid-builder0c2a libsidplay2 kasa kwancewa
0 aka sabunta, 12 za'a girka, 0 za'a cire, kuma 0 ba'a sabunta ba. Ina bukatan zazzage 3494 kB na fayiloli. Za a yi amfani da 11,0 MB na ƙarin sararin diski bayan wannan aiki.

Don ganin wani bambanci za mu iya yin bincike. Misali, bude tashar ka rubuta:

kwarewar bincike ipod

sa'an nan kuma

binciken apt-cache ipod

Kamar yadda zaku iya yaba da bincike tare da cache mai sauƙi shi ne mafi gamsarwa. A game da aptitude, kawai an bincika shi da sunan kunshin, duk da haka, cache mai sauƙi bincika dukkan shirye-shirye ko fakiti waɗanda suke da alaƙa da kalmar ipod, mai yiwuwa ta hanyar bayanin kowane kunshin.

ƘARUWA

Yi amfani da wanda yafi dacewa da kai. Ya fi mini sauƙin amfani aptitude saboda umarni ne guda daya, duk da haka tare da dace Dole ne in yi amfani apt-get o cache mai sauƙi bisa ga shari'ar. Idan kun san wasu bambance-bambance, ku bar su a cikin maganganun 😀


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

12 comments, bar naka

Bar tsokaci

Your email address ba za a buga.

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   Yoyo m

    Na kasance mai aminci ga iyawa 😉

    1.    elav <° Linux m

      Mun riga mun kasance 2 😀

  2.   mdder3 m

    Bace "ƙwarewar tsarkake sunan" don cire kunshin + masu dogarowa + jeri na kunshin (matakin tushe)

    Kyakkyawan shigarwa da taya murna akan blog 😛

    gaisuwa

    1.    mdder3 m

      Na riga na gan shi lol ... yi haƙuri don saka "aptitude purge" abu XD

      1.    KZKG ^ Gaara m

        Babu wani abu, kada ku damu ^ - ^
        Na gode da bayananku, saboda niyyar da na tabbata ita ce taimakawa 😉
        Gaisuwa da ci gaba da tsayawa nan 🙂

      2.    elav <° Linux m

        Babu matsala .. Mun gode da son taimakawa .. 😀

  3.   Yesu Ballesteros m

    Lokacin da nake amfani da Debian nakan kuma fi son ƙwarewa, hakan yana ƙara min kwarin gwiwa :). Amma kuma na yarda da ku cewa apt-get ya fi tasiri idan yazo da bincike. Ban sani ba idan basira wata rana zata yi amfani da wani abu mai kama da apt-cache ko wataƙila a nan gaba zasu cire apt-get kuma su bar ƙwarewa da ɓoye-ɓoye: P ...

  4.   Yuli m

    Har zuwa yanzu na yi amfani da APT-GET, zan yarda da APTITUDE don gani ...

  5.   Jose Luis Mantilla m

    Tabbas akwai banbanci sosai !!

    Apt: kun shigar da kunshin tare da ɗakunan karatu da ake buƙata

    Kwarewa: yana shigar da abin da ake buƙata, waɗanda aka ba da shawara kuma kafin girka shi ya tabbatar da cewa ba zai lalata wani kunshin da ke ba da ɗakunan karatu daga wasu sigar ba, kafin girka shi yana magance rikice-rikicen da ke faruwa tsakanin aikace-aikacen da ke gudana ko tashar guda ɗaya ko kuma waɗanda ke da wani abu ba daidai ba a cikin tsarin su kuma kun Nemi yadda kuke so ku warware ta tare da shawarwarin su da bayanin su kuma daga karshe tare da Kwarewa ba zaku TA brokenA fashe fashe ba (ba za ku buƙaci tsaftace ko autoclean ko apt -f shigar gyara ba), wannan yana aiki kamar haka daga 6,5 da 7 !!

    Barka da safiya kuma don yi muku hidima (gaisuwa daga Colombia)

  6.   tashar ba a sani ba m

    Hello.
    Kuma menene umarnin shigar APT? Na lura cewa an ambace shi a cikin pdf Tutorial wanda Linux Mint ke dashi akan gidan yanar gizon ta.
    Kuma marubucin nasa ya ba da shawarar kada a yi amfani da ingantaccen atesaukakawa ta Terminal, tunda ba ta tace wane irin matakan kwanciyar hankali ne, kamar ana samunsa a cikin Updater tare da zane na zane na Mint.

  7.   Franco m

    Ko da sanin wannan, Ina amfani da sauƙin samun sau da yawa fiye da ƙwarewa. Amma na san manajan fakitin synaptic yana amfani da kwarewa a duk lokacin da ka girka wani abu a yanayin zane.

  8.   pepo m

    Shekaru da yawa yanzu, umarnin APT sun hada da apt-get da apt-cache ayyuka, don haka zamu iya yin "apt install package" da "kunshin bincike mai kyau" maimakon "apt-get install package" da "apt- cache kayan bincike »bi da bi.