Difference between revisions of "Pacman-mirrors/zh-cn"

Created page with "====列出可用的国家和地区==== 基于默认的镜像源: pacman-mirrors --country-list"
(Created page with "=== '''重要提示''' === {{Tip|每当运行 pacman-mirrors 时,都需要你同步你的数据库,并更新你的系统。}}")
(Created page with "====列出可用的国家和地区==== 基于默认的镜像源: pacman-mirrors --country-list")
Tags: Mobile web edit Mobile edit
Line 9: Line 9:


=== 使用 ===
=== 使用 ===
为了实现大多数功能,链接到互联网是很有必要的。从 v4 版本开始,Pacman-Mirrors 将会在网络在线时进行检查。这是通过查询某些通用的网站来实现的。由于这些站点普遍可用,所以才选择了它们。
为了实现大多数的功能,链接到互联网是很有必要的。从 v4 版本开始,Pacman-Mirrors 将会在网络在线时,通过查询某些通用的网站,从而进行检查。也正是由于这些站点普遍可用,所以才选择了它们。


# wikipedia.org
# wikipedia.org
Line 37: Line 37:
For short versions have a look at the [https://gitlab.manjaro.org/applications/pacman-mirrors/tree/master/docs|man page] or the usage command
For short versions have a look at the [https://gitlab.manjaro.org/applications/pacman-mirrors/tree/master/docs|man page] or the usage command


===Commands giving information===
===命令:展示信息===


====Man page====
====说明页====
  man pacman-mirrors
  man pacman-mirrors


====Help on usage====
====使用帮助====
  pacman-mirrors --help
  pacman-mirrors --help


====Version====
====版本信息====
  pacman-mirrors --version
  pacman-mirrors --version


====Mirror status====
====镜像状态====
  pacman-mirrors --status
  pacman-mirrors --status


====List available countries====
====列出可用的国家和地区====
In default mirror pool
基于默认的镜像源:
  pacman-mirrors --country-list
  pacman-mirrors --country-list


In custom mirror pool
基于自定义镜像源:
  pacman-mirrors --country-config
  pacman-mirrors --country-config


====What branch am I on====
====所属版本分支====
  pacman-mirrors --get-branch
  pacman-mirrors --get-branch


===Commands using defaults===
===命令:使用默认镜像===


====Update mirrorlist with the fastest mirrors====
====更新镜像列表,以获得最快的镜像====
  sudo pacman-mirrors --fasttrack && sudo pacman -Syyu
  sudo pacman-mirrors --fasttrack && sudo pacman -Syyu


====Limit to 5 mirrors====
====限制为 5个 镜像====
An optional number can be supplied to limit the number of mirrors in the mirrorlist
可以提供一个具体的数量,以此限制镜像列表中的镜像数量:
  sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu
  sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu


====Mirrors for your country only====
====只选择你所在的国家或地区的镜像====
Not all countries have mirrors, if geoip returns a country not in the pool all mirrors will be used.
并不是所有的国家和地区都有镜像,根据地理位置信息(geoip)返回的国家或地区,若不在镜像池中,则将会使用全部镜像。
  sudo pacman-mirrors --geoip && sudo pacman -Syyu
  sudo pacman-mirrors --geoip && sudo pacman -Syyu


===Commands customizing the mirror pool===
===命令:自定义镜像源===


You can customize the mirror pool to your preference.
你可以根据你自己的喜好,个性化设置你的镜像源。
BUT Don't limit yourself too much as pacman-mirrors '''only''' writes up-to-date mirrors to your mirrorlist.
但是!请勿过度限制你自己,因为 pacman-mirrors '''仅会''' 将最新的(up-to-date)镜像写入到你的镜像列表中。


====Customize mirror pool by continent====
====Customize mirror pool by continent====
Line 108: Line 108:
  sudo pacman-mirrors --country all --api --protocols all --set-branch stable && sudo pacman -Syyu
  sudo pacman-mirrors --country all --api --protocols all --set-branch stable && sudo pacman -Syyu


==Overview==
==简介==


=== Available arguments ===
=== Available arguments ===
354

edits