[HowTo] Update an application early to the latest version

Why isn’t all software always the very latest version?

There are a couple of elements to this question.

  1. Software which has just been released by the upstream project needs time to be packaged and built, so there will always be some time before it becomes available in a packaged format. If a package has patches, then more time will be needed to check whether the patches are still needed and, if so, re-written to apply against the new version. Compiling software from its source code can take a long time.

  2. Most Manjaro packages are taken from Arch, and Arch packages also have to go through a process from being built, to their stable branch, before reaching our branches:

    :package: Packaging
    :arrow_down_small: Arch staging
    :arrow_down_small: Arch testing
    :arrow_down_small: Arch stable
    :arrow_down_small: Manjaro unstable
    :arrow_down_small: Manjaro testing
    :arrow_down_small: Manjaro stable

    Some packages can be rebuilt outside of this process, generally for security updates, but they still require time to be built. For instance Chromium will take around six hours to compile (if it succeeds on the first attempt)!

Copied and reformatted from the archived forum, by @jonathon and @c00ter.

The package is up-to-date in AUR. Why can’t i get that version?

Some AUR packages are also in Manjaro’s repositories. In such cases, the repositories will have precedence over AUR when you try to update them, thus preventing you from getting the latest version immediately.

How can i get that latest version?

There are several options available for getting a newer version of packages.

Wait for the next update

Difficulty: ☆☆☆☆☆

Obviously, the basic recommendation is still to wait for the update to come to your current branch.
You can follow the package’s version on the various branches there: Manjaro - Branch Compare

Switch to a self-contained version

Difficulty: ★★☆☆☆

Self-contained packages have several advantages in our case:

  • They are usually made by the developers themselves whenever they release a new version of their application. A new version is thus usually available earlier than in the repositories.
  • They ship with their dependencies, and thus do not rely on system-installed ones, theoretically removing the risk of incompatibility.

Those benefits are still to ponder against a few drawbacks. Please refer to the related documentation for details:

Please refer to the following guides for enabling the self-contained package manager of your choice:

Switch to an upper branch

Difficulty: ★★★☆☆

Switching to the testing or unstable branch allows you to get updates earlier.

:warning: Attention! There are several things to take into account when switching branches:

  • As updates come earlier, so do potential bugs. Since those branches serve to test the stability of packages before they reach the stable branch, they are obviously more prone to issues.
  • As partial updates aren’t any more supported on those branches than on the stable branch, it is recommended to do a full update, rather than update only the selected packages.

Please refer to the following guide for switching branches: Switching Branches - Manjaro

Switch to a development version

Difficulty: ★★★★☆

Some packages have a development version available from AUR, identifiable with the -git suffix. You can install those in place of the “standard version” package in order to have the latest development build available.

:warning: Attention! There are several things to take into account when using a development package version:

  • Development packages usually do not change version with new commit from the developers. Instead, the version for that package very often simply refer to the build process version. This means those packages are not the updated the same way.
    • When using CLI package managers, the --devel option is usually to be used in order to detect changes to the source, and thus allows to rebuild the package using the latest version.
    • In pamac, you may enable “Check for development packages updates” in the settings.
  • Development version is even more bleeding-edge than what is usually in the repositories, as they use a development state before release. You are then very dependent to the developers’ quality in coding.
    • :star: The developers would be grateful if you can then contribute, by signaling them any issue you find.
  • Likewise, using a development version usually places you way ahead of the repositories in term of dependency alignment, which can also be source of instability.

For those reasons, using development versions is not recommended, moreso for core packages, unless you are confident with your debugging skills.

Why is kernel 5.10 LTS still not available?
Can pacman update just the pertinent packages?
Manjaro Development & Release Process Documentation
Node-gyp is outdated
Provide Kernel build more often
Discord Canary is outdated
Discord update failed
How do I update to GNOME 42?
If I install a package from the AUR manually, will it be updated with an AUR helper?
Updating to Kernel 5.16
Hedgewars not able to install
How do I update to Mesa-git safely?
How to replace a "package" for its "package"-git version gently?
Use non-delayed repositories
Prusa Update to 2.4 still missing?
AUR vs. Arch Linux repos
Curl has problems with self-signed certificates since March-16
MangoHud and Wine 7.4
Cannot launch OpenShot video editor
How long until we can have inkscape 1.2?
Tailscale package out of date
When will KDE 5.25 come?
Are AUR *-git the latest packages?
Update requests for packages built by Manjaro developers
Update requests for packages imported from Arch Linux
Discord is not automatically updated
Failed to start SDDM on Boot
KVIrc needs update to fix crash on Plasma Wayland
Cant download python3.11
[HowTo] Use the AUR
[HowTo] Fix a failing AUR package build
When will plasma 5.24 available in stable
Manjaro Cinnamon with newest Cinnamon?
Why there's a discrepancy between pacman's results and arch packages?
How can i update discord?
Support Package creation
Why is Brave outdated in Manjaro repos?
Unable to update Nvidia proprietary drivers (GUI and CLI)
How to install apps on manjaro?
Any thoughts on when is openssl going to be updated?
Update requests for packages imported from Arch Linux
Wine fails to start: Application tried to create a window, but no driver could be loaded
Instalar la versión más reciente de intellij-idea-community
New package update?
Upgrade youtube-dl to v2021.12.17
1 Like
    indent preformatted text by 4 spaces

Chromium will take around six hours to compile (if it succeeds on the first attempt).
indent preformatted text by 4 spaces

Six hours to compile? You guys have way more patience then I do.

3 posts were split to a new topic: What is “stable staging”?

I modified this tutorial, switching from a Q&A to a HowTo.
Cross-read would be appreciated. :wink: