According to the man-page at https://manpages.debian.org/buster/apt/apt.8.en.html and the linked https://manpages.debian.org/buster/manpages/regex.7.en.html, you should be able to use regex like apt search '(-|^)vim(-|$)' to get vim as either whole name or related packages with containing vim with leading or trailing dashes, or apt search '^vim' to get any beginning with vim—in case that helps. zypper lets me do essentially that with zypper se '/(-|^)vim(-|$)/' and such.
MaskedNybbles
Idiot
- 0 Posts
- 3 Comments
Joined 5 months ago
Cake day: April 2nd, 2026
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
MaskedNybbles@piefed.socialto
Linux Phones@lemmy.ca•imsd 112 emergency calling end to end tested successfully! (Linux phone VoLTE)English
3·10 days agoTook a look and the layout seems to have hyphen and en dash—default—for
Alt Gr + -andAlt Gr + Shift + -, respectively, on both my regular layout and the German layout on my machine (added the German layout just to check). I wound up using the compose sequence of three dashes, but would prefer something with fewer strokes (and may do something about it—maybe).

I understand what you mean, and tend to agree, although I had some success with
zypper se -d '/CD.*burn/'—'CD.*(burn)|(writer)'produced more results than I’d like—for your example. It also appearsapt-cache searchalready searches descriptions by default.Looking at results for just
/CD/—amid the many poor results—it seems my earlier search missed some due to differing word usage, such as recording rather than burning, and whatnot.