Install¶
portcheck is a single static binary with no runtime dependencies.
Open a new terminal afterwards so portcheck is on your PATH.
Note
The package is waiting for review in microsoft/winget-pkgs. Until it's merged, use Scoop or the zip from the releases page.
Download the .deb, .rpm or .apk for your architecture from the
latest release, then:
Download the archive for your OS and CPU from the
latest release,
extract it, and put portcheck (portcheck.exe on Windows) on your PATH.
Check the installation:
Shell completion¶
portcheck completion bash > /etc/bash_completion.d/portcheck # bash
portcheck completion zsh > "${fpath[1]}/_portcheck" # zsh
portcheck completion fish > ~/.config/fish/completions/portcheck.fish # fish
portcheck completion powershell | Out-String | Invoke-Expression # PowerShell (current session)
Homebrew installs completions for you.
Verifying downloads¶
Every release publishes checksums.txt, signed with Sigstore cosign
using GitHub's OIDC identity (no long-lived keys). It also publishes SPDX SBOMs and
SLSA build provenance.
-
Verify that the checksum file was produced by this repository's release workflow:
-
Verify your download against it:
-
Optionally, verify the build provenance with the GitHub CLI:
Running with elevated privileges¶
Some information is only visible to root or Administrator; see
Permissions by OS. sudo often resets PATH, so pass the full path:
Uninstall¶
Remove the binary, or use your package manager (brew uninstall portcheck,
scoop uninstall portcheck, apt remove portcheck, …). portcheck writes no
configuration or cache files.