|
1 | 1 | # qp - query packages |
2 | 2 |
|
3 | | -`qp` is a command-line program for linux and macOS to query installed packages from any ecosystem. |
| 3 | +`qp` is a command-line program for linux and macOS to query installed packages across ecosystems. |
4 | 4 |
|
5 | 5 | you can find installation instructions [here](#installation). |
6 | 6 |
|
@@ -52,7 +52,7 @@ this package is compatible with the following platforms and distributions: |
52 | 52 |
|
53 | 53 | `qp` supports embedded linux systems, including meta-distributions like [yocto](https://www.yoctoproject.org/) that use `opkg` (`.ipk` packages) or `apt`/`dpkg` (`.deb` packages). `rpm` support is currently on the way! |
54 | 54 |
|
55 | | -more distros and non-linux platforms are planned! |
| 55 | +more distros and non-unix platforms are planned! |
56 | 56 |
|
57 | 57 | ## features |
58 | 58 |
|
@@ -405,29 +405,17 @@ qp w provides=libssl@3 # packages that provide libssl at depth 3 |
405 | 405 | - `@2`: second-level relations (relations of relations) |
406 | 406 | - `@3`, `@4`, etc.: deeper levels in the dependency tree |
407 | 407 |
|
408 | | -**special behavior for optional dependencies:** |
| 408 | +**spefor optional dependencies:** |
409 | 409 | - `optdepends` and `optional-for` return the optional relationships at the depth 1 |
410 | | -- after depth 1, the dependency resolution includes hard dependencies from those optional packages in the final results. this is intentional. |
| 410 | +- after epth 1, the dependency resolution includes hard dependencies from those optional packages in the final results. this is intentional. |
411 | 411 |
|
412 | 412 | **examples:** |
413 | 413 | ```bash |
414 | 414 | # show packages with direct dependencies on python (depth 1 implied) |
415 | 415 | qp w depends=python |
416 | 416 |
|
417 | | -# show packages with direct dependencies on python (explicit depth 1) |
418 | | -qp w depends=python@1 |
419 | | - |
420 | 417 | # show packages that indirectly depend on openssl at depth 2 |
421 | 418 | qp w depends=openssl@2 |
422 | | - |
423 | | -# show direct optional dependencies of vlc |
424 | | -qp w optdepends=vlc@1 |
425 | | - |
426 | | -# show optional dependencies of vlc at depth 2 |
427 | | -qp w optdepends=vlc@2 |
428 | | - |
429 | | -# show packages that directly optionally depend on ffmpeg |
430 | | -qp w optional-for=ffmpeg@1 |
431 | 419 | ``` |
432 | 420 |
|
433 | 421 | **note:** depth querying works with all relation fields: `depends`, `optdepends`, `required-by`, `optional-for`, `provides`, `conflicts`, and `replaces`. |
@@ -456,11 +444,21 @@ some frequently-used query patterns are available as built-in macros for conveni |
456 | 444 | qp where no:required-by and reason=dependency and no:optional-for |
457 | 445 | ``` |
458 | 446 |
|
| 447 | +* `heavy` - matches packages 100MB and larger |
| 448 | + ``` |
| 449 | + qp w superorphan |
| 450 | + ``` |
| 451 | + |
| 452 | + is equivalent to: |
| 453 | + ``` |
| 454 | + qp where size=100MB: |
| 455 | + ``` |
| 456 | + |
459 | 457 | these macros can be combined with other queries as usual: |
460 | 458 |
|
461 | 459 | ``` |
462 | 460 | qp w orphan and size=100KB: |
463 | | -qp w superorphan and not name=gtk |
| 461 | +qp w not superorphan and not name=gtk |
464 | 462 | ``` |
465 | 463 |
|
466 | 464 | #### query examples |
|
0 commit comments