How to adapt my update script to update this OS?

When I used Manjaro I made a whole script that updates the whole os and the software, but it seems that here, commands for updates are different, what should I change in my script to match this os ?

The pacman-mirrors --fasttrack is a Manjaro specific command and won’t work here.

I don’t think you would need those two first commands unless you are experiencing an issue with your mirrors which might need refreshing.

On EnOS, you could use yay which updates packages both form the official repos and the AUR.

Or just sudo pacman -Syu for packages from the official repos.

If you ever need to refresh your mirrors, you could look into rate-mirrors command line tool.

4 Likes

For most normal cases, you don’t need to rerank your mirrors prior to updating. I rate my mirrors about twice per year.

That being said, if you want to, you can do so. A script like this would work:

# Update mirrors
rate-mirrors arch --max-delay 7200 | sudo tee /etc/pacman.d/mirrorlist

# Update system
yay

Make sure you install rate-mirrors with sudo pacman -S rate-mirrors before running the script for the first time.

6 Likes

Shouldn’t it be yay -Syyu here, since the mirrorlist changed?

I have never found a situation on my personal machines that required -Syyu except on Manjaro. The only situation that I can think of that would require this is if you switched to a mirror that is more out-of-date than your last sync. Since I don’t update many times per day and I only allow recently synced mirrors to be added to the list, this is probably why this hasn’t happened to me.

Even if that happened, it shouldn’t do anything bad. You would just get 404’s and the update/install wouldn’t proceed.

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.