Difference between revisions of "Switching Branches"

imported>Fhdk
imported>Fhdk
Line 21: Line 21:
Changing the selected branch is fairly simple. We make use of the '''pacman-mirrors''' command to update the selected branch.
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:
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 -f -b ''<branch>'' && sudo pacman -Syyu
  sudo pacman-mirrors --fasttrack --branch {branch}'' && sudo pacman -Syyu


* '''pacman-mirrors -f''' will generate a new mirrorlist, sorting the available servers according to their access time.
* '''pacman-mirrors --fasttrack''' will generate a new mirrorlist, sorting the available servers according to their access time.
** '''-b ''<branch>''''' tells ''pacman-mirrors'' to use the specified branch. Valid values are: ''stable'', ''testing'', ''unstable''
** '''--branch {branch}''''' tells ''pacman-mirrors'' to use the specified branch. Valid values are: ''stable'', ''testing'', ''unstable''
* '''pacman -S''' will synchronize the local package databases with the remote package databases.
* '''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.
** '''-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.
** '''-u''' performs an upgrade to the installed packages.




{{Note|You '''must''' replace ''<branch>'' with one of the following options: ''stable'', ''testing'', ''unstable''}}
{{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.}}
{{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.}}


Anonymous user