| Post Reply | RetroFed Forums Forum Index » Debian operating system |
| Author | Message | ||
|---|---|---|---|
|
lambalicious lemmy.sdf.org lambalicious@lemmy.sdf.org Joined: 2023-07-26 |
Use case: Start Start iterating through the list of packages found until somehow, someday, you can find something that is actually about foobar and not about Rust:
Any practical way of ridding of this spam in tools like apt or aptitude? |
||
| 2 Original | |||
|
Salsa5924 lemmy.world Salsa5924@lemmy.world Joined: 2023-08-06 |
Apt search support regex
|
||
| 3 | |||
|
Brickfrog lemmy.dbzer0.com brickfrog@lemmy.dbzer0.com Joined: 2023-06-13 |
Apt search support regex search (apt-cache(8)) search can be used to search for the given regex(7) term(s) in the list of available packages and display matches. This can e.g. be useful if you are looking for packages having a specific feature. If you are looking for a package including a specific file try apt-file(1).
Just to add to your answer, regular apt search will find all search keywords in the package name and description so OP may still have a ton of output in the search results. It may be helpful to narrow down the search to just the package name e.g.
It still accepts regex so something like
would find all packages with names beginning with "blahblah". The ^ regex specifies the beginning of the word being searched rather than searching anywhere within the package name (for the ppl not too versed in regex syntax). One thing that confused me, the manpage for apt on my Debian system doesn't even mention "--names-only" so I'm not sure where that's documented officially.. I found it online and discovered it works in Debian Trixie. |
||
| 2 | |||
| Post Reply |
Back to top |