AUR Update Question
So I have tried looking on the wiki and online for ways to update aur packages. They all say to use an aur helper.
I do not want to use a helper.
The way I update right now (using a script, I also have all my aur packages in a folder). The script changes into the directory (where the .git resides) then performs a git pull. Then changes up a directory and repeats for all of the folders.
I then read the output and if one package had changes (from the git pull) I will then go into the folder and run makepkg -si (and then it updates with pacman -u)
Anyways, is this a good way to do this? Or is this totally wrong and im an idiot and im gonna break my system?
Thank you for the input!
About this post
- Posted
- Archived
- Score
- 0 ยท 100% up
- Kind
- Text
- ID
- cu1z50
21 comments
Sounds like you wrote an aur helper...
It's fine, but also, what's wrong with using an AUR helper? You basically already wrote one yourself.
Oh lol... Did not know that, I have heard a lot of problems with them (like if pacman updates, or a mirror list updates) and Ive been using arch for about 6 months now and DO NOT want to break anything. So I figured I would try to automate it myself with a script
AUR helpers don't really have to interact with pacman directly, or at all. I've never heard of one breaking with mirrorlist updates.
Any problem that third part AUR helpers will have yours will also have - except you can more quickly fix your own problems but also there are more eyes on the popular third party ones to spot and fix potential problems.
Most of them just use pacman and makepkg under the hood so are not likely to break your system any more than just using pacman and makepkg manually.
What are you are doing is writing an aur helper. Use one written by a Trusted Developer - aurutils. It's all in bash and makes installing/managing aur packages cake.
I've used yay -Syu for ages without issues of any kind.
You can just
yay, the-Syuis default. :)I don't use AUR helpers, either. Periodically, I run "pacman -Qm" to get a list of all foreign packages on my system, which almost always came from the AUR. Then, I check the ones I really care about to see if there are later versions in the AUR.
Instead of using makepkg -si when I'm updating packages, couldn't I just use pacman -U? Since the package is already built
makepkg -icallspacman -Uwith the newly built package. It'll skip building if it's already built too.Awesome, thank you!
makepkgwill callpacmanfor you.Try this, it works like a charm.
https://github.com/r-darwish/topgrade
Here is my small script to check for updates.
https://gitlab.com/snippets/1888469
I don't use AUR helpers because in some packages I have to make some edits to PKGBUILD. Also I update manually after reviewing the changes as AUR is supposed to be user generated and not blindly trusted.
Don't parse the human-readable git output, instead check whether
git rev-parse HEADshows the same commit before and after pulling.Use' yay 'tool. U can read the proper documentation about its installation and usage on Arch wiki. It's a very simple process. Have a look at it https://computingforgeeks.com/yay-best-aur-helper-for-arch-linux-manjaro/ You can use yay -Syu itself for system upgrade instead of Pacman -Syu . Yay ensures that along with the regular system update the AUR packages will also be upgraded accordingly. One shot 2 birds!!๐.
Deleted before we saved it.
Then how r u planning to keep the track of your installed AUR packages (i.e which AUR pacakges got an update and which r not along with their dependncies if any )? Only way is u have to write u r own script, which will keep track of installed AUR packages and whenever the new updates are released it has to find those along with dependent packages and should start updating them.
Which is already implemented in the form of AUR helper(ex:yay).my point is why to invent the wheel again? If u r interested u can fix bugs in those AUR helpers or try to improve them.