mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-02-03 23:40:14 +08:00
translate done: 20190303 Manage Your Mirrors with ArchLinux Mirrorlist Manager.md
This commit is contained in:
parent
2b71e6c31c
commit
8004ac841b
@ -1,94 +0,0 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (lujun9972)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (Manage Your Mirrors with ArchLinux Mirrorlist Manager)
|
||||
[#]: via: (https://itsfoss.com/archlinux-mirrorlist-manager)
|
||||
[#]: author: (John Paul https://itsfoss.com/author/john/)
|
||||
|
||||
Manage Your Mirrors with ArchLinux Mirrorlist Manager
|
||||
======
|
||||
|
||||
**ArchLinux Mirrorlist Manager is a simple GUI program that allows you to easily manage mirrors in your Arch Linux system.**
|
||||
|
||||
For Linux users, it is important to make sure that you keep your mirror list in good shape. Today we will take a quick look at an application designed to help manage your Arch mirror list.
|
||||
|
||||
![ArchLinux Mirrorlist Manager][1]ArchLinux Mirrorlist Manager
|
||||
|
||||
### What is a Mirror?
|
||||
|
||||
For those new to the world of Linux, Linux operating systems depend on a series of servers placed around the world. These servers contain identical copies of all of the packages and software available for a particular distro. This is why they are called “mirrors”.
|
||||
|
||||
The ultimate goal is to have multiple mirrors in each country. This allows local users to quickly update their systems. However, this is not always true. Sometimes mirrors from another country can be faster.
|
||||
|
||||
### ArchLinux Mirrorlist Manager makes managing mirrors simpler in Arch Linux
|
||||
|
||||
![ArchLinux Mirrorlist Manager][2]Main Screen
|
||||
|
||||
[Managing and sorting][3] the available mirrors in Arch is not easy. It involves fairly lengthy commands. Thankfully, someone came up with a solution.
|
||||
|
||||
Last year, [Rizwan Hasan][4] created a little Python and Qt application entitled [ArchLinux Mirrorlist Manager][5]. You might recognize Rizwan’s name because it is not the first time that we featured something he created on this site. Over a year ago, I wrote about a new Arch-based distro that Rizwan created named [MagpieOS][6]. I imagine that Rizwan’s experience with MagpieOS inspired him to create this application.
|
||||
|
||||
There really isn’t much to ArchLinux Mirrorlist Manager. It allows you to rank mirrors by response speed and limit the results by number and country of origin.
|
||||
|
||||
In other words, if you are located in Germany, you can restrict your mirrors to the 3 fastest in Germany.
|
||||
|
||||
### Install ArchLinux Mirrorlist Manager
|
||||
|
||||
```
|
||||
It is only for Arch Linux users
|
||||
|
||||
Pay attention! ArchLinux Mirrorlist Manager is for Arch Linux distribution only. Don’t try to use it on other Arch-based distributions unless you make sure that the distro uses Arch mirrors. Otherwise, you might face issues that I encountered with Manjaro (explained in the section below).
|
||||
```
|
||||
|
||||
```
|
||||
Mirrorlist Manager alternative for Manjaro
|
||||
|
||||
When it comes to using something Archy, my go-to system is Manjaro. In preparation for this article, I decided to install ArchLinux Mirrorlist Manager on my Manjaro machine. It quickly sorted the available mirror and saved them to my mirror list.
|
||||
|
||||
I then proceeded to try to update my system and immediately ran into problems. When ArchLinux Mirrorlist Manager sorted the mirrors my system was using, it replaced all of my Manjaro mirrors with vanilla Arch mirrors. (Manjaro is based on Arch, but has its own mirrors because the dev team tests all package updates before pushing them to the users to ensure there are no system-breaking bugs.) Thankfully, the Manjaro forum helped me fix my mistake.
|
||||
|
||||
If you are a Manjaro user, please do not make the same mistake that I did. ArchLinux Mirrorlist Manager is only for Arch and Arch-based distros that use Arch’s mirrors.
|
||||
|
||||
Luckily, there is an easy to use terminal application that Manjaro users can use to manage their mirror lists. It is called [Pacman-mirrors][7]. Just like ArchLinux Mirrorlist Manager, you can sort by response speed. Just type `sudo pacman-mirrors --fasttrack`. If you want to limit the results to the five fastest mirrors, you can type `sudo pacman-mirrors --fasttrack 5`. To restrict the results to one or more countries, type `sudo pacman-mirrors --country Germany,Spain,Austria`. You can limit the results to your country by typing `sudo pacman-mirrors --geoip`. You can visit the [Manjaro wiki][7] for more information about Pacman-mirrors.
|
||||
|
||||
After you run Pacman-mirrors, you have to synchronize your package database and update your system by typing `sudo pacman -Syyu`.
|
||||
|
||||
Note: Pacman-mirrors is for **Manjaro only**.
|
||||
```
|
||||
|
||||
ArchLinux Mirrorlist Manager is available in the [Arch User Repository][8]. More advanced Arch users can download the PKGBUILD directly from [the GitHub page][9].
|
||||
|
||||
### Final Thoughts on ArchLinux Mirrorlist Manager
|
||||
|
||||
Even though [ArchLinux Mirrorlist Manager][5] isn’t very useful for me, I’m glad it exists. It shows that Linux users are actively trying to make Linux easier to use. As I said earlier, managing a mirror list on Arch is not easy. Rizwan’s little tool will help make Arch more usable by the beginning user.
|
||||
|
||||
Have you ever used ArchLinux Mirrorlist Manager? What is your method to manage your Arch mirrors? Please let us know in the comments below.
|
||||
|
||||
If you found this article interesting, please take a minute to share it on social media, Hacker News or [Reddit][10].
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/archlinux-mirrorlist-manager
|
||||
|
||||
作者:[John Paul][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[lujun9972](https://github.com/lujun9972)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://itsfoss.com/author/john/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2019/02/mirrorlist-manager2.png?ssl=1
|
||||
[2]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2019/02/mirrorlist-manager4.jpg?ssl=1
|
||||
[3]: https://wiki.archlinux.org/index.php/Mirrors
|
||||
[4]: https://github.com/Rizwan-Hasan
|
||||
[5]: https://github.com/Rizwan-Hasan/ArchLinux-Mirrorlist-Manager
|
||||
[6]: https://itsfoss.com/magpieos/
|
||||
[7]: https://wiki.manjaro.org/index.php?title=Pacman-mirrors
|
||||
[8]: https://aur.archlinux.org/packages/mirrorlist-manager
|
||||
[9]: https://github.com/Rizwan-Hasan/MagpieOS-Packages/tree/master/ArchLinux-Mirrorlist-Manager
|
||||
[10]: http://reddit.com/r/linuxusersgroup
|
@ -0,0 +1,96 @@
|
||||
?[?#?]?:??c?o?l?l?e?c?t?o?r?:??(?l?u?j?u?n?9?9?7?2?)?
|
||||
?[?#?]?:??t?r?a?n?s?l?a?t?o?r?:??(?l?u?j?u?n?9?9?7?2?)?
|
||||
?[?#?]?:??r?e?v?i?e?w?e?r?:??(??)?
|
||||
?[?#?]?:??p?u?b?l?i?s?h?e?r?:??(??)?
|
||||
?[?#?]?:??u?r?l?:??(??)?
|
||||
?[?#?]?:??s?u?b?j?e?c?t?:??(?M?a?n?a?g?e??Y?o?u?r??M?i?r?r?o?r?s??w?i?t?h??A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?)?
|
||||
?[?#?]?:??v?i?a?:??(?h?t?t?p?s?:?/?/?i?t?s?f?o?s?s?。?c?o?m?/?a?r?c?h?l?i?n?u?x?-?m?i?r?r?o?r?l?i?s?t?-?m?a?n?a?g?e?r?)?
|
||||
?[?#?]?:??a?u?t?h?o?r?:??(?J?o?h?n??P?a?u?l??h?t?t?p?s?:?/?/?i?t?s?f?o?s?s?。?c?o?m?/?a?u?t?h?o?r?/?j?o?h?n?/?)?
|
||||
?
|
||||
使?用??A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?管?理?你?的?镜?像?
|
||||
?=?=?=?=?=?=?
|
||||
?
|
||||
?*?*?A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?时?一?个?简?单?的?图?形?化?程?序?,它?让?你?可?以?方?便?地?管?理??A?r?c?h??L?i?n?u?x?中?的?镜?像?。?*?*?
|
||||
?
|
||||
对?于??L?i?n?u?x?用?户?来?说?,?保?持?好?的?镜?像?列?表?非?常?重?要?。?今?天?我?们?来?介?绍?一?个?用?来?管?理??A?r?c?h?镜?像?列?表?的?应?用?程?序?。?
|
||||
?
|
||||
?!?[?A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?]?[?1?]?
|
||||
?A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?
|
||||
?
|
||||
?#?#?#?什?么?是?镜?像???
|
||||
?
|
||||
至?新?手?,??L?i?n?u?x?操?作?系?统?有?赖?于?分?布?全?球?的?的?一?系?列?服?务?器?。?这?些?服?务?器?包?含?了?特?定?发?行?版?的?所?有?可?用?的?软?件?包?的?相?同?副?本?。?这?就?是?为?什?么?它?们?被?称?为?“镜?像?”?。?
|
||||
?
|
||||
这?些?服?务?器?的?最?终?目?标?时?让?每?个?国?家?都?有?多?个?镜?像?。?这?样?就?能?让?当?地?的?用?户?可?以?快?速?升?级?系?统?。?然?而?,?这?并?不?绝?对?。?有?时?别?国?的?镜?像?反?而?更?快?。?
|
||||
?
|
||||
?#?#?#??A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?让?在??A?r?c?h??L?i?n?u?x?中?管?理?镜?像?更?简?单?
|
||||
?
|
||||
?!?[?A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?]?[?2?]?
|
||||
主?界?面?
|
||||
?
|
||||
在??A?r?c?h?中?[管?理?并?对?有?效?镜?像?进?行?排?序??]?[?3?]?不?是?个?简?单?的?事?情?。?它?需?要?用?到?很?长?的?命?令?。?还?好?,?有?人?想?出?了?一?个?解?决?方?案?。?
|
||||
?
|
||||
去?年?,??[?R?i?z?w?a?n??H?a?s?a?n?]?[?4?]?用??P?y?t?h?o?n?编?写?了?一?个?名?为???[?A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?]?[?5?]?的??Q?t?应?用?程?序?。?你?可?能?对??R?i?z?w?a?n?这?个?名?字?感?到?眼?熟?,因?为?这?不?是?第?一?次?我?们?在?本?站?介?绍?他?做?的?玩?意?了?。?一?年?多?前?,?我?介?绍?过?一?个?名?为??[?M?a?g?p?i?e?O?S?]?[?6?]?的?基?于??A?r?c?h?的?新??L?i?n?u?x?发?行?版?就?是??R?i?z?w?a?n?创?造?的?。?我?想??R?i?z?w?a?n?创?造??M?a?g?p?i?e?O?S?的?经?历?激?励?了?他?创?建?了?这?个?程?序?。?
|
||||
?
|
||||
?A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?的?功?能?并?不?多?。?它?让?你?根?据?回?应?速?度?对?镜?像?进?行?排?序?,并?可?以?根?据?数?量?和?国?家?进?行?过?滤?。?
|
||||
?
|
||||
也?就?是?说?,?若?你?在?德?国?,?你?可?以?限?制?只?保?留?在?位?于?德?国?的?最?快?的??3?个?镜?像?。?
|
||||
?
|
||||
?#?#?#?安?装??A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?
|
||||
?
|
||||
```
|
||||
它仅适用于 Arch Linux 用户
|
||||
|
||||
注意! ArchLinux Mirrorlist Manager 只能应用于Arch linux发行版. 不要在其他基于Arch的发行版中使用它,除非你能确定该发行版使用的是Arch镜像. 否则, 你将会遇到我在Manjaro中遇到的问题(在下面章节解释).
|
||||
```
|
||||
?
|
||||
```
|
||||
Manjaro的镜像管理器替代者
|
||||
|
||||
当使用类Arch的系统时, 我选择了Manjaro. 在开始本文之前, 我在Manjaro及其上安装了 ArchLinux Mirrorlist Manager. 它很快就对有效镜像进行了排序并保存到我的镜像列表中.
|
||||
|
||||
然后我尝试进行系统更新却立即遇到了问题. 当 ArchLinux Mirrorlist Manager 对我系统使用的镜像进行排序时, 它使用普通的Arch镜像替换了我的 Manjaro 镜像. (Manjaro 基于Arch, 但却有着自己的镜像,这是因为开发团队会在推送软件包之前对所有这些软件包进行测试以保证不会出现系统崩溃的BUG.) 还好, Manjaro 论坛帮我修复了这个错误.
|
||||
|
||||
若你是 Manjaro 用户, 请不要重蹈我的覆辙. ArchLinux Mirrorlist Manager 仅适用于Arch以及使用Arch镜像的衍生版本.
|
||||
|
||||
幸运的是, manjaro有一个简单易用的终端程序来管理镜像列表. 那就是 [Pacman-mirrors][7]. 跟 ArchLinux Mirrorlist Manager 一样, 你可以根据回应速度进行排序. 只需要运行 `sudo pacman-mirrors --fasttrack` 即可. 若你像将结果局限在最快的5个镜像, 可以运行 `sudo pacman-mirrors --fasttrack 5`. 要像将结果局限在某个或某几个国家, 运行 `sudo pacman-mirrors --country Germany,Spain,Austria`. 你可以通过运行 `sudo pacman-mirrors --geoip` 来将结果局限在自己国家. 更多关于Pacman-mirrors的信息请参见 [Manjaro wiki][7].
|
||||
|
||||
运行Pacman-mirrors后, 你还需要运行 `sudo pacman -Syyu` 来同步软件包数据库并升级系统.
|
||||
|
||||
注意: Pacman-mirrors 仅仅适用于 **Manjaro**.
|
||||
```
|
||||
?
|
||||
?A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?包?含?在??[?A?r?c?h??U?s?e?r??R?e?p?o?s?i?t?o?r?y?]?[?8?]?中?。?高?级??A?r?c?h?用?户?可?以?直?接?从??[?t?h?e??G?i?t?H?u?b??p?a?g?e?]?[?9?]?下?载??P?K?G?B?U?I?L?D??。?
|
||||
?
|
||||
?#?#?#?对??A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?的?最?后?思?考?
|
||||
?
|
||||
虽?然??[?A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?]?[?5?]?对?我?不?太?有?用?,?我?很?高?兴?有?它?的?存?在?。?这?说?明??L?i?n?u?x?用?户?正?在?努?力?让??L?i?n?u?x?更??n?加?易?于?使?用?。?正?如?我?之?前?说?过?的?,?在??A?r?c?h?中?管?理?镜?像?并?不?容?易?。??R?i?z?w?a?n?的?小?工?具?可?以?让??A?r?c?h?对?新?手?更?加?友?好?。?
|
||||
?
|
||||
你?有?用?过??A?r?c?h?L?i?n?u?x??M?i?r?r?o?r?l?i?s?t??M?a?n?a?g?e?r?吗???你?是?怎?么?管?理??A?r?c?h?镜?像?的???请?在?下?面?的?评?论?告?诉?我?。?
|
||||
?
|
||||
如?果?你?觉?的?本?文?有?趣?的?话?,?请?花?点?时?间?将?它?分?享?到?社?交?媒?体?,??H?a?c?k?e?r??N?e?w?s?或??[?R?e?d?d?i?t?]?[?1?0?]?中?去?。?
|
||||
?
|
||||
?
|
||||
?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?
|
||||
|
||||
via: https://itsfoss.com/archlinux-mirrorlist-manager
|
||||
|
||||
作者:[John Paul][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[lujun9972](https://github.com/lujun9972)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://itsfoss.com/author/john/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2019/02/mirrorlist-manager2.png?ssl=1
|
||||
[2]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2019/02/mirrorlist-manager4.jpg?ssl=1
|
||||
[3]: https://wiki.archlinux.org/index.php/Mirrors
|
||||
[4]: https://github.com/Rizwan-Hasan
|
||||
[5]: https://github.com/Rizwan-Hasan/ArchLinux-Mirrorlist-Manager
|
||||
[6]: https://itsfoss.com/magpieos/
|
||||
[7]: https://wiki.manjaro.org/index.php?title=Pacman-mirrors
|
||||
[8]: https://aur.archlinux.org/packages/mirrorlist-manager
|
||||
[9]: https://github.com/Rizwan-Hasan/MagpieOS-Packages/tree/master/ArchLinux-Mirrorlist-Manager
|
||||
[10]: http://reddit.com/r/linuxusersgroup
|
Loading…
Reference in New Issue
Block a user