You are not logged in.

#1 2010-05-05 01:48:38

keerthi
Member
Registered: 2007-11-18
Posts: 95

makepkg and install with proper dependencies

So I made pkg1, pkg2 and pkg3 from AUR using makepkg. pkg2 requires pkg3 and pkg1 requires pkg2 (Dependencies: pkg1 -> pkg2 -> pkg3)

How do I install these packages with proper dependencies such that when I remove pkg1 (using pacman -Rsn pkg1) both pkg2 and pkg3 get removed as well. Thanks.

Last edited by keerthi (2010-05-05 01:49:29)

Offline

#2 2010-05-05 01:49:24

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: makepkg and install with proper dependencies

pacman -U --asdep pkg3;  pacman -U --asdep pkg2;  pacman -U pkg1

Offline

#3 2010-05-05 01:52:03

keerthi
Member
Registered: 2007-11-18
Posts: 95

Re: makepkg and install with proper dependencies

Thanks Allan. That was real quick.

I did read about the --asdeps option in pacman man page. What I'm not quite sure of is how does pacman know that, when you say 'pacman -U --asdeps pkg3', pkg3 is a dependency for "pkg2"?

Offline

#4 2010-05-05 01:56:51

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: makepkg and install with proper dependencies

pkg2 would need to have pkg3 in its depends array in the PKGBUILD

Offline

#5 2010-05-05 01:59:28

keerthi
Member
Registered: 2007-11-18
Posts: 95

Re: makepkg and install with proper dependencies

Oh yes! Thanks again.

Offline

Board footer

Powered by FluxBB