Apt- * los sis Aptitude, qhov twg siv?

Apt (Axam Packaging Tua) yog siv rau kev txhim kho thiab rho tawm pob khoom hauv GNU / LinuxCov. Cov peb siv Debian thiab derivatives, peb siv nws ib txwm ua, txawm tias peb tseem tuaj yeem siv Kev Ntsuas Siab.

Koj puas paub qhov txawv ntawm ob yog li cas? Kuv kuj tsis paub lawv ib yam, yog li kuv pib ua kev tshawb nrhiav thiab ua qee qhov kev sim. Ntawm no kuv qhia koj qhov txiaj ntsig.

Kev Ntsuas Siab.

Luag hais tias Kev Ntsuas Siab yog qhov kev hloov kho tshiab ntawm Apt thiab tswj cov pob dependencies zoo dua thiab muaj kev pom zoo txawm tias Debian. Kev Ntsuas Siab suav nrog ntau ntau txoj kev xaiv dua Apt, Cia peb pom cov feem ntau siv thiab lawv cov lus piav qhia raws li kev pab ntawm kev txhim kho.

nruab : Nruab ib lossis ntau lub pob khoom. Cov pob khoom yuav tsum tshwm sim tom qab "teeb ​​tsa" cov lus txib.
tshem tawm, ntxuav tawm, tuav, tshem tawm, khaws cia, rov nruab : Cov lus txib no ua tau zoo ib yam li "nruab", tab sis qhov xwm txheej no hu ua kev cuam tshuam yuav cuam tshuam tag nrho cov pob ntawm cov kab hais kom ua tsis cuam tshuam nws.
update : Hloov kho cov npe ntawm cov pob muaj los ntawm cov ntaub ntawv apt (sib npaug rau "apt-tau hloov tshiab").
muaj kev nyab xeeb-txhim kho : Hloov kho cov pob khoom rau lawv cov kho tshiab. Cov pob khoom txhim kho yuav raug muab tshem tawm tshwj tsis yog tias lawv tsis siv.
tag nrho-txawj tej yam ntxiv : Hloov kho cov pob khoom rau lawv cov kho tshiab, txhim kho lossis tshem tawm cov pob khoom yog tias tsim nyog. Qhov kev hais kom ua no tsis zoo li muaj kev nyab xeeb-txhim kho, thiab yog li muaj ntau dua los ua qhov tsis xav ua. Txawm li cas los xij, nws muaj peev xwm los hloov kho cov pob khoom uas muaj kev nyab xeeb-txhim kho tsis tuaj yeem hloov kho. Rau cov laj thawj keeb kwm, qhov kev txib thaum xub thawj hu ua dist-upgrade, thiab aptitude tseem paub txog dist-upgrade ua cov lus siv rau kev ua kom tiav.
nrhiav : Nrhiav cov pob khoom uas phim ib qho ntawm cov qauv nkag ntawm kab ntawm cov kab.
qhia tau tias : Qhia cov ncauj lus kom ntxaws ntsig txog rau ib lossis ntau cov pob, teev tseg raws li “kev tshawb nrhiav” cov lus txib.

Txhawm rau kom pom cov ntaub ntawv ntau ntxiv hais txog qhov tsim nyog thiab nws cov kev xaiv, peb tuaj yeem siv ib txoj hauv kev zoo tshaj plaws los nrhiav kev pab, tso hauv lub console:

$ tus txiv neej kev rau siab

Apt

Hauv Apt, nws yog siv los ntawm cov lus txib: apt-cache, apt-tau, apt.conf, apt_preferences, apt-ruaj ntseg, thawj 2 yog siv ntau tshaj plaws. Cov kev xaiv muaj yog hauv qab no:

update : hloov tshiab yog siv los synchronize pob ntawv txheeb los ntawm lawv cov chaw.
Txawj tej yam ntxiv : hloov kho yog siv rau nruab qhov tshiab tshaj plaws ntawm tag nrho cov pob tau teeb tsa ntawm lub system los ntawm ib qho ntawm cov peev txheej teev hauv /etc/apt/sources.list.
dist-txawj tej yam ntxiv : Ntxiv rau kev ua tiav cov kev ua tau zoo, nws ntse ntsaws kev ua haujlwm ntawm kev hloov pauv vim ntawm cov pob tshiab. apt-tau muaj "kev txawj ntse" kev daws teeb meem, thiab yog tias tsim nyog nws yuav sim hloov kho cov pob khoom tseem ceeb tshaj plaws ntawm cov nqi uas tsis tseem ceeb.
nruab : Nruab lossis kho dua tej pob khoom uas ua raws li lo lus "install".
tshem tawm : Nws coj tus cwj pwm zoo ib yam li nruab nrog qhov sib txawv uas nws tshem tawm cov pob khoom es tsis txhob txhim kho lawv. Nco ntsoov tias thaum tshem lub pob, nws cov ntaub ntawv teeb tsa tseem nyob ntawm lub system. Yog tias cov paib ntxiv ua ntej lub npe pob (tsis muaj qhov chaw dawb ntawm ob), lub pob hauv nqe lus nug yuav raug ntsia kom tsis txhob tshem tawm.
ntxuav tawm : Nws zoo tib yam rau kev tshem tawm, nrog qhov sib txawv tias cov pob yuav raug tshem tawm thiab lim (cov ntaub ntawv tsim tawm yuav tseem yuav raug tshem tawm).

Txhawm rau kom pom cov ntaub ntawv ntau ntxiv hais txog qhov tsim nyog thiab nws cov kev xaiv, peb tuaj yeem siv ib txoj hauv kev zoo tshaj plaws los nrhiav kev pab, tso hauv lub console:

$ man apt-get.

Dab tsi yog qhov txawv?

Hauv kev muaj tiag nws tag nrho yog nyob ntawm kev siv uas txhua tus neeg muab nws thiab yam uas lawv yuav tsum tau ua. Hauv tshwj xeeb kuv ib txwm siv aptitude, vim nws muaj ntau ntau txoj kev xaiv, tab sis yog tias kuv yuav tsum tshawb nrhiav, apt-cache tau nthuav dav rau kuv. Ntxiv thiab, aptitude muaj console interface:

Kuv tau nyeem hauv qee qhov chaw uas muaj peev xwm nws kuj nruab ib qho kev xav hais kom ua, thiab qhov ntawd apt-tau cia li nruab qhov sawv daws pom zoo. Txawm li cas los xij, yog tias peb sim rau nruab Audacious piv txwv, peb yuav pom tias nws nruab tib lub pob.

Cia peb pom thaum txhim kho audacious nrog muaj peev xwm:

sudo aptitude nruab audacious
Cov pob TSHIAB tshiab hauv qab no yuav raug ntsia:
  audacious audacious-plugins {a} libaudclient2 {a} libaudcore1 {a} libbinio1ldbl {a} libcue1 {a} libfluidsynth1 {a} 
  libmcs1 {a} libmowgli2 {a} libreid-builder0c2a {a} libsidplay2 {a} unzip {a} 
0 cov pob khoom hloov tshiab, 12 cov tshiab hloov lawm, 0 tshem tawm thiab 0 tsis hloov kho. Kuv yuav tsum rub tawm 3494 kB ntawm cov ntaub ntawv. Tom qab tsis tsim, 11,0 MB yuav siv.

thiab tam sim no nrog apt-tau:

sudo apt-tau nruab audacious
Nyeem cov npe pob khoom ... Ua tiav Tsim cov ntoo raws kev nyeem cov ntaub ntawv xwm txheej ... Ua tiav Cov pob ntxiv hauv qab no yuav raug ntsia:
  lub suab dab neeg
  libsidplay2 unzip
Pom zoo pob:
  libmcs-backend-gconf libmcs-utils zip
Cov pob TSHIAB tshiab hauv qab no yuav raug ntsia:
  audacious audacious-plugins libaudclient2 libaudcore1 libbinio1ldbl libcue1 libfluidsynth1 libmcs1 libmowgli2
  libreid-tus tsim tsa0c2a libsidplay2 unzip
0 hloov tshiab, 12 yuav raug ntsia, 0 kom tshem tawm, thiab 0 tsis hloov kho. Kuv yuav tsum rub tawm 3494 kB ntawm cov ntaub ntawv. 11,0 MB ntawm qhov chaw disk ntxiv yuav siv tom qab ua haujlwm no.

Txhawm rau pom lwm qhov txawv peb tuaj yeem ua cov tshawb fawb. Piv txwv li, qhib lub davhlau ya nyob twg thiab hom:

kev tshawb nrhiav ipod

thiab ces

apt-cache nrhiav ipod

Raws li koj tuaj yeem txaus siab tshawb fawb nrog apt-cache nws yog qhov zoo siab tshaj plaws. Xws li ntawm muaj peev xwm, nws tsuas yog tshawb los ntawm pob npe, txawm li cas los, apt-cache Koj tshawb rau txhua qhov program lossis pob uas cuam tshuam nrog lo lus ipod, tej zaum los ntawm kev piav qhia ntawm txhua pob.

SIB THAM

Siv qhov uas zoo tshaj rau koj. Nws yooj yim rau kuv siv muaj peev xwm vim tias nws yog ib qho kev hais kom ua, txawm li cas los xij nrog chav tsev Kuv yuav tsum tau siv apt-tau o apt-cache raws li hais. Yog tias koj paub txog lwm yam kev sib txawv, tso lawv hauv cov lus 😀


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

12 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   Yo -Yog said

    Kuv ib txwm ua ncaj ncees rau aptitude 😉

    1.    elav <° Linux said

      Peb twb yog 2 😀

  2.   mcdr 3 said

    Ploj lawm "aptitude purge packagename" kom tshem tawm pob + dependencies + pob nqis (qib hauv paus)

    Zoo heev nkag thiab pab zoo siab rau ntawm blog 😛

    regards

    1.    mcdr 3 said

      Kuv twb pom nws lol ... thov txim rau qhov muab cov "aptitude purge" tshaj plaws XD

      1.    KZKG ^ Gaara said

        Tsis muaj dab tsi, tsis txhob txhawj xeeb ^ - ^
        Ua tsaug rau koj cov lus, vim tias qhov tswv yim kuv paub meej mas yog pab 😉
        Kev txais tos thiab nres tsheb ntawm no 🙂

      2.    elav <° Linux said

        Tsis muaj teeb meem li cas .. Tsaug rau xav pab .. 😀

  3.   Yexus Ballesteros said

    Thaum kuv siv Debian Kuv tseem xav tau qhov tsim nyog, nws ua rau kuv muaj kev ntseeg siab ntxiv :). Tab sis kuv tseem pom zoo nrog koj tias apt-tau zoo dua thaum nws los tshawb nrhiav. Kuv tsis paub yog tias muaj aptitude yuav muaj ib hnub siv qee yam zoo sib xws ntawm apt-cache lossis tej zaum yav tom ntej lawv yuav rho tawm apt-tau thiab tawm aptitude thiab apt-cache: P ...

  4.   Lub Xya Hli said

    Txog rau tam sim no kuv tau siv APT-GET, Kuv yuav pom zoo APTITUDE pom ...

  5.   Jose Luis Mantilla said

    Tau kawg nws muaj qhov txawv heev !!

    Apt: koj nruab lub pob nrog cov tsev qiv ntawv xav tau

    Aptitude: nws txhim kho qhov yuav tsum tau ua, xav kom sawv daws thiab ua ntej txhim kho nws paub tseeb tias nws tsis ua kev puas tsuaj rau lwm pob ntawv uas faib qiv ntawm lwm cov qauv, ua ntej txhim kho nws daws cov kev tsis sib haum xeeb ntawm kev siv uas txawm tias khiav tib lub chaw nres nkoj lossis uas muaj qee yam tsis raug hauv lawv cov kev teeb tsa thiab koj Nug li cas koj xav daws nws nrog lawv cov lus pom zoo thiab piav qhia thiab thaum kawg nrog Aptitude koj yuav TSIS TXHOB muaj cov pob tawg (koj yuav tsis xav tau qhov huv lossis autoclean lossis apt -f nruab txhawm rau kho nws), qhov no ua haujlwm zoo li no txij li 6,5 thiab 7 !!

    Nyob zoo sawv ntxov thiab ua hauj lwm rau koj (Kev txais tos los ntawm Colombia)

  6.   channel tsis paub said

    Nyob zoo.
    Thiab APT nruab qhov hais kom ua yog dab tsi? Kuv pom tias nws tau hais hauv pdf Qhia ua Linux Mint muaj nyob ntawm nws lub vev xaib.
    Thiab nws cov kws sau ntawv pom zoo tsis ua Apt-tau nce qib ntawm Cov Hloov Kho Tshiab los ntawm Cov Chaw Nres Nkag, vim nws tsis lim hom kev nyob ruaj khov uas lawv muaj, xws li yog tias nws muaj nyob hauv Updater nrog Mint's graphical interface.

  7.   Franc said

    Txawm paub txog qhov no los, Kuv siv apt-tau txais ntau dua li qhov aptitude. Tab sis kuv paub lub synaptic pob tus nai siv siv aptitude txhua zaus koj nruab ib yam dab tsi hauv cov qauv graphical.

  8.   pepo ua said

    Tau ntau xyoo tam sim no, APT cov lus txib suav nrog lub apt-tau thiab apt-cache muaj nuj nqi, yog li peb tuaj yeem ua "apt install package" thiab "apt search package" hloov ntawm "apt-tau nruab pob" thiab "apt- cache nrhiav pob »feem.