On Linux how to update Apptainer?
May 20, 3:30pm

To update Apptainer on Linux, follow these steps based on your installation method:


1. If Installed via Package Manager

Debian/Ubuntu (APT)

bash
sudo apt update
sudo apt upgrade apptainer

RHEL/CentOS/Fedora (DNF/YUM)

bash
sudo dnf upgrade apptainer       # For Fedora/RHEL 8+
sudo yum update apptainer        # For older CentOS/RHEL 7

openSUSE (Zypper)

bash
sudo zypper refresh
sudo zypper update apptainer

Arch Linux (Pacman)

bash
sudo pacman -Syu apptainer

2. If Installed via AppImage

Download the latest AppImage from the official releases page and replace the old binary:

bash
chmod +x apptainer-<version>-x86_64.sif
sudo mv apptainer-<version>-x86_64.sif /usr/local/bin/apptainer

3. If Built from Source

  1. Clone the latest repo (or update your local copy):
    bash
    git pull origin main
  2. Recompile and reinstall:
    bash
    ./mconfig
    make -j$(nproc)
    sudo make install

Verify the Update

bash
apptainer --version

Ensure the version matches the latest release.


Notes

  • Dependencies: If updating from a very old version, check for dependency changes.
  • Go Version: Apptainer ≥1.2.0 requires Go ≥1.19. Update Go first if needed:
    bash
    sudo apt install golang      # Debian/Ubuntu
    sudo dnf install golang      # Fedora/RHEL
May 20, 3:30pm

This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.

Vibe can make mistakes. Check answers. Learn more