How do I update my PKGBUILD without re-cloning?

0
17
Asked By CuriousCat123 On

I've figured out how to clone and build packages, but I'm a bit lost on how to update them. Since I can't just run '-Syu', do I need to re-clone the PKGBUILD each time I want to update? If that's the case, is there an automated way to handle this? I'm genuinely hoping for some clear guidance here, so thank you in advance!

2 Answers

Answered By HelpfulHarry77 On

Instead of re-cloning the PKGBUILD, you can simply `git pull` to get the latest changes and then run `makepkg` again. For automation, that's what AUR helpers are designed for. If you use one, configure it to show diffs when PKGBUILDs are updated by adding `"diffmenu": true` and `"answerdiff": "All"` to your yay configuration file.

Answered By TechWizard42 On

Yes, re-cloning is the traditional way. However, consider using AUR helpers like `yay` or `paru`, which allow you to update AUR packages similar to using `pacman` for official ones. They make the process easier, but it's good to read the PKGBUILD carefully to ensure everything's safe. I personally use `yay` and always check the diff between my installed version and any new updates to stay safe.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.