Manjaro Difference between revisions of "Switching Branches/zh-cn"

Difference between revisions of "Switching Branches/zh-cn"

From Manjaro
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
{{重要|Manjaro 从“测试分支”或“不稳定分支”下载和安装的特定软件包本质上未经过全面测试,可能不稳定.
{{重要|Manjaro 从“测试分支”或“不稳定分支”下载和安装的特定软件包本质上未经过全面测试,可能不稳定.


Please refer to [[System Maintenance]] Section for important maintenance information.}}
请参阅 [[系统维护]] 部分了解重要的维护信息。}}
One of the many features that sets Manjaro apart from other Arch-based distributions is that it uses its own dedicated software branches, rather than relying on those provided by Arch itself. In fact, to ensure continued stability and reliability, Manjaro actually uses three distinct branches:
Manjaro 与其他基于 Arch 的发行版不同的众多功能之一是它使用自己的专用软件分支,而不是依赖于 Arch 本身提供的那些。事实上,为了确保持续的稳定性和可靠性,Manjaro实际上使用了三个不同的分支:
* '''Stable branch''': The packages that come to stable have gone through roughly a couple of weeks testing by the users of the ''Unstable/Testing'' repos, before they get the packages. These packages are usually free of any problems.
*“稳定分支“:稳定的软件包在获得包裹之前,大约经过了“不稳定/测试”存储库的用户进行了几周的测试。这些软件包通常没有任何问题。
* '''Testing branch''': This is the second line of defense. Being a larger number of users than those using ''Unstable'', they refine the work done prior to them by providing feedback on the packages they recieve on updates.
*”测试分支“:这是第二道防线。作为比使用“不稳定”的用户更多的用户,他们通过提供有关他们收到的更新包的反馈来改进之前完成的工作。
* '''Unstable branch''': Unstable is synced several times a day with Arch package releases. Only a subset of Arch packages are modified to suit Manjaro. Those that use ''Unstable'' need to have the skills to get themselves out of trouble when they move their system to this branch. They are the Manjaro users who are most likely to need to use such skills. Due to the feedback from the users of the ''Unstable'' repo, many issues are caught and fixed at this level. Although the very latest software will be located here, <u>using the ''unstable branch'' is usually safe but - in rare cases - may cause issues with your system!</u>
*“不稳定分支”:不稳定分支每天与 Arch 软件包版本同步数次。只有一部分 Arch 软件包被修改以适应 Manjaro。那些使用不稳定分支的用户在将系统移至此分支时,需要具备使自己摆脱困境的技能。他们是最有可能需要使用这些技能的Manjaro用户。由于使用不稳定分支仓库的用户的反馈,许多问题在这个级别被捕获和修复。虽然最新的软件将位于此处,<u>但是使用“不稳定分支”通常是安全的,但在极少数情况下可能会导致您的系统出现问题!</u>


'''Summing up''', Manjaro packages start their lives in the ''unstable'' branch. Once they are a deemed stable, they are moved to the ''testing'' branch, where more tests will be realized to ensure the package is ready to be submitted to the ''stable'' branch.
“总而言之”,Manjaro包在“不稳定”分支中开始它们的生命。 一旦它们被认为是稳定的,它们就会被移动到“测试”分支,在那里将实现更多测试以确保包准备好提交到“稳定”分支。


{{BoxSecondary|Note on unstable branch|'''Remember''': Manjaro specific packages such as kernels, kernel modules and Manjaro applications enter the repo on ''unstable'' branch and it is those packages which are considered unstable when they enter.
{{BoxSecondary|关于不稳定分支的注意事项|“请记住”:Manjaro 特定的包,如内核、内核模块和 Manjaro 应用程序进入“不稳定”分支中的仓库,是因为它们被认为是不稳定的包才进入的。
<p>Unmodifed packages synced from Arch repo are considered stable as they have already been vetted by Archlinux Community.</p>}}
<p>从Arch存储库同步的未修改包被认为是稳定的,因为它们已经过Archlinux社区的审查。</p>}}


== Changing to another branch ==
== 切换到另一个分支 ==
{{BoxSuccess|Have you considered?|Why not become an active part of the Manjaro community by becoming a tester?}}
{{BoxSuccess|你考虑过吗?|为什么不通过成为一名测试员来积极参与 Manjaro 社区?}}
In order to access a branch, you need to change your pacman-mirrors configuration.
为了访问一个分支,你需要改变你的 pacman-mirrors 配置。


You should substitute the <font color="green">value colored in green</font> (for illustrative purposes only) to one of the following: '''stable''', '''testing''' or '''unstable'''.
你应该替换下面<font color="green">被标记为绿色的部分</font>(仅用于说明目的)为以下参数: "stable","testing"或者"unstable"。
  sudo pacman-mirrors --api --set-branch <font color="green">{branch}</font>
  sudo pacman-mirrors --api --set-branch <font color="green">{branch}</font>


After you changed the branch, rebuild the mirrorlist and update your packages:
<div class="mw-translate-fuzzy">
sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu
更改分支后,重建镜像列表并更新您的包:
sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu
</div>


== Questions ==
== 问题 ==
=== How do I go back after changing to one of the testing branches? ===
=== 更改到其中一个测试分支后如何返回? ===
Going back to the stable branch is easy. All you have to do is to repeat the above, and use ''stable'' as the branch value.
回到稳定的分支很容易。 您所要做的就是重复上述操作,并使用"stable"作为分支值。
 
请注意切换到更稳定的分支后,您将收到来自pacman的消息,通知您安装的软件包比软件仓库中可用的更新。不要惊慌,因为当软件包到达您当前的分支时,情况会自行解决。
 
<div class="mw-translate-fuzzy">
如果出于某种原因您希望在更改分支时也“降级”软件包,请在 pacman 命令中添加一个额外的“u”:
sudo pacman -Syyuu
</div>
 
<div class="mw-translate-fuzzy">
=== 我怎么知道自己在哪个分支? ===
pacman-mirrors -G
</div>


'''Be aware''' that after switching to a more stable branch you will receive messages from pacman, informing about newer packages installed than available in the repo. Don't be alarmed as the situation will resolve itself when the packages reaches your current branch.


If for whatever reason you ''do'' wish to also 'downgrade' packages while changing branches add an extra ''u'' to the pacman command:
sudo pacman -Syyuu
[[Category:Contents Page{{#translation:}}]]
[[Category:Contents Page{{#translation:}}]]

Latest revision as of 17:46, 7 January 2023

Other languages:
English • ‎русский • ‎فارسی • ‎中文(中国大陆)‎

概述

Template:重要 Manjaro 与其他基于 Arch 的发行版不同的众多功能之一是它使用自己的专用软件分支,而不是依赖于 Arch 本身提供的那些。事实上,为了确保持续的稳定性和可靠性,Manjaro实际上使用了三个不同的分支:

  • “稳定分支“:稳定的软件包在获得包裹之前,大约经过了“不稳定/测试”存储库的用户进行了几周的测试。这些软件包通常没有任何问题。
  • ”测试分支“:这是第二道防线。作为比使用“不稳定”的用户更多的用户,他们通过提供有关他们收到的更新包的反馈来改进之前完成的工作。
  • “不稳定分支”:不稳定分支每天与 Arch 软件包版本同步数次。只有一部分 Arch 软件包被修改以适应 Manjaro。那些使用不稳定分支的用户在将系统移至此分支时,需要具备使自己摆脱困境的技能。他们是最有可能需要使用这些技能的Manjaro用户。由于使用不稳定分支仓库的用户的反馈,许多问题在这个级别被捕获和修复。虽然最新的软件将位于此处,但是使用“不稳定分支”通常是安全的,但在极少数情况下可能会导致您的系统出现问题!

“总而言之”,Manjaro包在“不稳定”分支中开始它们的生命。 一旦它们被认为是稳定的,它们就会被移动到“测试”分支,在那里将实现更多测试以确保包准备好提交到“稳定”分支。


关于不稳定分支的注意事项
“请记住”:Manjaro 特定的包,如内核、内核模块和 Manjaro 应用程序进入“不稳定”分支中的仓库,是因为它们被认为是不稳定的包才进入的。

从Arch存储库同步的未修改包被认为是稳定的,因为它们已经过Archlinux社区的审查。

切换到另一个分支

你考虑过吗?
为什么不通过成为一名测试员来积极参与 Manjaro 社区?

为了访问一个分支,你需要改变你的 pacman-mirrors 配置。

你应该替换下面被标记为绿色的部分(仅用于说明目的)为以下参数: "stable","testing"或者"unstable"。

sudo pacman-mirrors --api --set-branch {branch}

更改分支后,重建镜像列表并更新您的包: sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu

问题

更改到其中一个测试分支后如何返回?

回到稳定的分支很容易。 您所要做的就是重复上述操作,并使用"stable"作为分支值。

请注意切换到更稳定的分支后,您将收到来自pacman的消息,通知您安装的软件包比软件仓库中可用的更新。不要惊慌,因为当软件包到达您当前的分支时,情况会自行解决。

如果出于某种原因您希望在更改分支时也“降级”软件包,请在 pacman 命令中添加一个额外的“u”: sudo pacman -Syyuu

我怎么知道自己在哪个分支?

pacman-mirrors -G
Cookies help us deliver our services. By using our services, you agree to our use of cookies.