Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- # Finds all packages pulled in by the given package
- # that have not single a strict dependency on them
- # in a Debian-based distro.
- recommends_file=$(mktemp)
- depends_file=$(mktemp)
- apt-rdepends --show=Recommends "$1" | cut --only-delimited -d ' ' -f 4 | sort -u > "$recommends_file"
- apt-rdepends "$1" | cut --only-delimited -d ' ' -f 4 | sort -u > "$depends_file"
- comm -23 "$recommends_file" "$depends_file"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement