Skip to content

Instantly share code, notes, and snippets.

@samueldr

samueldr/bash Secret

Last active July 8, 2018 17:28
Show Gist options
  • Save samueldr/9bc3fca8be02c17cf8d5313fe225494e to your computer and use it in GitHub Desktop.
Save samueldr/9bc3fca8be02c17cf8d5313fe225494e to your computer and use it in GitHub Desktop.
[nix-shell:~]$ patchelf --print-needed --print-rpath $(which git)
/nix/store/r43dk927l97n78rff7hnvsq49f3szkg6-zlib-1.2.11/lib:/nix/store/jkxp76m7y3iai3ksn8n3agfmj8s92316-pcre2-10.23/lib:/nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib
libpcre2-8.so.0
libz.so.1
librt.so.1
libgcc_s.so.1
libpthread.so.0
libc.so.6
$ nix-shell -p hello
[nix-shell:~]$ patchelf --print-needed --print-rpath $(which hello)
/nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib
libc.so.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment