Jump to content

Mirrors (Magyar)

From ArchWiki
Fordítás állapota: Ez a cikk az angol Mirrors című cikk magyar nyelvre lefordított változata. Utolsó fordítás dátuma: 2025.11.07. Amennyiben a lefordítás időpontja óta az angol nyelvű cikkben történtek újabb módosítások, akkor Ön segíthet hozzászinkronizálni az angolhoz ezt a magyar nyelvű fordítást.

Ez az oldal útmutatót nyújt a tükörszerverek kiválasztásához és beállításához, valamint felsorolja a jelenleg elérhető tükörszervereket.

Hivatalos tükörszerverek

Az Arch Linux tükörszerverek hivatalos listája a pacman-mirrorlist szoftvercsomagban érhető el. A tükörszerverek még naprakészebb listájának eléréséhez használja a Pacman Mirrorlist Generator weboldalt.

Ön a tükörszerverek állapotát a Tükörszerver állapota weboldalon ellenőrizheti le. Kizárólag naprakész tükörszerverek használata az ajánlott, azaz olyanoké amelyek nem kerültek ki a szinkronizálás alól.

Amennyiben Ön azt szeretné, hogy a saját tükörszervere felkerüljön a hivatalos listára, akkor tekintse meg a DeveloperWiki:NewMirrors leírást. Addig is, adja hozzá a Nem hivatalos tükörszerverek cikkhez.

IPv6 kompatibilis tükörszerverek

A Pacman tükörszerverlista-generátorral az aktuális IPv6 tükörszerverek listája is megkereshető.

Enabling a specific mirror

To enable mirrors, edit /etc/pacman.d/mirrorlist and locate your geographic region. Uncomment mirrors you would like to use.

For example:

## Worldwide
#Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch
#Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch
Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch

See #Sorting mirrors for tools that help choosing mirrors.

Tipp Uncomment 5 favorite mirrors and place them at the top of the mirrorlist file. That way it is easy to find them and move them around if the first mirror on the list has problems. It also makes merging mirrorlist updates easier.

It is also possible to specify mirrors in /etc/pacman.conf. For the core repository, the default setup is:

[core]
Include = /etc/pacman.d/mirrorlist

To use the kernel.org mirror as a default mirror, add it before the Include line:

[core]
Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch
Include = /etc/pacman.d/mirrorlist

pacman will now try to connect to this mirror first. Proceed to do the same for core-testing, extra, and extra-testing, if applicable.

Figyelmeztetés If mirrors have been stated directly in pacman.conf, remember to use the same mirror for all repositories. Otherwise this would result in a partial upgrade as packages that are incompatible with each other may be installed, like linux from core and an older kernel module from extra.

A pacman kényszerítése, hogy frissítse a szoftvercsomaglistákat

A tükörszerverek nincsenek mindig szinkronban, és előfordulhat, hogy a régi tükörszerver szoftvercsomaglistája nem egyezik meg az új tükörszerver csomaglistájával, még akkor sem, ha a listák dátumai ezt sugallják.

Miután létrehozta vagy szerkesztette az /etc/pacman.d/mirrorlist fájlt, adja ki a következő parancsot:

# pacman -Syyu

Kettő --refresh kapcsoló, vagy kettő -y kapcsoló megadása arra kényszeríti a pacman szoftvercsomag-kezelőt, hogy frissítse az összes szoftvercsomaglistát, még akkor is, ha azok naprakésznek számítanak.

Megjegyzés A pacman -Syyu parancs kiadása a legtöbb esetben felesleges sávszélesség-pazarlás, azonban olykor megoldhat problémákat, például amikor egy hibás tükörszerverről egy működő tükörszerverre vált. Tekintse meg az Is -Syy safe? (Biztonságos-e a -Syy ?) fórumbejegyzést.
Figyelmeztetés A legtöbb esetben, amikor kényszeríti a pacman adatbázis frissítését, akkor célszerű kényszeríteni a túlságosan új szoftvercsomagok korábbi verzióra való visszaállítását is (downgrade), hogy azok megfeleljenek az új tükörszerver által kínált verzióknak. Ez megelőzi azokat a problémákat, amikor a szoftvercsomagok következetlenül frissülnek, ami részleges frissítéshez vezethet.
# pacman -Syyuu

Ez nem szükséges, amennyiben sikeresen szinkronizáló tükörszervereket használ, vagy ellenőrzi a tükörszerver lastsync fájljának időbélyegét annak biztosítására, hogy a szoftvercsomaglisták naprakészek legyenek.

Sorting mirrors

When downloading packages, pacman uses the mirrors in the order they are listed in /etc/pacman.d/mirrorlist, i.e. the order servers appear in the list sets their priority. If a package download fails (e.g. file not found, connection timeout), the next list entry is used.

It is not optimal to only rank mirrors based on speed since the fastest servers might be out-of-sync. Instead, make a list of mirrors sorted by their speed, then remove those from the list that are out of sync according to their status.

It is recommended to regularly repeat this process to keep the list of mirrors up-to-date.

List by speed

Ranking an existing mirror list

The pacman-contrib package provides a Bash script, /usr/bin/rankmirrors, which can be used to rank the mirrors according to their connection and opening speeds to take advantage of using the fastest local mirror.

Back up the existing /etc/pacman.d/mirrorlist:

# cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup

To prepare mirrorlist.backup for ranking with rankmirrors, the following actions can be carried out:

  • Edit mirrorlist.backup and uncomment the servers to be tested
  • If the servers in the file are grouped by country, one can extract all the servers of a specific country by using:
    $ awk '/^## Country Name$/{f=1; next}f==0{next}/^$/{exit}{print substr($0, 1);}' /etc/pacman.d/mirrorlist.backup
  • To uncomment every mirror, run the following sed line:
    # sed -i 's/^#Server/Server/' /etc/pacman.d/mirrorlist.backup
  • Finally, rank the mirrors, here with the operand -n 6 to only output the 6 fastest mirrors:
    # rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist

Fetching and ranking a live mirror list

In order to start with a shortlist of up-to-date mirrors based in some countries and feed it to rankmirrors one can fetch the list from the Pacman Mirrorlist Generator. The command below pulls the up-to-date mirrors in either France or the United Kingdom which support the https protocol, it uncomments the servers in the list and then ranks them and outputs the 5 fastest.

$ curl -s "https://archlinux.org/mirrorlist/?country=FR&country=GB&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 -
Tipp This procedure can be done interactively by navigating to https://archlinux.org/mirrorlist with any text-based browser, for example elinks(1).

Existing tools:

Rate Mirrors — It fetches mirrors, skips outdated/syncing mirrors, then uses info about submarine cables and internet exchanges to jump between countries and find fast mirrors. And it is fast enough to run it before each update. It also supports custom mirror lists fed via stdin.
https://github.com/westandskif/rate-mirrors || rate-mirrorsAUR

Server-side ranking

The official Pacman Mirrorlist Generator provides an easy way to obtain a ranked list of mirrors. Because all ranking is done on a single server that takes multiple factors into account, the amount of load on the mirrors and the clients is significantly lower compared to ranking on each individual client.

Client-side ranking

Other popular alternatives are:

  • ghostmirror — Unlike other mirror software, GhostMirror checks that mirrors are synchronized, performs an actual download speed test in addition to a simple ping test, automates everything via systemd, and, if properly configured, allows you to say goodbye to manual mirror management.
https://github.com/vbextreme/ghostmirror || ghostmirrorAUR
  • mirro-rs — An Arch Linux mirrorlist manager with a TUI.
https://github.com/rtkay123/mirro-rs || mirro-rs
  • rate-mirrors — Everyday-use client-side map-aware mirror ranking tool.
https://github.com/westandskif/rate-mirrors || rate-mirrorsAUR
  • Reflector — Retrieves the latest mirrorlist from the MirrorStatus page, filters and sorts them by speed and overwrites /etc/pacman.d/mirrorlist. Provides automation with a systemd service and timer.
https://xyne.dev/projects/reflector/ || reflector
  • shiny-mirrors — An alternative to reflector, written in Rust.
https://gitlab.com/Arisa_Snowbell/shiny-mirrors || shiny-mirrorsAUR

Hibaelhárítás

Missing mirrorlist

In case you encounter the following error:

error: config file /etc/pacman.d/mirrorlist could not be read: No such file or directory

Get the mirrorlist directly from the website:

# curl -o /etc/pacman.d/mirrorlist https://archlinux.org/mirrorlist/all/

Be sure to uncomment a preferred mirror as described in #Enabling a specific mirror.

Alternatively, use one of the methods for generating a mirrorlist listed under #Sorting mirrors.

Misbehaving mirrors

If you are certain a mirror is not operating properly and that is not reflected on the mirrors status page, change the mirror and consider opening a bug report. For mirrors the issue should be opened in the arch-mirrors project at the Arch Linux GitLab. You may also send a mail to mirrors@archlinux.org.

További olvasnivaló a témában