Welcome, This is brief how-to on updating via TTY. Let’s start with why:
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 Pacman is up to.
The how is very simple just a few quick steps.
- 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
nmtui(Ncurses based network manager GUI to connect to LAN / WiFi.)
sudo pacman-mirrors -f 5(Update mirror list with 5 fastest up to date mirrors)
sudo pacman -Syyuw(First only download all packages to manage breaking change during package installation)
sudo pacman -Syu(to install the packages you just downloaded)
- Done with the update, Run
If you have any issues related to keyrings or signatures run the commands below, but if you update regularly this shouldn’t happen.
sudo pacman -Sy archlinux-keyring manjaro-keyring sudo pacman-key --populate archlinux manjaro sudo pacman-key --refresh-keys
The commands above first install the keyring packages, then tell pacman-key to update it’s database with the new files and refresh the whole database. It can take a min.
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, it would be safer to do that but I find using this process to create good update hygiene is more than enough.
Don’t forget, nothing will get you out of trouble like a good backup.