You are not logged in.

#1 2013-01-28 19:45:16

browntown
Member
From: Salem, OR USA
Registered: 2012-11-20
Posts: 63

[Resolved] Whoneeds shows no depends but pacman -Rs does

I must be missing the meaning of  "explicitly" installed.  I'm cleaning up some packages on one of my installs and did something that I never noticed before.  (This is all from installing Samba, and then removing it with just a -R instead of a -Rs)

pumpkin ~ $ whoneeds libwbclient
Packages that depend on [libwbclient]
  None
pumpkin ~ :( $ yaourt -Rs libwbclient
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: cifs-utils: requires libwbclient
:: smbclient: requires libwbclient

These two things seem contradictory to me.  I guess the easiest thing to do at this point is re-install samba, then -Rsn samba.

My question is: since whoneeds isn't perfect, is there a pacman command that will absolutely show if a package has any dependencies?

Thank you for your patience with this newbie.

Last edited by browntown (2013-01-29 02:38:49)

Offline

#2 2013-01-28 21:25:41

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: [Resolved] Whoneeds shows no depends but pacman -Rs does

You can use pactree (included in pacman btw) to see a package's dependencies. Also it works recursively so you may want to limit the depth using the -d flag. Furthermore you can see reverse dependencies with the -r flag.

Last edited by anonymous_user (2013-01-28 21:26:28)

Offline

#3 2013-01-28 23:10:29

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,432
Website

Re: [Resolved] Whoneeds shows no depends but pacman -Rs does

What is "whoneeds"?  Does it even know about pacman?

Offline

#4 2013-01-28 23:13:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,432

Re: [Resolved] Whoneeds shows no depends but pacman -Rs does

Allan wrote:

What is "whoneeds"?  Does it even know about pacman?

$ pkgfile whoneeds
community/pkgtools

https://bbs.archlinux.org/viewtopic.php?id=131244

Last edited by karol (2013-01-28 23:14:33)

Offline

#5 2013-01-28 23:13:43

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: [Resolved] Whoneeds shows no depends but pacman -Rs does

Its part of pkgtools.

edit: beaten by karol hmm

Last edited by anonymous_user (2013-01-28 23:14:08)

Offline

#6 2013-01-29 00:44:09

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,207
Website

Re: [Resolved] Whoneeds shows no depends but pacman -Rs does

In this case I'm pretty sure it can't make a difference, but for future reference, pacman != yaourt.  Your title says one thing, but your content says another.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#7 2013-01-29 02:05:08

browntown
Member
From: Salem, OR USA
Registered: 2012-11-20
Posts: 63

Re: [Resolved] Whoneeds shows no depends but pacman -Rs does

@Trilby, I knew someone would bring that up.  I noticed it after I had posted and left it since it doesn't change my question.  Which still is:

Why does "whoneeds" not work as expected?

Offline

#8 2013-01-29 02:10:09

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: [Resolved] Whoneeds shows no depends but pacman -Rs does

How did you install smbclient/libwbclient? whoneeds seems to work for me (albeit still strange results):

~ > whoneeds libwbclient
Packages that depend on [libwbclient]
  gnome-mplayer
  mplayer
  smbclient
~ > pactree -r libwbclient
|--libwbclient
   |--cifs-utils
      |--smbclient
         |--mplayer
            |--gnome-mplayer
   |--smbclient

Offline

#9 2013-01-29 02:38:12

browntown
Member
From: Salem, OR USA
Registered: 2012-11-20
Posts: 63

Re: [Resolved] Whoneeds shows no depends but pacman -Rs does

well it is gone now, I just kept looking through -Rs complaints till it went away.  Reistalling samba, then -Rs removing it didn't take it away.  So I got rid of smbclient and cifs and things starting working. 

I'm going to just go on in the future not assuming whoneeds is actually telling me what I expect it to.  Will mark as closed.

Offline

Board footer

Powered by FluxBB