Skip to content

Instantly share code, notes, and snippets.

@dmigous
dmigous / find-library-dependencies-debian.md
Last active October 13, 2015 15:05
How to find on what packages depends your library Debian / Ubuntu

How to find on what packages depends your library Debian / Ubuntu

When creating deb package for your project you need to specify at DEBIAN/control file at Depends: field to what packages your project depends. To do that you can invoke follwing command on all binaries and libraries that you want to put into your package. This will help you fill in Depends: field.

Before start you should install apt-file: # apt-get install apt-file

ldd $LIBRARY_PATH  | awk '/=>/{print $1}'  |   \
  while read n; do echo "=== $n maybe found at: ===" && apt-file search $n |   \
    awk '{print $1}' | sed 's/://' | sort; done | uniq
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active April 16, 2024 23:05
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\