Difference between revisions of "Reflector (简体中文)"

From ArchWiki
Jump to: navigation, search
(use https for links to archlinux.org)
(Update translation.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Package management (简体中文)]]
 
[[Category:Package management (简体中文)]]
 
[[en:Reflector]]
 
[[en:Reflector]]
 +
[[es:Reflector]]
 +
[[fr:Reflector]]
 +
[[it:Reflector]]
 +
[[ja:Reflector]]
 
[[ko:Reflector]]
 
[[ko:Reflector]]
 
[[ru:Reflector]]
 
[[ru:Reflector]]
Line 6: Line 10:
  
 
==安装==
 
==安装==
{{pkg|reflector}} 软件包位于[[Official Repositories (简体中文)|官方软件源]],可以直接[[pacman (简体中文)|安装]]
+
[[安装]]软件包 {{pkg|reflector}}。
 
+
# pacman -S reflector
+
  
 
==使用示例==
 
==使用示例==

Latest revision as of 11:32, 10 November 2015

Reflector 是一个脚本程序,从镜像状态页面获取镜像列表,过滤出还在更新的页面并根据速度排列,然后覆盖文件/etc/pacman.d/mirrorlist

安装

安装软件包 reflector

使用示例

先备份 /etc/pacman.d/mirrorlist::

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

下面命令将过滤出 5 个镜像,按速度排列并覆盖 /etc/pacman.d/mirrorlist:

# reflector -l 5 --sort rate --save /etc/pacman.d/mirrorlist

要查看所有命令,请运行

# reflector --help
警告: 同步或者更新前请保证 mirrorlist 不包含任何奇怪的内容。

外部链接