[HowTo] Install updates from TTY

Welcome, This is brief how-to on updating via TTY. Let’s start with why:

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.

How
The how is very simple just a few quick steps.

  1. Save and close all applications.
  2. Logout [Eg. In KDE press Ctrl+Alt+Del and then click logout]
  3. Press Ctrl+Alt+F2 and switch to TTY2. You can also try Ctrl+Alt+F3 for TTY3 if required.
  4. Login on TTY2 with your username/password
  5. Run nmtui (Ncurses based network manager GUI to connect to LAN / WiFi.)
  6. Run sudo pacman-mirrors -f 5 (Update mirror list with 5 fastest up to date mirrors)
  7. Run sudo pacman -Syyuw (First only download all packages to manage breaking change during package installation)
  8. Run sudo pacman -Syu (to install the packages you just downloaded)
  9. Done with the update, Run systemctl reboot

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.

Notes
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.

8 Likes

this is good except the only thing i do differently is i begin with downloading all packages with -Syyuw before logging out. that way i have no troubles having no network access in TTY. and after loggin in to TTY directly proceed to -Su to update them.

4 Likes