You are not logged in.
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
pacman -U --asdep pkg3; pacman -U --asdep pkg2; pacman -U pkg1
Offline
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
pkg2 would need to have pkg3 in its depends array in the PKGBUILD
Offline
Oh yes! Thanks again.
Offline