Noon question on building programs from Got..
Grr meant to say Git on the title.. Auto correct :/.
High level... If I do this...
If I make a bash function which just do something like:
git clone x
cd x
makepkg -sri
If the program is updated... Does running pacman -S syu. Update the package I grabbed? If not what's the proper way to get it updated?!
Thanks in advanced.
Edited 31 Jan 2018. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 0 · 100% up
- Kind
- Text
- ID
- 7ucev7
3 comments
A simple follow-up question would answer yours - How would the package manager, i.e. pacman, know what and from where exactly to update the package? It just can't: it has its own repository list with all the packages it knows about and that's basically it. You have to go to the folder and do a
git pulland then repeat the previous steps to install the updated version. Actually, that's the recommended way of installing and keeping up-to-date AUR packages but that can become quite messy and time-consuming, especially when you have dozens of them. In fact, that is the reason AUR helpers were created in the first place - to simplify maintaining of AUR packages. I would still recommend doing the maintenance of the packages by hand if you have only a few of them, otherwise, pick one that you like and use thatThank you sloth for the explanation
To add to these aur helpers: many people here seem to recommend yaourt (probably because it's preinstalled on Antergos and Manjaro), which, if you look at that table, is deemed quite unsafe. There then was a big countermovement to the yaourt guys, which recommended using pacaur (which is more safe as it gives you better control over AUR install files), which, unfortunately, doesn't get maintained anymore from its dev. Now everyone seems to have jumped to trizen, which is the new hype.
So if you're a lazy guy when it comes to AUR and just want all your packages installed, but still want to be on a more or less safe side, I can recommend trizen ;)