How to Update Manjaro Linux with Command Terminal

Manjaro Linux is a widely adopted, user-friendly Linux distribution that provides users with a clean and streamlined interface. It is important to keep your Manjaro Linux system up-to-date with the latest software updates, as it improves system stability and security and ensures that you have access to the latest features and bug fixes.

While there are various methods to update your Manjaro Linux system, this guide will specifically focus on updating your system using the command-line terminal. This method involves using the Pacman package manager, the default package manager for Manjaro Linux. Additionally, this guide will provide instructions on updating your AUR (Arch User Repository) packages using AUR helpers such as Manjaro’s Pamac and the popular alternative, Yay.

It is worth noting that there are some differences between updating with Pacman and AUR helpers:

  • Pacman is primarily used to update your system’s core packages and software, while AUR helpers are specifically designed to update AUR packages.
  • Pacman updates only packages from official Manjaro repositories, while AUR helpers update packages from the AUR.
  • Pamac is a graphical package manager with a command-line interface, while Yay is a command-line-only AUR helper.

Following this guide, you can ensure that your Manjaro Linux system is up-to-date, stable, and secure, with instructions on updating using Pacman, Pamac, and Yay and some problem-solving tips.

Step 1: Update Manjaro with Pacman

To update your Manjaro Linux system with Pacman, open the terminal and execute the following command:

sudo pacman -Syu

This command will update all the packages installed on your system to their latest versions. It is recommended to run this command regularly to ensure your system is up-to-date and running smoothly.

If you haven’t updated your Manjaro Linux system for some time, some packages may be skipped during the update process. To avoid this, it is recommended to perform a full database dump by executing the following command:

sudo pacman -Syyu

This command will download the latest version of the package database, allowing you to update all the packages on your system. This is particularly useful if you update your system after a long period.

Step 2: Update Manjaro with AUR Helpers

In addition to updating your Manjaro Linux system using Pacman, you can also update AUR packages using AUR helpers. AUR helpers simplify downloading and installing packages from the AUR (Arch User Repository). In this section, we will guide you on updating your AUR packages using two different AUR helpers: pamac and yay.

Updating AUR Packages with pamac

Pamac is a graphical package manager that also has a command-line interface. To update your AUR packages using pamac, execute the following command in the terminal:

pamac upgrade --aur

By executing the “pamac upgrade –aur” command in the terminal, all installed AUR packages on your Manjaro Linux system will be updated to their latest versions. To ensure that your AUR packages are up-to-date, it is recommended to run this command regularly. For more information on using yay commands, please refer to our guides on What is Pamac AUR Helper? Everything You Need to Know, and Pamac Commands: Essential AUR Helper Guide.

Updating AUR Packages with yay

Yay is a popular AUR helper that can be installed on Manjaro Linux. To update your AUR packages using yay, execute the following command in the terminal:

yay -Syu

The “yay -Syu” command will update your Manjaro Linux system’s package database and install any available updates for AUR packages. Yay is a highly capable tool that offers many additional features for managing AUR packages. If you want to learn more about yay commands or how to install this AUR helper, please refer to our guide on installing yay on Manjaro Linux.

Problem-Solving Updating Tips

Updating your Manjaro Linux system is generally a smooth process, but sometimes issues may arise during the update process. In this section, we will guide you on troubleshooting some of the most common issues that may arise during the update process.

If you encounter issues with GPG keys becoming invalid or corrupted, you can try the following troubleshooting steps:

sudo pacman -S archlinux-keyring manjaro-keyring
sudo pacman-key --populate archlinux manjaro

These commands will update the GPG keys used by the package manager to verify the authenticity of software packages. This is a common issue that may occur when updating your Manjaro Linux system.

If you are still experiencing problems with your Manjaro Linux system even after trying the previous troubleshooting steps, you can attempt the following steps as a last resort:

sudo rm -r /etc/pacman.d/gnupg
sudo pacman-key --init
sudo pacman-key --populate manjaro
sudo pacman-key --populate archlinux
sudo pacman -Syvv manjaro-keyring

These commands will remove the existing GPG keys, re-initialize the keyring, and re-populate the keyring with the latest keys. This should resolve any issues related to GPG keys.

Conclusion

In conclusion, updating your Manjaro Linux system is critical to maintaining system stability and security while ensuring you have access to the latest software updates. Using the command-line terminal with Pacman, Pamac, and Yay lets you keep your system up-to-date and secure. Whether you are updating your core packages with Pacman or AUR packages with AUR helpers such as Pamac or Yay, following the steps outlined in this guide will help you keep your Manjaro Linux system running smoothly.

Share to...