One command to do mirrors list upgrade (most up-to-date mirrors first), and then…
- 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.
- 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 usepacman-mirrorsand 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 -SyyuExplanation:
sudo pacman-mirrors --fasttrack 5: This command ranks the 5 fastest mirrors and updates your mirrorlist.--fasttrackis 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 doubleyis important after changing mirrors to ensure you get the latest package lists.
2. AUR Upgrade (Using
yayorparu)You'll need an AUR helper.
yayandparuare popular choices. I'll assume you have one installed (if not, installyaywithsudo pacman -S --needed base-devel git && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si). I'll useyayin the example, but replace it withparuif you prefer.sudo yay -Syu --aur --develExplanation:
sudo yay -Syu: This is the core AUR upgrade command.--aur: This flag tellsyayto also upgrade packages from the AUR.--devel: This flag tellsyayto also upgrade development packages from the AUR.
Combined Command (One-Liner):
sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu && sudo yay -Syu --aur --develImportant Considerations:
- Run this command as a single unit. The order is important. Update mirrors before upgrading packages.
- Read the output carefully. Both
pacmanandyaywill 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
testingBranch: Manjaro has different branches (stable,testing,unstable).stableis the most conservative, with packages held back for a period of testing.testingis closer to Arch, andunstableis essentially Arch. This is the biggest change you can make.sudo pacman-mirrors --set-branch testing sudo pacman -Syyu sudo yay -Syu --aur --develWARNING: The
testingand especiallyunstablebranches 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
stablebranch. If you're an experienced user and are comfortable with troubleshooting, you can experiment with thetestingbranch, but be prepared for potential issues. Avoidunstableunless 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.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.