← 返回命令列表

Linux command

pacman-mirrors 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Example

sudo pacman-mirrors --fasttrack

Example

pacman-mirrors --status

Example

pacman-mirrors --get-branch

Switch

sudo pacman-mirrors --api --set-branch stable

Example

sudo pacman-mirrors --geoip

说明

pacman-mirrors generates and manages the pacman mirrorlist for Manjaro Linux. It tests mirror speeds, selects the fastest mirrors, and can switch between stable, testing, and unstable branches.

参数

-f, --fasttrack _number_
Generate mirrorlist with the fastest mirrors
--status
Display the status of current mirrors
-g, --geoip
Use geolocation to select mirrors from your country
--get-branch
Display the current branch
--api
Use the API for branch switching
--set-branch _branch_
Set the branch (stable, testing, unstable)
-c, --country _country_
Limit mirrors to specific countries
-l, --list
List available countries

FAQ

What is the pacman-mirrors command used for?

pacman-mirrors generates and manages the pacman mirrorlist for Manjaro Linux. It tests mirror speeds, selects the fastest mirrors, and can switch between stable, testing, and unstable branches.

How do I run a basic pacman-mirrors example?

Run `sudo pacman-mirrors --fasttrack` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f, --fasttrack _number_ do in pacman-mirrors?

Generate mirrorlist with the fastest mirrors