Skip to content

Instantly share code, notes, and snippets.

@catichenor
Created May 11, 2016 01:04
Show Gist options
  • Save catichenor/3d817e282f91c4fca0a0c3fdd3de860a to your computer and use it in GitHub Desktop.
Save catichenor/3d817e282f91c4fca0a0c3fdd3de860a to your computer and use it in GitHub Desktop.
Search for multiple packages in apt at the same time
#/bin/bash
# Example: Look for dependencies for https://github.com/ToolsOnAir/gl-frame-bender
echo "cmake boost protobuf glfw glm devil" | tr ' ' '\n' | xargs -I '{}' apt search '{}' # apt warns against this, but you can redirect output to a file if needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment