You are not logged in.

#1 2011-02-23 13:46:33

karlhf
Member
Registered: 2011-02-20
Posts: 7

[SOLVED] Dependencies: How can I know if a package is needed by other

Hi guys, how are you doing?

I'm fine, but I have a doubt that is killing me, it's the following:

I want to remove "fam" (because I added the word fam on the line "DAEMONS=(...)" on rc.conf because a X person posted it on an X blog, and now I think that person was wrong), but I don't know if there is any package that depends on fam.

So, I was wondering if there is any tool or script to know if X package is needed by Y, Z or more packages, I've seen that pacman has a lot of features, like seeking orphans, remove packages recursively, but I didn't found a feature to solve my problem. 
But maybe there is a script that performs a search in pacman's database on the field "dependencies" of all entries, and if there is any matches, the package would made appear in the output the results. Sadly, I can't program that script, because I know only a little bit of bash (I'm learning).

Sorry by my english mistakes, I hope you understood the message.

Cheers!

Last edited by karlhf (2011-02-23 14:08:06)

Offline

#2 2011-02-23 13:52:48

barto
Member
From: Budapest, Hungary
Registered: 2009-10-22
Posts: 88

Re: [SOLVED] Dependencies: How can I know if a package is needed by other

Simply try to remove it (-R switch), pacman will complain if anything depends on it, and will require confirmation anyway.

EDIT: I feel ashamed to post such a dirty solution. Actually, skunktrader is the winner. smile

Last edited by barto (2011-02-23 14:16:09)


“First principle, Clarice. Simplicity” – Dr. Hannibal Lecter

Offline

#3 2011-02-23 13:56:04

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [SOLVED] Dependencies: How can I know if a package is needed by other

pacman -Qi fam

Look for "Required By"

Offline

#4 2011-02-23 14:05:14

karlhf
Member
Registered: 2011-02-20
Posts: 7

Re: [SOLVED] Dependencies: How can I know if a package is needed by other

OMG!!!! I missed this field when I checked

 pacman -Qi <package> 

facepaucu.gif

Thanks for your support, barto and skunktrader smile

Edit: I figured out: hal is required by samba... so I would not erase it.

Edit2: Mods, problem solved, it was much more simple than what i thought, feel free to close the topic

Last edited by karlhf (2011-02-23 14:28:14)

Offline

#5 2011-02-23 16:56:05

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Dependencies: How can I know if a package is needed by other

Also take a look at pactree


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB