On 05/07/2012 15:58, Sean wrote: > > On 05/07/2012, at 10:02 PM, Richard Yao wrote: >> >> The second is the e-file command, which will query that database for >> whatever follows it. For example, if I want to find out which package >> installs repoman, I can do `e-file repoman`. I can also do `e-file >> /usr/bin/repoman`. >> >> if FreeBSD had an equivalent to this command, this command, then I >> imagine that calls for Ubuntu/Fedora features should cease. Gentoo users >> seem to be happy with e-file. >> > > > 0:55 Fri 06-Jul sean@queen [~] pkg_info -W bash > /usr/local/bin/bash was installed by package bash-4.2.28 > > 0:57 Fri 06-Jul sean@queen [~] pkg_info -W /usr/local/sbin/sendmail > /usr/local/sbin/sendmail was installed by package postfix-2.9.3,1
Not the same thing. Richard's command doesn't need the packages to be installed first. It's answering "what package should I install to get this program?" rather than "what package did this program come from?" Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW
signature.asc
Description: OpenPGP digital signature