There is one more package manager (actually more of an anti-package manager) I want to introduce you to: Webi.
Webi lets you install command line tools directly from the web, with no need for a local command line tool like apt or brew. You don't need to install webi itself at all, instead, you just run a shell command that downloads and runs the tool's official installer script.
If you're using WSL (Windows Subsystem for Linux), you should follow the Linux instructions.
Let's install lsd, a more modern version of the ls command. It's essentially ls with a bunch of extra features.
The output should look something like this:
├── file.csv
├── another-file.csv
└── a-folder
└── last-file.csv
Optional Icons: You must install a nerd font and update the font in your terminal's settings for lsd to show icons. If you are using WSL, you will need to install the font on Windows itself, not WSL, and follow the specific instructions to download and configure Windows Terminal.
As a general rule, it's not smart to pipe a shell script from the internet directly into your terminal, because that script could do malicious things. That said, as long as you're doing it via HTTPS (which you are), and you trust the source (in this case webinstall.dev), it's not as big of a concern. If you want to hear more about it, here's the section of the Backend Banter podcast episode where the creator talks about it more in detail.