The Essential Commands
And it came to pass, in the third week after install, that the user sat before the terminal, and the cursor blinked, and the user was afraid. For he had done much in those weeks, though naught but install Arch, and configure Arch, and update Arch.
And the Wiki appeared unto him, in a PuTTY window, in a font he had not chosen, and spake:
"Fear not. I bring thee F commands, and none other but A shalt thou need. Thou shalt not ask in the forum until thou hast read me twice."
And the user said, "And the rest?"
And the Wiki said, "B to F are reserved."
And the user said, "For whom?"
And the Wiki said, "That is under discussion."
1. arch-chroot /mnt
The Descent into the Dead. When all is broken, boot the live stick, mount the root, and enter the corpse. There thou shalt repair what thou didst break, and thou shalt feel like a surgeon, and thou shalt be one.
2. mkinitcpio -P
Thou didst edit the hooks, and the initramfs knew it not. Rebuild every preset, that the machine may remember how to remember. Otherwise it boots into the void, and the void says "rootfs not found."
3. locale-gen
Uncomment thy locale in /etc/locale.gen*, a file of a thousand lines, all commented, and thou shalt find the one that matters. Run the command. It saith "done." Thou shalt believe it.*
4. systemctl enable --now NetworkManager
Thou didst forget it in the chroot, as did thy fathers before thee. Enable it now, that the machine may know the network, and that thou mayest read the Wiki, which told thee to do this in the first place.
5. journalctl -b -p err
Behold the log of this boot, the errors only. Thou readest it as an augur readeth the liver of a goat. It saith "failed" forty times, and none of them is the one that matters.
6. pacman -Syu
Thou shalt sync, and upgrade, in the same breath. He that syncs alone commits the Partial Upgrade, and it is an abomination, and the forum shall say "Unsupported."
7. rm /var/lib/pacman/db.lck
Only when no pacman abideth. If one abideth, thou art a fool. If none abideth, the lock was a ghost, and thou hast laid it to rest.
8. pacdiff
And the package did leave behind a .pacnew*, a second Truth beside thy config. Thou shalt merge them in vimdiff, in fear. On the morrow thou shalt forget, and there shall be a hundred more.*
9. pacman -Qtdq | pacman -Rns -
Query the orphaned. Remove them, with their configs, with their memory. Ask not what the hyphen doth. It reads from the pipe. It hath always read from the pipe.
A. pacman -S arch-wiki-docs
Carry the Scripture offline, for the network shall fail precisely when thou needest it. And thou shalt open it with wiki-search*, and read, and understand, and be humbled.*
B: [RESERVED. Pending rough consensus.]
C: [RESERVED. See Talk:Essential Commands. Opened 2011. Seventeen replies, all of them "Why not use a wrapper?"]
D: [RESERVED. An AUR helper was proposed. A schism ensued. Do not speak of it.]
E: [RESERVED. Disputed between systemctl and rc-service*. A third faction did don the red hats. Splitters.]*
F: [RESERVED. For the day the Wiki is finished.]
And there were A commandments, which the heathen call ten, for they count with their fingers, which are unclean. And the Wiki said, "Thou shalt call it ann."
And the user went in unto the spouse and he spake with a loud voice, interrupting the BookTok:
"I have succeeded in executing all of the essential commands. Truly, I have mastered the Arch."
And the spouse looked up from the iPhone, in loving tolerance, and said:
"That's wonderful, dear. Why not post it on Reddit?"
And he did.
And on the morrow, the kernel upgrade came, and he was not the master.
Here endeth the chapter.