Difficulty: ★★☆☆☆
Why would I update using the console?
There are several reasons you may wish to update using TTY and not the regular GUI process. The most common are when you update kernels, graphics drivers, or other apps the could hinder your current GUI session. It can also be handy when a problematic update lands as has happened once or twice in the past. By problematic I mean required user intervention before reboot. This method creates a clean easy update environment that allows for a full view of what pamac
is up to.
How do I update using the console/TTY?
- Save and close all applications.
- Logout [Eg. In KDE press Ctrl+Alt+Del and then click logout]
- Press Ctrl+Alt+F2 and switch to TTY2. You can also try Ctrl+Alt+F3 for TTY3 if required.
- Login on TTY2 with your username/password
- Run
nmtui
(Ncurses based network manager GUI to connect to LAN / WiFi.) - Run
sudo pacman-mirrors -f 5
(Update mirror list with 5 fastest up to date mirrors) - Run
sudo pacman -Syyuw
(First only download all packages to manage breaking change during package installation) - Run
sudo pacman -Syu
(to install the packages you just downloaded) - Done with the update, Run
systemctl reboot
- If you have any issues related to keyrings or signatures, run the commands below ¹:
sudo pacman -Sy archlinux-keyring manjaro-keyring #installs keyring packages sudo pacman-key --populate archlinux manjaro #updates keyring database with new files sudo pacman-key --refresh-keys #Refresh all keys
Note 1: If you update regularly keyring errors shouldn’t happen.
Note 2: It has previously been raised that it would be beneficial to boot into multi-user mode along with logging out, but that can cause issues with networking access and others things. Although it would be safer to do that, this author’s opinion is that using the process above contains sufficient update hygiene.
Note 3: Don’t forget, nothing will get you out of trouble like a good backup.