Skip to content
The Chat Archive
gemma-3-27b-it· Google LMArena Human Preference 140K

One command to do mirrors list upgrade (most up-to-date mirrors first), and then…

  1. User

    One command to do mirrors list upgrade (most up-to-date mirrors first), and then full-upgrade both normal repo and aur in manjaro. remember there is no reflector package/command in manjaro repo. Also tell me if I can make my manjaro a bit more cutting edge like pure arch.

  2. Assistant

    Okay, here's a combined command to update your mirror list and then perform a full system upgrade (including AUR) on Manjaro, along with a discussion of making Manjaro more like Arch. I'll break it down into sections for clarity.

    1. Mirror List Update (Prioritized)

    Since Manjaro doesn't include reflector, we'll use pacman-mirrors and a bit of scripting to get a prioritized list. This script sorts mirrors by synchronization time, putting the most up-to-date ones first.

    sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu
    

    Explanation:

    • sudo pacman-mirrors --fasttrack 5: This command ranks the 5 fastest mirrors and updates your mirrorlist. --fasttrack is generally preferred as it's quicker than a full rank.
    • sudo pacman -Syyu: This forces a refresh of the package databases (-Syy) and then performs a full system upgrade (-u). The double y is important after changing mirrors to ensure you get the latest package lists.

    2. AUR Upgrade (Using yay or paru)

    You'll need an AUR helper. yay and paru are popular choices. I'll assume you have one installed (if not, install yay with sudo pacman -S --needed base-devel git && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si). I'll use yay in the example, but replace it with paru if you prefer.

    sudo yay -Syu --aur --devel
    

    Explanation:

    • sudo yay -Syu: This is the core AUR upgrade command.
    • --aur: This flag tells yay to also upgrade packages from the AUR.
    • --devel: This flag tells yay to also upgrade development packages from the AUR.

    Combined Command (One-Liner):

    sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu && sudo yay -Syu --aur --devel
    

    Important Considerations:

    • Run this command as a single unit. The order is important. Update mirrors before upgrading packages.
    • Read the output carefully. Both pacman and yay will show you what packages are being upgraded, and will ask for confirmation. Pay attention to any conflicts or warnings.
    • Backups: Before any major system upgrade, it's highly recommended to have a recent backup of your important data. Timeshift is a good option for system snapshots in Manjaro.

    Making Manjaro More Like Arch (Cutting Edge)

    Yes, you can make Manjaro behave more like a rolling-release Arch Linux system, but it comes with trade-offs. Here's how, and the risks involved:

    • Switching to the testing Branch: Manjaro has different branches (stable, testing, unstable). stable is the most conservative, with packages held back for a period of testing. testing is closer to Arch, and unstable is essentially Arch. This is the biggest change you can make.

      sudo pacman-mirrors --set-branch testing
      sudo pacman -Syyu
      sudo yay -Syu --aur --devel
      

      WARNING: The testing and especially unstable branches can introduce instability. Packages may break, and you may need to troubleshoot issues more frequently. Be prepared to fix things yourself.

    • Using the Arch User Repository (AUR) Extensively: You're already doing this with yay, but relying heavily on the AUR means you're using packages that are community-maintained and may not have the same level of quality control as official packages.

    • Avoiding Manjaro-Specific Tools (Optional): Manjaro has some tools like the Manjaro Settings Manager that provide a graphical interface for certain tasks. You could choose to use Arch-style command-line tools instead, but this is mostly a matter of preference.

    • Kernel: You can install and use the Arch kernel if you wish, but this is generally not recommended unless you have a specific reason.

    Risks of a More Arch-Like Manjaro:

    • Instability: The biggest risk. You'll encounter more bugs and broken packages.
    • More Maintenance: You'll need to be more proactive in troubleshooting and fixing issues.
    • Loss of Manjaro's Benefits: Manjaro provides a more user-friendly experience and some extra tools that Arch doesn't have. You'll be giving those up.
    • Potential for System Breakage: A bad update or a conflicting package can render your system unbootable.

    Recommendation:

    If you're new to Linux or Manjaro, I strongly recommend sticking with the stable branch. If you're an experienced user and are comfortable with troubleshooting, you can experiment with the testing branch, but be prepared for potential issues. Avoid unstable unless you really know what you're doing.

    Before making any branch changes, always have a backup! Timeshift is your friend.

    Let me know if you have any other questions.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.