PKGS(1)

πŸ“¦
version 2021-03 Β· 2 versions
, in nixos 26.05

✨ PKGS(1) ✨

okay so this is a page from the General Commands Manual, bestie β€” real PKGS(1) energy, and we're about to make it make sense πŸ’…


🌸 NAME 🌸

pkgs β€” count installed packages

πŸŽ€ SYNOPSIS πŸŽ€

pkgs [format]

πŸ’– DESCRIPTION πŸ’–

pkgs counts, like, all of your packages that were installed with installed package managers. that's it. that's the whole vibe. a little number that tells you how much stuff you've got going on 🫢

⭐ FORMAT SPECIFIERS ⭐

here's the part where you pick what it actually prints out. the format specifiers are, in order:

  • ${total} β€” Total amount of installed packages. literally just the number, no cap.
  • ${pkgs_total} β€” Like ${total}, but lists package managers. (See EXAMPLES) πŸ‘€
  • ${pkgs_tiny_total} β€” Like ${pkgs_total}, but lists package managers in the tiny format. (See EXAMPLES) 🧚

πŸ¦‹ EXAMPLES πŸ¦‹

so if you run pkgs with no format at all, like this:

pkgs

then pkgs runs with the default format, '${total}'. sample result: '1024' β€” cute, iconic, a whole thousand-and-change packages πŸŽ€

now here's a comparison of '${total}', '${pkgs_total}', and '${pkgs_tiny_total}'. the following commands were executed on the author's system:

pkgs '${total}'
pkgs '${pkgs_total}'
pkgs '${pkgs_tiny_total}'

which yields the output:

2941
2936 (apt) 5 (snap)
2941 (apt, snap)

and as you can see, both '${pkgs_total}' and '${pkgs_tiny_total}' list package managers, but '${pkgs_tiny_total}' does so in a more concise way. lowkey the tiny one ate πŸ’…βœ¨


😭 REPORTING BUGS 😭

please report any bugs to https://github.com/lptstr/fetchutils/issues or to kiedtl@tilde.team. bestie if something's broken, tell them, don't just suffer in silence πŸ™ˆ

πŸ’€ SEE ALSO πŸ’€

fetchutils(1)

also, the full documentation for pkgs is not maintained as a Texinfo manual. so if the info and pkgs programs are properly installed on your system, the command

info pkgs

should not give you access to the complete manual. yeah. that's the joke. that's the whole thing. πŸ’€

πŸ‘‘ LICENSE πŸ‘‘

Copyright Β© 2020 KiΓ«d Llaentenn and contributors

This utility is licensed under the MIT license. slay πŸŽ€


and that's the tea, bestie β€” this gorgeous little page is from the General Commands Manual, dated 1980-01-01, and it's the PKGS(1) page saying bye-bye πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from