Created
September 16, 2025 18:52
-
-
Save ccampo133/d53da6fd90d3c747968b5c7a7d563251 to your computer and use it in GitHub Desktop.
Chainguard apk search script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: apksearch <search_term>" | |
| echo "Note: quote wildcards to prevent shell expansion (e.g., apksearch \"php*8.2*xml*\")" | |
| exit 1 | |
| fi | |
| # Ref: https://edu.chainguard.dev/chainguard/migration/migrating-to-chainguard-images/#searching-for-packages | |
| docker run --rm cgr.dev/chainguard/wolfi-base sh -c "apk update >/dev/null 2>&1 && apk search \"$*\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment