Gadzira yako yemunharaunda Arch Linux repository

chinyorwa

Kana iwe uri chikamu chevashandisi vanowanzo kuve neinternet yakanaka yekubatanidza uye kugadzirisa patsva kubva kumatura e Arch LinuxIchi chinyorwa hachisi chako, asi cheavo vane zvavasingakwanise maererano nebandwidth.

Semuenzaniso ndakaisa nyaya yangu. Iyo yeInternet yekubatanidza panguva yekushanda maawa inononoka kupfuura husiku (kana munhu wese akarara) hongu. Zvandinoita kuenda kuEl Palacio Central de Computing, uko kune nani bandwidth uye akati wandei marevhuru akagadziridzwa, uye ini ndinoteedzera girazi raArch.

Nenzira iyi, ini ndinongofanirwa kugadzirisa mapakeji ari kuuya zvishoma nezvishoma usiku, zviri nani pane kudonhedza 45GB zvese kamwechete. asi zvirokwazvo, ndinogadziridza sei?

Zvakanaka, zviriko nzira mbiri dziri nyore kuzviita, zvese zvakatumirwa paWiki de Arch Linux.

Uchishandisa Rsync

Kana isu tine dura re rsync, tinogona kugadzira chinyorwa chedu chinosanganisira kana kusabatanidza mamwe mapakeji kana uchiteedzera girazi re Arch Linux. Kana iwe uchida kuti zvive nyore, iwe unofanirwa kungoshandisa iyi script:

#! / bin / bash ############################ ################################## . ### Imwe yedzimwe nzira inogona kuzadzikisa zvaunoda. ### RANGARIRA: ### * Bandwidth haina mahara kumirazi. Ivo vanofanirwa kubhadhara kune rese data ravanokushandira # # # = => Izvi zvichiri kushanda kunyangwe iwe uchibhadhara yako ISP ### => Kune akawanda mapakeji achazotorwa pasi ausingazomboshandisa # # # = => Mirror vashandisi vano unosarudza iwe kurodha pasi chete mapakeji aunoda ### * Chaizvoizvo ndokumbira utarise dzimwe nzira dziri papeji rino: ### https://wiki.archlinux.org/index.php?title=Local_Mirror ### ZVINONYANYA KUTI girazi remuno ndiyo mhinduro chete inonzwisisika, zvino iyi ### script inokuendesa munzira yako yekuigadzira. ################################## ############################## # # Kugadziriswa SOURCE = 'rsync: //mirror.example.com/archlinux' DEST = '/ imba / mushandisi / archlinux' BW_LIMIT = '500' REPOS = 'core extra' RSYNC_OPTS = "- rtlHq --delete-after - delay-updates --copy-link --safe-link --max-delete = 1000 --bwlimit = $ {BW_LIMIT} - bvisa -isara --exclude =. * --log-file = / home / user / archlinux / archlinux .log "LCK_FLE = '/ var / run / repo-sync.lck' # Ita shuwa chete 1 muenzaniso inomhanya kana [-e" $ LCK_FLE "]; ipapo OTHER_PID = `/ bin / kati $ LCK_FLE` echo" Mumwe muenzaniso watove kumhanya: $ OTHER_PID "buda 1 fi echo $$>" $ LCK_FLE "ye REPO mu $ REPOS; ita echo "Kubvumirana $ REPO" / usr / bin / rsync $ RSYNC_OPTS $ {SOURCE} / $ {REPO} $ {DEST} zvaitwa # Kuchenesa / bin / rm -f "$ LCK_FLE" kubuda 0

Pano chinhu chega chatinofanira kugadzirisa ndiwo akasiyana:

SOURCE = 'rsync: //mirror.example.com/archlinux' DEST = '/ imba / mushandisi / archlinux'

Zvakanaka, isu tinofanirwa kuisa kubva kune girazi ratinoda kubatanidza uye mune iro faira richa teedzerwa.

Uchishandisa LFTP

Kana tisingakwanise kushandisa rsync, kungave nekuti iyo HP yeMutongi weIP yedu yakavharika, kana nechimwe chikonzero, panogara paine sarudzo yechipiri, mune ino kesi ftp.

Pane iyo Arch Wiki isu tine chinyorwa ichi:

#! / usr / bin / lftp -f lcd / yemuno / nzira / kune / yako / girazi yakavhurwa ftp.archlinux.org (kana chero girazi raunofarira riri) # Shandisa 'cd' kuti uchinje kuita dhairekitori rakakodzera pagirazi, Kana zvakakodzera. girazi -cve -x '. * i686. *' musimboti & girazi -cve -x '. * i686. *' yekuwedzera & girazi -cve -x '. * i686. *' nharaunda & girazi -cve -x '. * *686. * 'multilib & lcd dziva cd dziva girazi -cve -x'. * i686. * 'nharaunda & girazi -cve -x'. * i686. * 'mapakeji &

Kunyangwe kunyanya pandinoshandisa LFTP, ndine imwe musiyano. Zvandinoita kuisa zvinotevera mu .txt faira:

lftp -e "girazi -delete - chete-nyowani / archlinux / yakawedzera / os / x86_64 / / imba / mushandisi / archlinux / yakawedzera / os / x86_64 /" http://mirror.us.leaseweb.net/ lftp - e "girazi -delete - chete-nyowani / archlinux / nharaunda / os / x86_64 / / imba / mushandisi / archlinux / nharaunda / os / x86_64 /" http://mirror.us.leaseweb.net/ lftp -e " mirror --delete --only-newer / archlinux / multilib-staging / os / x86_64 / / home / user / archlinux / multilib-staging / os / x86_64 / "http://mirror.us.leaseweb.net/ lftp - e "girazi -delete --ga-nyowani / archlinux / musimboti / os / x86_64 / / imba / mushandisi / archlinux / musimboti / os / x86_64 /" http://mirror.us.leaseweb.net/ lftp -e " mirror --delete --only-newer / archlinux / extra / os / i686 / / home / user / archlinux / extra / os / i686 / "http://mirror.us.leaseweb.net/ lftp -e" mirror - -delete - chete-nyowani / archlinux / nharaunda / os / i686 / / imba / mushandisi / archlinux / nharaunda / os / i686 / "http://mirror.us.leaseweb.net/ lftp -e" mirror --delete --only-nyowani / archlinux / multilib-staging / os / i686 / / imba / mushandisi / archlinux / multilib-staging / os / i686 / "http: // mirro r.us.leaseweb.net/ lftp -e "mirror --delete --only-newer / archlinux / core / os / i686 / / home / user / archlinux / core / os / i686 /" http: // mirror. us.leaseweb.net/

Uye ini ndinomhanya:

lftp -f /ruta/archivo.txt

Uye aya ndiwo maratidziro andinoita emunharaunda zvinyorwa zvangu


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa. Raida minda anozivikanwa ne *

*

*

  1. Inotarisira iyo data: Miguel Ángel Gatón
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   curefox akadaro

    Inonyanya kubatsira uye inoshanda.

  2.   Cocolium akadaro

    Chokwadi chakanakisa, ndagara ndichinetseka kuti basa iri rakaitwa sei asi ini handina kumbobvira ndadonhedza kuti ndione kuti rakaitwa sei, ndinovimba uye iwe unoburitsa nzira yekunongedza repository yekuvandudza kune iyo loca disk, ndatenda.

    1.    Julio Cesar akadaro

      pacman.conf

      [arch]
      Siglevel = Package Inodikanwa
      Server = faira: /// mnt / repo / arch

    2.    ichit akadaro

      Uff, ndaiziva kuti ndaive nechimwe chinhu chasara.

  3.   Carlos akadaro

    Imwe nguva yapfuura ndakanzwawo kudiwa kwekuita izvi nekuti ini ndaifanirwa kudzoreredza yangu yese Archlinux system uye ini ndanga ndisingade kurodha pasi gnome yese nemaapplication zvakare sezvo ini ndisingakwanise kubatana. Handizive kana uchigona kusiya imwe saiti pano asi kana paine munhu anofarira http://www.kr105.shekalug.org/2011/10/16/crear-un-repositorio-local-en-archlinux/ 🙂

  4.   kungo-mumwe-dl-mushandisi akadaro

    Mangani GB ndiyo yese ArchLinux repository?

    1.    ldd akadaro

      chimwe chinhu cheiyo 40GB, chandinoda kuziva isu tinogona kungoteedzera mapakeji eiyo 64bits uye kurasa i686

  5.   waAzazeri akadaro

    Arch… (kugomera) Rimwe zuva kana ndiine yangu komputa ndichaedza kuiisa.

  6.   eliotime3000 akadaro

    Ini ndinoshuva dai paive neLTS vhezheni yeArch, uye shandisa iyo AUR senge backport.

    1.    vakasununguka akadaro

      Zvakanaka, ini handizive ... pamwe mupuraneti rema apes zvinokwanisika

      1.    eliotime3000 akadaro

        Sezvo ini ndaona kuti hakuna, saka ini ndinozozvipira kuita zvakanakisa zveSlackware uye kudzidza zvakawanda nezve OpenBSD.

    2.    kudzayi akadaro

      Haha izvo zvingave zvakapesana zvakakwana nezvinomirirwa naArch.

  7.   likewho akadaro

    Mune yangu kesi, kazhinji, ini ndinogara ndichiwana pasuru yandinotsvaga, kungave kuri repo repamutemo, kana muAUR, kunyangwe kana zvisiri, repo yangu yemunhu haimbokundikani ini.

    Elav anoita kunge akabata iyo Arch + versionitis hutachiona 😛

    1.    likewho akadaro

      Wow, saka iyo Steam browser inoshandisa WebKit 😮
      * Kutamba Portal kubva kuArch yangu *

  8.   xino93 akadaro

    elav sezvo ivo vari kutumira arto de arch iwe unogona here kugadzira positi yekusiya KDE zvakanaka, netariro uye kunze kunze kweAUR mapakeji ...

    1.    ichit akadaro

      Kugadzira KDE yakanaka haudi AURs, ingo kde-look.org uye devianart.com kuti uwane madingindira akanaka ePlasma, Aurorae, QtCurve, Icons… zvichingodaro. Zvisinei, ini ndinonyora pasi muToDo yangu.

  9.   Tito akadaro

    Mhoro. Ndanga ndichishanyira iyi blog kwemwedzi, uye aya ndiwo mazwi angu ekutanga.

    ZveDebian uye zvinyorwa zvakaita seUbuntu, nezvimwe, pane pasuru: debmirror. Paunenge waiswa, iwe unofanirwa kuimisa ichiratidza izvo zvekuchengetedza, zvivakwa, nezvimwewo zvaunoda kuwiriranisa. Debmirror ndeye perl script inoshandisa rsync.

    Makore apfuura ini ndaive purofesa wekomputa yesainzi module, umo, pakati pezvimwe zvinhu, ndaitofanira kudzidzisa maitiro ekushandisa sisitimu inoshanda. Yangu Debian sarudzo. Isu taishandisa netinst CD. Sezvo mapakeji ese aifanira kuburitswa pamudzidzi wega wega, paive nemakumi maviri acho, uye neinternet yekubatanidza yaive yakaipa, izvo zvaive zvisiri kufamba zvakanaka. Pakutanga ndaishandisa proxy, asi haina kuvandudza zvakanyanya. Saka ndakafunga kumisikidza dura diki uko ini ndakaisa matura andaishandisa. Neiyi nzira kuiswa kwacho kwakafamba mushe, kunyangwe misoro ye20 Mbit / s, yakapihwa netiweki. Vadzidzi vaifanirwa kuratidza kuti zvinyorwa zvaive pane server yekirasi uye vakaiwana neFTP. Iwo maDebian Lenny repositori aingori pamusoro pe100 GB muhukuru uye akaaenzanisa kaviri pavhiki, Muvhuro neChina pa20: 2 AM.

    Mufaro,

  10.   Leo akadaro

    Akanaka kwazvo gwara. Ichokwadi kuti pakutanga Arch inoita kunge yakaomesesa asi nekuda kwekutungamira seizvi hapana chinogoneka

  11.   cat_sk8 akadaro

    gracias

  12.   Jordi akadaro

    Mhoro .. dambudziko rangu irowo internet inomhanyisa .. asi ini ndinoshandisa ubuntu .. ndingaitewo here asi zvehunhu?
    gracias

  13.   bosito7 akadaro

    Ndatenda Elav, tiri kupisawo ne rsync pano, ndatenda nekutiratidza imwe nzira, salu2 kubva kuSantiago