Skip to content

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.

0 points3 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 100% up
Kind
Text
ID
7ucev7

Author

71
posts
190
comments
7
media
View profile

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 pull and 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 that

1 points

Thank you sloth for the explanation

1 points

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 ;)

2 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.