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

Updating to match new version of source page
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 23: Line 23:
该应用程序由具有超级用户权限的普通用户从控制台运行,当没有给出参数时,它将显示pacman-mirrors的版本,然后是当前列在镜像列表中的镜像的状态。
该应用程序由具有超级用户权限的普通用户从控制台运行,当没有给出参数时,它将显示pacman-mirrors的版本,然后是当前列在镜像列表中的镜像的状态。


  $ sudo pacman-mirrors
  <div class="mw-translate-fuzzy">
$ sudo pacman-mirrors
</div>


应用程序究竟如何生成镜像列表,可以通过在命令行上提供参数来添加。
应用程序究竟如何生成镜像列表,可以通过在命令行上提供参数来添加。
Line 47: Line 49:
===命令:展示信息===
===命令:展示信息===


<div class="mw-translate-fuzzy">
====说明页====
====说明页====
  man pacman-mirrors
  man pacman-mirrors
</div>


<div class="mw-translate-fuzzy">
====使用帮助====
====使用帮助====
  pacman-mirrors --help
  pacman-mirrors --help
</div>


<div class="mw-translate-fuzzy">
====版本信息====
====版本信息====
  pacman-mirrors --version
  pacman-mirrors --version
</div>


<div class="mw-translate-fuzzy">
====镜像状态====
====镜像状态====
  pacman-mirrors --status
  pacman-mirrors --status
</div>


<div class="mw-translate-fuzzy">
====列出可用的国家和地区====
====列出可用的国家和地区====
基于默认的镜像源:
基于默认的镜像源:
  pacman-mirrors --country-list
  pacman-mirrors --country-list
</div>


<div class="mw-translate-fuzzy">
基于自定义镜像源:
基于自定义镜像源:
  pacman-mirrors --country-config
  pacman-mirrors --country-config
</div>


<div class="mw-translate-fuzzy">
====所属版本分支====
====所属版本分支====
  pacman-mirrors --get-branch
  pacman-mirrors --get-branch
</div>


===命令:使用默认镜像===
===命令:使用默认镜像===
Line 2,050: Line 2,066:


  <div lang="en" dir="ltr" class="mw-content-ltr">
  <div lang="en" dir="ltr" class="mw-content-ltr">
$ sudo pacman-mirrors --country Germany,France,Austria && sudo pacman -Syu
{{UserCmd|command=sudo pacman-mirrors --country Germany,France,Austria && sudo pacman -Syu}}
</div>
</div>


Line 2,058: Line 2,074:


  <div lang="en" dir="ltr" class="mw-content-ltr">
  <div lang="en" dir="ltr" class="mw-content-ltr">
$ sudo pacman-mirrors --country Antarctica && sudo pacman -Syu
{{UserCmd|command=sudo pacman-mirrors --country Antarctica && sudo pacman -Syu}}
  .: Info Downloading mirrors from repo.manjaro.org
  .: Info Downloading mirrors from repo.manjaro.org
  .: Warning Option '-c/--country' : unknown country: 'Antarctica'
  .: Warning Option '-c/--country' : unknown country: 'Antarctica'
Line 2,097: Line 2,113:
<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
'''First option''' is using ''--interactive''. It uses your current mirror pool(whether default or custom)
'''First option''' is using ''--interactive''. It uses your current mirror pool(whether default or custom)
$ sudo pacman-mirrors --interactive && sudo pacman -Syu
{{UserCmd|command=sudo pacman-mirrors --interactive && sudo pacman -Syu}}
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
'''Second option''' is using ''--interactive --default''. This force the use of the official mirror pool
'''Second option''' is using ''--interactive --default''. This force the use of the official mirror pool
$ sudo pacman-mirrors --interactive --default && sudo pacman -Syu
{{UserCmd|command=sudo pacman-mirrors --interactive --default && sudo pacman -Syu}}
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
'''Third option''' is supplying a list of countries with ''--country''. The countries is an example - check the country list if in doubt.
'''Third option''' is supplying a list of countries with ''--country''. The countries is an example - check the country list if in doubt.
$ sudo pacman-mirrors --country Germany,France,Austria && sudo pacman -Syu
{{UserCmd|command=sudo pacman-mirrors --country Germany,France,Austria && sudo pacman -Syu}}
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
'''Fourth option''' is ''--continent''. The countries used is determined by the continent they are assigned to and can optionally be combined with '''--interactive'''.
'''Fourth option''' is ''--continent''. The countries used is determined by the continent they are assigned to and can optionally be combined with '''--interactive'''.
$ sudo pacman-mirrors --continent [--interactive]
{{UserCmd|command=sudo pacman-mirrors --continent [--interactive]}}
</div>
</div>


Line 2,134: Line 2,150:


  <div lang="en" dir="ltr" class="mw-content-ltr">
  <div lang="en" dir="ltr" class="mw-content-ltr">
$ sudo pacman-mirrors --country all && sudo pacman -Syu
{{UserCmd|command=sudo pacman-mirrors --country all && sudo pacman -Syu}}
</div>
</div>


Line 2,142: Line 2,158:


  <div lang="en" dir="ltr" class="mw-content-ltr">
  <div lang="en" dir="ltr" class="mw-content-ltr">
$ sudo pacman-mirrors --interactive --default && sudo pacman -Syu
{{UserCmd|command=sudo pacman-mirrors --interactive --default && sudo pacman -Syu}}
* You will be presented with a list with all and every mirror and you can pick your selection.
* You will be presented with a list with all and every mirror and you can pick your selection.
</div>
</div>
Line 2,149: Line 2,165:
'''Third option''' is to supply a list of countries and use those for a custom mirror pool.
'''Third option''' is to supply a list of countries and use those for a custom mirror pool.
The countries is an example - check the country list if in doubt.
The countries is an example - check the country list if in doubt.
  $ sudo pacman-mirrors --country Germany,France,Austria && sudo pacman -Syu
{{UserCmd|command=sudo pacman-mirrors --country Germany,France,Austria && sudo pacman -Syu}}
* If you supply the same preferred countries on every reset you will get your mirror pool updated with added or removed mirrors.
* If you supply the same preferred countries on every reset you will get your mirror pool updated with added or removed mirrors.
</div>
</div>
Line 2,159: Line 2,175:
<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
=== Apply pacman-mirrors defaults ===
=== Apply pacman-mirrors defaults ===
sudo pacman-mirrors --country all --api --protocol all -set-branch stable && sudo pacman -Syu
{{UserCmd|command=sudo pacman-mirrors --country all --api --protocol all -set-branch stable && sudo pacman -Syu}}
</div>
</div>


8,560

edits