tracking port requires

2007-01-05 Thread Michael P. Soulier

Hello,

I'm trying to figure out where ports keep their dependency
information, and the best way to parse it? On a Linux rpm-based
system, I can do the following:

Linux RPM  |   FreeBSD Ports |  Task
=
rpm -qa  pkg_info
   List all installed packages
rpm -ql package   pkg_info -L package  List
files in package
rpm -qf file  pkg_which file
Which package does file belong to?
rpm -q --requires package  ?
List dependencies of package
rpm -q --whatrequires package   ?
Reverse-dependencies of package

If anyone has compiled this, it would help me out.

Thanks,
Mike
--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: tracking port requires

2007-01-05 Thread Dan Nelson
In the last episode (Jan 05), Michael P. Soulier said:
 I'm trying to figure out where ports keep their dependency
 information, and the best way to parse it? On a Linux rpm-based
 system, I can do the following:

The dependencies themselves are stored as @pkgdep lines in the
/var/db/pkg/packagename/+CONTENTS file.  The reverse link is stored in
/var/db/pkg/packagename/+REQUIRED_BY .  You can list the dependencies
with the pkg_info -r packagename command, and the packages that
require a package with pkg_info -R packagename.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: tracking port requires

2007-01-05 Thread Michael P. Soulier

On 1/5/07, Dan Nelson [EMAIL PROTECTED] wrote:

The dependencies themselves are stored as @pkgdep lines in the
/var/db/pkg/packagename/+CONTENTS file.  The reverse link is stored in
/var/db/pkg/packagename/+REQUIRED_BY .  You can list the dependencies
with the pkg_info -r packagename command, and the packages that
require a package with pkg_info -R packagename.


Great, thanks.

Mike
--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]