Re: Finding Dependencies

2009-03-17 Thread Lowell Gilbert
Jerry ges...@yahoo.com writes:

 Assuming program: 'foo', how can I determine what other programs depend
 on 'foo', not what programs 'foo' depends on? I have a program on my
 system and I want to determine what other programs are dependent upon
 it. 'pkg_info' doesn't seem to give me that information.

Yes, it does.  With the '-R' option.

The manual is our friend...

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Finding Dependencies

2009-03-17 Thread Paul Schmehl

--On Tuesday, March 17, 2009 14:03:56 -0500 Jerry ges...@yahoo.com wrote:


Assuming program: 'foo', how can I determine what other programs depend
on 'foo', not what programs 'foo' depends on? I have a program on my
system and I want to determine what other programs are dependent upon
it. 'pkg_info' doesn't seem to give me that information.


man (1) pkg_info

-r what the package depends on
-R what depends on the package

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Finding Dependencies

2009-03-17 Thread Jerry
On Tue, 17 Mar 2009 19:16:19 +
Paul Schmehl pschmehl_li...@tx.rr.com wrote:

[snip]

man (1) pkg_info

-r what the package depends on
-R what depends on the package

It does not list any package that depends on it. I have no idea why it
is being installed.

-- 
Jerry
ges...@yahoo.com

Handel's Proverb: You can't produce a baby in one month by impregnating 9 women!


signature.asc
Description: PGP signature


Re: Finding Dependencies

2009-03-17 Thread Fred Condo
On Tue, Mar 17, 2009 at 1:55 PM, Jerry ges...@yahoo.com wrote:

 On Tue, 17 Mar 2009 19:16:19 +
 Paul Schmehl pschmehl_li...@tx.rr.com wrote:

 [snip]

 man (1) pkg_info
 
 -r what the package depends on
 -R what depends on the package

 It does not list any package that depends on it. I have no idea why it
 is being installed.

Try running this command to make sure all dependencies are correctly recorded:

# portmaster --check-depends

Portmaster is itself a (very lightweight) port: ports-mgmt/portmaster
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Finding Dependencies

2009-03-17 Thread Paul Schmehl

--On Tuesday, March 17, 2009 15:55:30 -0500 Jerry ges...@yahoo.com wrote:


On Tue, 17 Mar 2009 19:16:19 +
Paul Schmehl pschmehl_li...@tx.rr.com wrote:

[snip]


man (1) pkg_info

-r what the package depends on
-R what depends on the package


It does not list any package that depends on it. I have no idea why it
is being installed.


Well, it's not magic.  Ports only get installed by one of two ways; you 
deliberately install them or they get installed as dependencies.  If you didn't 
deliberately install a port, then it must be a dependency of something.  If it 
doesn't list any, then it's possible your pkgdb is inaccurate.  Run % pkgdb -F 
to correct any incorrect or missing dependencies.


What port is it?

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Finding Dependencies

2009-03-17 Thread Andreas Rudisch
On Tue, 17 Mar 2009 16:55:30 -0400
Jerry ges...@yahoo.com wrote:

 It does not list any package that depends on it. I have no idea why it
 is being installed.

Sounds like it was a requirement to build (but not to run) another port.

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565


pgpbDNYIZMwnV.pgp
Description: PGP signature


Re: Finding Dependencies

2009-03-17 Thread Eitan Adler
Jerry wrote:
 Assuming program: 'foo', how can I determine what other programs depend
 on 'foo', not what programs 'foo' depends on? I have a program on my
 system and I want to determine what other programs are dependent upon
 it. 'pkg_info' doesn't seem to give me that information.
 
man pkg_info
try pkg_info -R
and also look at /usr/ports/ports-mgmt/pkg_tree
-- 
Eitan Adler
Security is increased by designing for the way humans actually behave.
-Jakob Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org