all installed packages:
$ qlist -I
app-accessibility/epos
app-accessibility/festival
app-accessibility/flite
app-accessibility/freetts
app-accessibility/speech-tools
app-admin/apache-tools
...
qlist will match regexp on substring.
$ qlist -I perl
app-admin/perl-cleaner
dev-lang/perl
dev-perl/AnyEvent
dev-perl/Authen-SASL
dev-perl/Cairo
...
$ qlist -I perl/.*sq
dev-perl/DBD-mysql
Finding files belonging to an installed package
$ qlist .*perl/.*sq
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/DBD/mysql/mysql.so
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/DBD/mysql.pm
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/DBD/mysql/GetInfo.pm
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/DBD/mysql/INSTALL.pod
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/Bundle/DBD/mysql.pm
/usr/share/doc/DBD-mysql-4.00.5/README.bz2
/usr/share/doc/DBD-mysql-4.00.5/ChangeLog.bz2
Slot information
$ qlist -S kde-base/ | head
kde-base/akonadi 4.2
kde-base/akregator 4.2
kde-base/amor 4.2
kde-base/ark 4.2
kde-base/automoc 0
kde-base/blinken 4.2
qfile
The brother of qlist is qfile.
Find which package a file belongs to:
$ qfile /usr/share/doc/DBD-mysql-4.00.5/README.bz2
dev-perl/DBD-mysql (/usr/share/doc/DBD-mysql-4.00.5/README.bz2)
Also works with substring match (but not regexp?)
$ qfile README
app-cdr/cdrtools (/usr/share/doc/cdrtools-2.01.01_alpha57-r1/cdda2wav/README)
app-cdr/cdrtools (/usr/share/doc/cdrtools-2.01.01_alpha57-r1/cdrecord/README)
app-cdr/cdrtools (/usr/share/doc/cdrtools-2.01.01_alpha57-r1/mkisofs/README)
sys-kernel/genkernel (/usr/share/genkernel/modules/README)
sys-kernel/genkernel (/usr/share/genkernel/patches/busybox/1.7.4/README)
sys-kernel/gentoo-sources (/usr/src/linux-2.6.29-gentoo-r5/Documentation/ABI/README)
...
And where to find these tools, and what other tools are there:
$ qlist `qfile -qC qfile` | grep bin
/usr/bin/q
/usr/bin/qatom
/usr/bin/qcache
/usr/bin/qcheck
/usr/bin/qdepends
/usr/bin/qfile
/usr/bin/qglsa
/usr/bin/qgrep
/usr/bin/qlist
/usr/bin/qlop
/usr/bin/qmerge
/usr/bin/qpkg
/usr/bin/qsearch
/usr/bin/qsize
/usr/bin/qtbz2
/usr/bin/quse
/usr/bin/qxpak
Or just try the q command to get descriptions as well. :)
equery
equery does similar things as qlist
$ equery l
[ Searching for all packages in all categories among: ]
* installed packages
[I--] [ ~] app-accessibility/epos-2.5.37-r1 (0)
[I--] [ ] app-accessibility/festival-1.96_beta (0)
[I--] [ ] app-accessibility/flite-1.2-r1 (0)
[I--] [ ] app-accessibility/freetts-1.2.1-r1 (0)
[I--] [ ] app-accessibility/speech-tools-1.2.96_beta (0)
[I--] [ ] app-admin/apache-tools-2.2.11 (0)
...
$ equery l kde-base/
[ Searching for all packages in 'kde-base' among: ]
* installed packages
[I--] [ ~] kde-base/akonadi-4.2.4 (4.2)
[I--] [ ~] kde-base/akregator-4.2.4 (4.2)
[I--] [ ~] kde-base/amor-4.2.4 (4.2)
[I--] [ ~] kde-base/ark-4.2.4 (4.2)
[I--] [ ] kde-base/automoc-0.9.88 (0)
[I--] [ ~] kde-base/blinken-4.2.4 (4.2)
...
$ equery l -I -p -f sci.*/.*meme
[ Searching for package '.*meme' in 'sci.*' among: ]
* Portage tree (/usr/portage)
[-P-] [M~] sci-biology/embassy-memenew-0.1.0 (0)
[-P-] [M~] sci-biology/embassy-memenew-0.1.0-r1 (0)
[-P-] [M~] sci-biology/meme-3.5.4-r1 (0)
[-P-] [M~] sci-biology/meme-3.5.7 (0)
equery can find files in installet packages
$ equery f app-portage/gentoolkit | grep bin
/usr/bin
/usr/bin/eclean
/usr/bin/eclean-dist
/usr/bin/eclean-pkg
/usr/bin/epkginfo
/usr/bin/equery
/usr/bin/eread
/usr/bin/euse
/usr/bin/glsa-check
/usr/bin/revdep-rebuild
/usr/sbin
But I don't think the equivalence of qfile is here.
epkginfo is cool though:
$ epkginfo kde-meta
Package: kde-base/kde-meta
Herd: kde
Maintainer: kde
Location: /usr/portage/kde-base/kde-meta
Keywords: kde-meta-3.5.9:
Keywords: kde-meta-3.5.10: alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~mips
Keywords: kde-meta-4.2.4: ~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86
No comments:
Post a Comment