[INFO] Stable branch - BIG update BEST practice

Best practice for stable update

This is a summary of observations related to updates of Manjaro Linux.

The observations are collected from almost a decade - spanning three forum instances (yes discourse has broken down on Manjaro on two occasions).

While there can never be any guarantees or promises - your system will be in a much better condition to sync the latest stable branch snap.

:one: Never lose power

  • Ensure a stable power supply
  • Never force reboot your system at any point

:two: Optional precaution

Optional

  • keep a rescue stick at hand (just in case)
  • snapshot your root file system (timeshift, just in case)
  • :information_source: Snapshot is not a replacement for proper preparation/maintenance.
  • :information_source: Snapshot does not fix inconsistencies with your custom packages (if any).

:three: :warning: AUR Housekeeping AKA custom/foreign/alien packages

Custom packages may wreck the process.

This goes for AUR and any package not in the official repositories.

Create a list of custom packages for later reference

Using Manjaro pamac
pamac list --foreign > ~/alien-pkgs.txt
Using native pacman
pacman -Qm > ~/alien-pkgs.txt

Carefully evaulate the content of the list

There are no rules for this part - you are the system administrator and as such you are required to know if there could be an issue with the application.

  • Do I really need <pkgname>
  • Do I use frequently <pkgname>
  • Is it non-intrusive e.g. google-chrome
  • Is it compiled from source e.g. megasync
  • Does it rely on system libraries e.g. mesa or vulkan

The more complicated a custom package is - the potential for problems increase.

Depending on your evaluation you may choose to ignore the package(s)

  • just remember: Man :man_facepalming: I should have …

Remove all custom packages

:information_source: Note: Any local setting will always be retained.

Using pamac
pamac remove $(pamac list --foreign --quiet)
Using native pacman
pacman -Qqm | pacman -Rns -

:four: General Housekeeping

To remove clutter and reduce the size of the update,
clean your system by removing all orphans and unneeded packages.

Using pamac
pamac remove --orphans --unneeded
Using native pacman
pacman -Qdtq | sudo pacman -Rns -
pacman -Qqd | sudo pacman -Rsu -

:five: Kernel Housekeeping

List your installed kernels

mhwd-kernel -li

If you have more than one kernel installed - consider removing the excess kernels using mhwd-kernel.

If you want to avoid the linux-meta package - used to switch from EOL to supported - ensure your currently running kernel is LTS - then remove the excess kernels and related packages.

mhwd-kernel -r <linux><version>

:six: Check

Run a simulated update - strictly not necessary - but it could give you peace of mind

Using Manjaro pamac
pamac update --dry-run
Using native pacman
sudo pacman -Syu --print

:seven: Execute

optional: update keyrings

Optional: ensure the keyrings are up-to-date; it may happen that a keys are added, removed or updated/replaced.

sudo pacman -Syy manjaro-keyring archlinux-keyring

Don’t use GUI

GUI applications may become unstable during update so run the update from command line using virtual terminal or TTY

Execute the actual update, read any messages thoroughly

Using Manjaro pamac
pamac update --no-aur
Using native pacman
sudo pacman -Syu

To get important messages view pacman log file using less and filter the entries for the date in question e.g.

grep -e '2025-12-08' /var/log/pacman.log | less

:person_lifting_weights: power users
Install the screen multiplexer. You will need a lot more than the default 100 lines in the buffer - to be on the safe side - 1000 lines perhaps more - 10000 lines

screen -h 10000

When the update is done, you can view the buffer

  • enter copy mode Ctrl+A then Esc
  • scroll with the navigation keys
  • when done Esc

– https://unix.stackexchange.com/a/714694
Remember to run the multiplexer (screen, tmux or other) first and then run the update from it, to be able to scroll.

:eight: After update

After the update - before reboot - act upon messages displayed during the update, if any.

Check your system for changes to your configuration files .pacnew, e.g by

pacdiff -o

There are two convenience packages in this regard - manjaro-pacnew-checker - a graphic notifier program, and meld - a graphic comparison app for those finding vi overwhelming.

Assuming you have meld installed, you can manually check for pacnews with

DIFFPROG=meld pacdiff -s

Note the lack of sudo here - pacdiff will ask for it itself when needed.
Pacdiff will now go through all registered pacnews in a loop (the general idea is to remove them after done merging). For every file, always hit V (View) and never M (merge)!. Meld will open. Inspect, compare, move stuff. Do not blindly overwrite or discard!! If unsure - cancel and ask here. The idea here is to merge the new format of the default settings for a program with your customizations. You decide at which file do you want to work and later discard the other - look at the window title to see where is the pacnew. After being ready, hit the save icon above the file you decided to modify and close meld. You will be asked again - depending on what you edited and saved, you can now overwrite with the pacnew (if you customized there) or delete it (if you added the new stuff to the existing config).

Note that tending the pacnews is never urgent, but it is highly recommended to do it at some point, the sooner the better. Because after some grace period from a couple of months or 1-2 years, the new sometimes incompatible config will become the default and that might actually break your system if you did not do it by then.

:nine: Restart your system

After a successful restart of your system, recheck for unneeded or orphaned packages using a simulate run - expect the result to be empty - if it is not - repeat the command without --dry-run

pamac remove --orphans --unneeded --dry-run

Then proceed to handle your custom packages

  • open the ~/alien-pkgs.txt created earlier
  • rebuild only the custom packages you really need

:ten: Related topics

19 Likes
[WARNING] System Packages And Due Diligence
[Stable Update] 2026-01-04 - Manjaro 26.0, Mesa, Firefox, LibreOffice, COSMIC
[Stable Update] 2025-12-08 - 25.1 Anh-Linh Preview
[Stable Update] 2025-12-15 - Kernels, NVIDIA, Plasma, Cosmic, Firefox
[Stable Update] 2025-12-22 - Kernels, Cinnamon, KDE Frameworks, Pacman
Whether to remove orphans/foreign packages before or after updating?
[Stable Update] 2026-05-19 - Kernels, Plasma 6, KDE Gear, KDE Frameworks, COSMIC, Vulkan
[Stable Update] 2026-05-27 - Kernels, NVIDIA, Firefox, Thunderbird, Mesa, Blender
[Stable Update] 2026-06-26 - Kernels, Systemd, PipeWire, NVIDIA, KDE, LibreOffice
RE: [INFO] Stable branch - BIG update BEST practice
RE: [INFO] Stable branch - BIG update BEST practice
RE: [INFO] Stable branch - BIG update BEST practice
RE: [INFO] Stable branch - BIG update BEST practice
[HowTo] Manjaro Linux - Maintenance - Using LTE network
Need guidance about update and problems after. (picom, polkit, replace kernel?)
Update resulted in kwin-wayland loads CPU, baloo loads ram
[Stable Update] 2026-07-11 - Kernels, COSMIC 1.2, Xorg, Firefox, Thunderbird, KDE Gear
[Stable Update] 2026-07-23 - Kernels, Mesa, VirtualBox, Gambas3, COSMIC, Plasma, KDE Frameworks
Deepin package conflicts on latest stable update
Some trouble getting external WIFI device to install for kernel 6.12
Blacklist AUR paket like libgdata
[Stable Update] 2026-08-06 - Kernels, Plasma, Mesa, COSMIC, LibreOffice
Deepin-kwin and kwin are in conflict
Can't play DVDs on VLC with newer Kernel
[Stable Update] 2026-08-23 - Kernels, KDE Framework, Firefox, Thunderbird, Qemu, Mesa, VirtualBox
[Stable Update] 2026-08-12 - Kernels, Firefox, GStreamer, Python, Deepin, Haskell, Bazaar
Minor correction to "BIG update BEST practice"
[INFO] New application K.I.S.S Up
[INFO] New application K.I.S.S Up
[Stable Update] 2026-10-28 - Plasma 6.75, GNOME 50.5, COSMIC 1.9.0
[Stable Update] 2026-09-07 - Kernels, KDE Gear, Mesa, LibreOffice, Firefox, COSMIC
[Stable Update] 2026-01-13 - Kernels, KDE Gear 25.12.1, Haskell, Mesa
[Stable Update] 2026-05-02 - Kernels, Plasma, GNOME, Mesa, Systemd, VirtualBox, LibreOffice
[Stable Update] 2026-01-13 - Kernels, KDE Gear 25.12.1, Haskell, Mesa
Manjaro update takes longer than normal
Suggestion on how to proceed with the current system update?
[Stable Update] 2026-02-01 - Kernels, COSMIC, Plasma, GNOME, Mesa
RE: [INFO] Stable branch - BIG update BEST practice
Pamac software list updating from AUR slowly grows
Many Apps broken since Dec Update
[Stable Update] 2026-02-23 - Kernels, Mesa, Wine, COSMIC, GNOME, KDE Frameworks
[Stable Update] 2026-03-23 - Kernels, Mesa, COSMIC, GNOME, Systemd, Plasma
[Stable Update] 2026-05-02 - Kernels, Plasma, GNOME, Mesa, Systemd, VirtualBox, LibreOffice

17 posts were split to a new topic: RE: [Info] STable branch - BIG update BEST practise