Difference between revisions of "Switching Branches"

imported>Fhdk
imported>Fhdk
Line 17: Line 17:
{{tip|Why not become and active part of the Manjaro community by becoming a tester? Just let us know of any bugs by reporting them via our '''[http://blog.manjaro.org/feedback/ feedback form]'''.}}
{{tip|Why not become and active part of the Manjaro community by becoming a tester? Just let us know of any bugs by reporting them via our '''[http://blog.manjaro.org/feedback/ feedback form]'''.}}
In order to access the testing branches, there are two methods available. The first one is a temporary solution, in which if the mirrorlist is recompiled after switching the branch, the selected branch will be reverted to ''stable''. The second one is a permanent solution, where checking for updates using the Update Manager GUI will check for updates from the selected branch.
In order to access the testing branches, there are two methods available. The first one is a temporary solution, in which if the mirrorlist is recompiled after switching the branch, the selected branch will be reverted to ''stable''. The second one is a permanent solution, where checking for updates using the Update Manager GUI will check for updates from the selected branch.
== Temporary Method ==
Changing the selected branch is fairly simple. We make use of the '''pacman-mirrors''' command to update the selected branch.
Run the following command in a terminal note that you can add a number after -f to limit the number of mirrors:
sudo pacman-mirrors --fasttrack --branch {branch}'' && sudo pacman -Syyu
* '''pacman-mirrors --fasttrack''' will generate a new mirrorlist, sorting the available servers according to their access time.
** '''--branch {branch}''''' tells ''pacman-mirrors'' to use the specified branch. Valid values are: ''stable'', ''testing'', ''unstable''
* '''pacman -Syyu'' will synchronize the local package databases with the remote package databases.
** '''-yy''' will force a refresh on the local package databases, even if they are up to date.
** '''-u''' performs an upgrade to the installed packages.
{{Note|You '''must''' replace '''{branch}''' with one of the following options: ''stable'', ''testing'', ''unstable''}}
{{Note|Rebuilding the mirrorlist after performing the method described above will revert the selected branch to ''stable''. If you want a permanent solution, check out below.}}


== Permanent Method ==
== Permanent Method ==
Anonymous user