You are not logged in.

#1 2016-01-13 03:01:26

leonshaw
Member
Registered: 2012-01-11
Posts: 19

[SOLVED] How to install dependencies recursively from AUR?

I'm trying to install openstack clients from AUR and meet this problem.
Say, if package A depends on B, which depends on C (all are in AUR). When I use "yaourt -S A", it fails to install because pacman can't find B. Then I tried "yaourt -U A.tar.xz". It could download and build B, but again B fails to install because of the dependency on C. Can yaourt or some other helper resolve dependencies recursively from AUR?

Last edited by leonshaw (2016-01-14 01:21:52)

Offline

#2 2016-01-13 03:58:37

g2g591
Member
Registered: 2007-12-24
Posts: 54

Re: [SOLVED] How to install dependencies recursively from AUR?

may or may not be the right place for this question since yaourt is 3rd party, but anyway the answer you're looking for is probabily the -a option, so yaourt -Sa (package A). (snipped from yaourt's man page)

SYNC OPTIONS
       -a, --aur
           Also search in AUR database. With -u or --sysupgrade, upgrade aur packages that are out of date. With -Qm,
           display more info about foreign package.

Offline

#3 2016-01-13 05:47:28

leonshaw
Member
Registered: 2012-01-11
Posts: 19

Re: [SOLVED] How to install dependencies recursively from AUR?

g2g591 wrote:

may or may not be the right place for this question since yaourt is 3rd party, but anyway the answer you're looking for is probabily the -a option, so yaourt -Sa (package A). (snipped from yaourt's man page)

SYNC OPTIONS
       -a, --aur
           Also search in AUR database. With -u or --sysupgrade, upgrade aur packages that are out of date. With -Qm,
           display more info about foreign package.

Thanks. But I still got the same error with this option. It seems that yaourt is not trying to resolve dependencies but simply calls pacman to install. I'm seeking for some other approach if yaourt can't do this.

Offline

#4 2016-01-13 06:06:40

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] How to install dependencies recursively from AUR?

Try dropping the '-S'

Online

#5 2016-01-13 06:28:35

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] How to install dependencies recursively from AUR?

The time I used yaourt this command worked flawlessly on AUR for years: yaourt -Su --aur

How did you install yaourt, anyway?

Last edited by bernarcher (2016-01-13 06:29:44)


To know or not to know ...
... the questions remain forever.

Offline

#6 2016-01-13 06:40:11

severach
Member
Registered: 2015-05-23
Posts: 192

Re: [SOLVED] How to install dependencies recursively from AUR?

Yaourt has a problem with recursive dependencies and apparently is not not fixed yet. Check the long discussions in my package aws-cli In my comment "severach commented on 2015-09-16 02:21" you'll find the AUR helpers I found that properly handle recursive dependencies.

Bug reporting is slow but hopefully a few more have been fixed by now.

Check out the comments for AWS Botocore for Yaourt's incompetent handling of depends in the package functions.

I don't report bugs because the only two uses I need work perfectly.

yaourt -G
cower -u

Offline

#7 2016-01-13 06:48:53

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

Re: [SOLVED] How to install dependencies recursively from AUR?

Just use pacaur and save yourself some grief...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2016-01-14 01:20:56

leonshaw
Member
Registered: 2012-01-11
Posts: 19

Re: [SOLVED] How to install dependencies recursively from AUR?

I switched to pacaur and it works fine. It is an issue of yaourt. Thanks everyone.

Offline

Board footer

Powered by FluxBB