r/cachyos • u/Agent_479 • 21m ago
Question How to update everything using cachy-update?
Okay so generally I run cachy-update on a weekly basis. I generally do not pay attention to whats being updated (do read the arch news of it's available).
Today I opened Antigravity CLI for some work and noticed that it was not updated. I had installed antigravity CLI using the curl command available on their website.
I thought it automatically got updated via cachy-update? I had to run agy update to update it.
So my 1st question is - how to make sure that cachy-update actually updates everything?
I asked AI for a solution and it suggested me to add a source in full_upgrade.sh file present in /usr/share/arch-update/lib
# Update Antigravity CLI
main_msg "Antigravity CLI update"
# Ensure the default Antigravity CLI binary location is available
export PATH="${HOME}/.local/bin:${PATH}"
if command -v agy > /dev/null 2>&1; then
info_msg "Checking for Antigravity CLI updates..."
if agy update; then
info_msg "Antigravity CLI update completed"
else
warning_msg "Antigravity CLI update failed"
fi
else
warning_msg "Antigravity CLI (agy) not found. Skipping update."
fiI know for a fact that if I modify anything in /usr it will get overridden on a next update.
My 2nd question is - is it possible to implement this such that the above code runs after every cachy-update and doesn't gets overridden after an update?
And my last question is - how to find other things which are being left un-updated by cachy-update?
I know about topgrade (I used it on my fedora) but I want to explore inbuilt solutions. I am fairly new to code side of linux and I am trying to understand what a code do - that's why I don't want to use a readymade solution like topgrade.

