You are not logged in.

#1 2015-07-03 18:20:36

Fred Barclay
Member
From: /home
Registered: 2015-02-27
Posts: 123

<SOLVED>Updating a package from the AUR

Guys, I hope this is in the right place. Mods, feel free to move it as needed. smile

Is there a way to upgrade packages I installed from the AUR without manually grabbing the newer packages myself, and without using yaourt?
I've installed ttf-moscorefonts-installer (MS fonts; I know, I know, but I needed them for LibreOffice), and I'm looking at installing Google Chrome (Chromium just won't cut it for me), and I need to know if I will be responsible for manually upgrading the packages.
Everything I've read online mentioned yaourt, which I've heard is better not to use ( http://jasonwryan.com/blog/2013/04/09/helpers/ ), so I installed ttf-mscorefonts-installer via mkpkg and pacman -U. I plan on doing the same for Chrome.

Sorry for the newbie question. smile This is my second foray into Arch, and I think I'm here to stay, but sometimes it gets so confusing...
Thanks!
Fred

Last edited by Fred Barclay (2015-07-04 15:22:50)

Offline

#2 2015-07-03 18:30:46

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,808

Re: <SOLVED>Updating a package from the AUR

Personally, I use packer.   My colleagues prefer cower.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2015-07-03 18:39:21

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,414
Website

Re: <SOLVED>Updating a package from the AUR

cd ~/src/foo && git pull

Also use makepkg -i instead of makepkg + pacman -U

Last edited by Alad (2015-07-03 18:40:09)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#4 2015-07-03 18:47:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,576
Website

Re: <SOLVED>Updating a package from the AUR

Alad wrote:
cd ~/src/foo && git pull

Also use makepkg -i instead of makepkg + pacman -U

Yup.  With AUR4 this will be / is trivially easy.

But there is nothing wrong with using AUR helpers if a you really know how to handle all the AUR tasks manually - so when something goes wrong you are more capable of figuring it out and you will take reasonable steps rather than flailing about yelling 'HALP, yaourt doesn't update ...'

In all fairness, yaourt could be fine if the above condition were met.  The problem with yaourt is much less the software itself (though I certainly have some gripes there too) but the main problem is that yaourt is marketted to those who really shouldn't be using *any* aur helper.  The "just install yaourt and don't think about it" is a mind virus that needs to go away - but I'd say much the same if anyone was out preaching "just install cower and don't think about it."

Think first.  Then if/when you want a tool to help automate some of the steps, check out the options (there are lots of them listed in the wiki) and pick one that works for you.

But as predicted by ewaller, I'm fond of cower.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2015-07-03 21:58:32

Fred Barclay
Member
From: /home
Registered: 2015-02-27
Posts: 123

Re: <SOLVED>Updating a package from the AUR

Thanks, guys. smile

Trilby and ewaller, would either/both of you be interested in explaining why you like the particular AUR tool you use? I'd appreciate any input.
Fred

Offline

#6 2015-07-03 22:25:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: <SOLVED>Updating a package from the AUR

cower is favoured by a lot of the old timers because it is the simplest and least bloatedabstracted. If you want more complexity with cower, use meat.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-07-03 22:57:46

progandy
Member
Registered: 2012-05-17
Posts: 5,209

Re: <SOLVED>Updating a package from the AUR

jasonwryan wrote:

cower is favoured by a lot of the old timers because it is the simplest and least bloatedabstracted. If you want more complexity with cower, use meat.

Others simply start with their own shell scripts and add functionality they need. I am not an old timer, but I have my custom cower-like luajit script. It supports searching, aur4 git pulls (no normal downloads) and a list of updated packages sorted in dependency order (optionally with missing AUR dependencies), but nothing else. Low priority long term plans are update notifications for vcs controlled packages and aybe improved dependency sorting grouped by package base.

Last edited by progandy (2015-07-03 22:59:43)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#8 2015-07-03 23:43:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,576
Website

Re: <SOLVED>Updating a package from the AUR

I had my own little aur downloader 'helper' script for a while.  But there were a few corner cases that it'd screw up on.  I figured I'd rewrite it someday.  Then I found cower, and it's pretty much exactly what I would have written (or would have hoped I'd write) if I ever took the time to.  It's simple, small and with no dependencies that I didn't already have, and it stays out of my way and just handles the tedious parts while leaving me in control of building stuff.

But like quite a few other I actually started arch with yaourt - and I regret it.  It hindered my learning for quite a while.  Once I got rid of yaourt I had the opportunity not only to learn, but quickly come to the realization that the AUR is actually much *easier* than yaourt made it seem.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2015-07-04 04:16:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,808

Re: <SOLVED>Updating a package from the AUR

Packer works for me.  It has never hurt me, or disappointed me.  If it gets confused, it stops.  It provides the right level of obfuscation the difference between real packages and the scary stuff in the AUR without making them appear equivalent.  WTF does that mean?  I don't know.  Mind you, Linux is not a mystery for me.  When it breaks, I am fully capable of rolling up my sleeves and doing battle at a really low level to fix things when they break.  The nice thing about Linux is that things are pretty deterministic when you drag out the low level tools.

In my mind, Yaourt pretends they are the same and obfuscates the differences; then leaves you holding your d--k in your hand whilst wondering what to do after it barfs.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#10 2015-07-04 15:22:34

Fred Barclay
Member
From: /home
Registered: 2015-02-27
Posts: 123

Re: <SOLVED>Updating a package from the AUR

Thanks, everyone.
I'm now trying to decide between cower and packer. Cower has less dependencies...

Last edited by Fred Barclay (2015-07-04 16:02:14)

Offline

#11 2015-07-04 15:51:21

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: <SOLVED>Updating a package from the AUR

Fred Barclay wrote:

Thanks, everyone.
I'm now trying to decide between cower and packer. Cower has less dependencies...

You could also check out pacaur (which uses cower for AUR) if you want some of the obfuscation that ewaller was talking about.

Offline

#12 2015-07-04 16:21:08

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 501

Re: <SOLVED>Updating a package from the AUR

Trilby wrote:

In all fairness, yaourt could be fine if the above condition were met.  The problem with yaourt is much less the software itself (though I certainly have some gripes there too) but the main problem is that yaourt is marketted to those who really shouldn't be using *any* aur helper.  The "just install yaourt and don't think about it" is a mind virus that needs to go away - but I'd say much the same if anyone was out preaching "just install cower and don't think about it."

You don't know how much I appreciate someone in authority saying this. I pull from abs and adjust the PKGBUILD to my tastes. I pull from AUR/AUR4 and adjust the PKGBUILD to my tastes. But for the most part, I use yaourt and octopi. It bothers me when I see mods hollering "DON'T USE YAOURT!!!". It's refreshing to see someone say "Yaourt isn't the prefered method, but it's ok if you already know how to edit the PKGBUILD and manually build and install your apps"

Offline

#13 2015-07-04 18:06:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,808

Re: <SOLVED>Updating a package from the AUR

Buddlespit wrote:

It bothers me when I see mods hollering "DON'T USE YAOURT!!!". It's refreshing to see someone say "Yaourt isn't the prefered method, but it's ok if you already know how to edit the PKGBUILD and manually build and install your apps"

You are right.   As a moderator I can say I have a bias against it mostly because its misuse causes so many problems that wind up here as help requests.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB