You are not logged in.

#1 2010-01-03 08:59:32

Kasumi_Ninja
Member
Registered: 2009-12-31
Posts: 54

(SOLVED) How do I remove dependencies of AUR packages?

I rather not use sudo and thereof I issue a 'makepkg' instead of a 'makepkg -s' and install dependencies manually. I wonder though what happens when I issue a 'pacman -Rns' to remove an AUR package. Pacman doesn't seem to remove the dependencies. Do I need to issue a 'makepkg -s' in order to automagically remove dependencies with 'pacman -Rns'? What about AUR packages that have other AUR packages as dependency and therefor cannot be installed with 'makepkg -s'?

Last edited by Kasumi_Ninja (2010-01-03 13:39:51)

Offline

#2 2010-01-03 09:03:00

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

Re: (SOLVED) How do I remove dependencies of AUR packages?

Install deps using "--asdep" and pacman will know they are deps...

Offline

#3 2010-01-03 09:46:21

stillwater
Member
Registered: 2009-12-19
Posts: 7

Re: (SOLVED) How do I remove dependencies of AUR packages?

Allan wrote:

Install deps using "--asdep" and pacman will know they are deps...

What about optional deps? Let's take an example, I installed *pacgraph* from AUR and for it to be fully functional I installed *tk* with "--asdep" option. But "pacman -Rns pacgraph" did not remove *tk*.

Offline

#4 2010-01-03 09:54:03

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

Re: (SOLVED) How do I remove dependencies of AUR packages?

Not much you can do now, but maybe in a future pacman release:   http://wiki.archlinux.org/index.php/Use … OptDepends

Offline

#5 2010-01-03 11:32:30

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: (SOLVED) How do I remove dependencies of AUR packages?

You might want to take a look at the package "nosudo" in AUR. It creates an executable /usr/bin/sudo, which then behaves like su -c, but works with makepkg -s. I really like this script :-)

About the optdepends, that's really something I don't like with pacman right now. I also hope these improvements are being implemented :-)

Offline

#6 2010-01-03 13:38:40

Kasumi_Ninja
Member
Registered: 2009-12-31
Posts: 54

Re: (SOLVED) How do I remove dependencies of AUR packages?

Allan wrote:

Install deps using "--asdep" and pacman will know they are deps...

Thanks!

Offline

#7 2010-01-03 13:39:40

Kasumi_Ninja
Member
Registered: 2009-12-31
Posts: 54

Re: (SOLVED) How do I remove dependencies of AUR packages?

Allan wrote:

Not much you can do now, but maybe in a future pacman release:   http://wiki.archlinux.org/index.php/Use … OptDepends

That would be nice!

Offline

#8 2010-01-03 13:40:44

Kasumi_Ninja
Member
Registered: 2009-12-31
Posts: 54

Re: (SOLVED) How do I remove dependencies of AUR packages?

Army wrote:

You might want to take a look at the package "nosudo" in AUR. It creates an executable /usr/bin/sudo, which then behaves like su -c, but works with makepkg -s. I really like this script :-)

About the optdepends, that's really something I don't like with pacman right now. I also hope these improvements are being implemented :-)

That's an excellent tip. Thanks.

Offline

#9 2010-01-03 17:34:06

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: (SOLVED) How do I remove dependencies of AUR packages?

Maybe you want to have a look at optdepsmeta until pacman is able to keep track of optional dependencies.

Offline

#10 2010-01-04 16:51:25

patrickthebold
Member
Registered: 2008-12-15
Posts: 55

Re: (SOLVED) How do I remove dependencies of AUR packages?

I haven't fully thought this through but I would like --asdeps to take an argument that specifies 'to what'. 

For example: wicd has an optional dependency for notifcation-daemon, which I want.  I would like to be able to

pacman -S --asdeps='wicd' notification-daemon

This would then modify wicd to depend on notification-daemon.  This isn't perfect since it is an optional and not a real dependency.  The only real problem I can think of is if I want to remove notification-daemon.  However pacman should see 'notification-daemon' listed under dependencies AND optional-dependencies, so it could give a warning and an option to go ahead anyway.  If it goes ahead, pacman reverts wicd to nolonger depend notification-daemon.  I feel like it should be pretty easy to add this to pacman.

I feel like something like yaourt would be responsible for asking if I want to install optional dependencies.  So when I install something with yaourt it asks me about each optional dependency and if I want it. 

Just my two cents.

Offline

Board footer

Powered by FluxBB