Skip to content

Commit

Permalink
Merge pull request #259 from infosiftr/dpkg-query-search
Browse files Browse the repository at this point in the history
Fix `dpkg-query --search` to be more specific
  • Loading branch information
yosifkit committed Apr 5, 2024
2 parents 082047a + b1cb5de commit 7b7f8cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2.4/Dockerfile
Expand Up @@ -215,7 +215,7 @@ RUN set -eux; \
apt-mark auto '.*' > /dev/null; \
[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \
find /usr/local -type f -executable -exec ldd '{}' ';' \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| cut -d: -f1 \
Expand Down

0 comments on commit 7b7f8cd

Please sign in to comment.