Difference between revisions of "Switching Branches"
Views
Actions
Namespaces
Variants
Tools
→Temporary Method
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 - | sudo pacman-mirrors --fasttrack --branch {branch}'' && sudo pacman -Syyu | ||
* '''pacman-mirrors - | * '''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 - | * '''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 '' | {{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.}} | ||