When searching with an exact package match, for example to see the package description/license/homepage, portage returns no applications found.
Steps to Reproduce:
1. emerge --search screen
2. (oh dear, that's a long list)
3. emerge --search "app-misc/screen" (or app-vim/screen)
# emerge --search app-misc/screen
[ Results for search key : app-misc/screen ]
[ Applications found : 0 ]
Latest version available: 4.4.0
Latest version installed: [ Not Installed ]
Size of files: 827 KiB
Description: screen manager with VT100/ANSI terminal emulation
You need to search for "@app-misc/screen" in order to match the category. This is documented in the emerge man page.
I think we could remove the requirement to use @, since the presence of a / character implies that there is a category.
Patch posted for review:
The bug has been referenced in the following commit(s):
Author: Zac Medico <email@example.com>
AuthorDate: 2018-02-18 21:19:39 +0000
Commit: Zac Medico <firstname.lastname@example.org>
CommitDate: 2018-02-19 19:18:24 +0000
emerge --search: use slash to auto-detect category (bug 647940)
Since search strings containing a slash do no work unless category
match mode is enabled, use slash to auto-detect category match mode,
so that users do not have to prefix the search string with the special
Reviewed-by: Brian Dolbec <email@example.com>
Reviewed-by: M. J. Everitt <firstname.lastname@example.org>
pym/_emerge/search.py | 4 ++++
1 file changed, 4 insertions(+)}
Fixed in portage-2.3.40-r1.