Skip to content

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!

0 points21 comments
Open on Reddit
About this post
Posted
Archived
Score
0 ยท 100% up
Kind
Text
ID
cu1z50

Author

16
posts
54
comments
1
media
View profile

21 comments

It's fine, but also, what's wrong with using an AUR helper? You basically already wrote one yourself.

12 points

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

1 points

AUR helpers don't really have to interact with pacman directly, or at all. I've never heard of one breaking with mirrorlist updates.

4 points

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.

2 points

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.

4 points

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.

2 points

Instead of using makepkg -si when I'm updating packages, couldn't I just use pacman -U? Since the package is already built

1 points

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.

1 points

Don't parse the human-readable git output, instead check whether git rev-parse HEAD shows the same commit before and after pulling.

1 points

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!!๐Ÿ˜€.

0 points
unknown author3 hidden

Deleted before we saved it.

4 points

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.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.