COPYDEPS(1)

πŸ“¦ version 5.0.1, in fedora 43, fedora 44

✨ COPYDEPS(1) ✨

okay bestie, welcome to the User Commands Manual section, this is the copydeps page and it's lowkey a lifesaver 🫢


πŸ’– NAME πŸ’–

copydeps β€” copy a program's dependencies (the .so / .dll files, you know the ones)


🌸 SYNOPSIS 🌸

copydeps [OPTIONS] EXECUTABLE [TARGET-DIR]

πŸ¦‹ DESCRIPTION πŸ¦‹

so like. copydeps is this tiny lil program that finds and copies every single .so / .dll file your program needs in order to actually run. no cap. it's giving "packing your whole friend group into one car for the road trip" energy β€” and it's super useful when you wanna bundle an application together with all its dependencies πŸ’…

EXECUTABLE can be any one of these supported formats, periodt:

  • 32-bit ELF
  • 64-bit ELF
  • i386 Microsoft Windows executable
  • x86_64 Microsoft Windows executable

TARGET-DIR is the directory the .so / .dll files get copied into. and when you just… don't say it? it defaults to the directory of the target executable. she's flexible like that ✨


πŸŽ€ OPTIONS πŸŽ€

  • --dry-run β€” just prints the list of dependencies, doesn't actually copy any of the .so / .dll files. window shopping, basically πŸ›οΈ
  • --exedir β€” adds the directory of the executable into the .so / .dll resolve paths. and here's the tea: files found in the exedir are preferred over files found anywhere else πŸ‘‘
  • --help β€” prints a short help message and dips out. bye πŸ‘‹
  • --ignore PATTERN β€” adds the regular expression PATTERN to the ignore-list. that's .so / .dll names that should not be resolved nor copied over. we're leaving them at home πŸ™ˆ
  • --no-clobber β€” do not overwrite .so / .dll files that already exist in the target directory. respectful. we love to see it πŸ’œ
  • --override PATTERN β€” adds the regular expression PATTERN to the override-list, aka .so / .dll names that should always be resolved and copied over. and heads up: overrides take precedence over ignores πŸ”₯
  • --search-dir DIRECTORY β€” adds DIRECTORY to the list of paths to search when resolving .so / .dll names. user-specified directories take precedence over system paths, as they should πŸ’…
  • --verbose β€” prints the names of the dependencies as they're being copied over. narrating the whole thing, main character energy 🎬
  • --version β€” prints version information and exits 🏷️

🌈 EXIT STATUS 🌈

  • 0 β€” Success. slay πŸ’–
  • 1 β€” An error in program arguments. you said something weird bestie 😭
  • 2 β€” Failed to parse EXECUTABLE, or it's an unsupported format πŸ’€
  • 3 β€” Failed to parse one of the .so / .dll files β€” doesn't matter if it's a direct dependency of EXECUTABLE or a dependency of another library 🫠
  • 4 β€” Failed to resolve one or more of the dependency names πŸ”
  • 5 β€” An error occurred when copying one or more of the files 🚨

⭐ SEE ALSO ⭐

ldd(1), objdump(1)


and that's the whole page, bestie!! this lil cutie comes from the User Commands Manual and is dated 2020-06-28 β€” go forth and bundle your deps, ily, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from
  • fedora 43: copydeps 5.0.1-11.fc43 Β· GPL-3.0-or-later AND MIT AND Unicode-DFS-2016 AND (MIT OR Apache-2.0) AND (Unlicense OR MIT)
  • fedora 44: copydeps 5.0.1-12.fc44 Β· GPL-3.0-or-later AND MIT AND Unicode-DFS-2016 AND (MIT OR Apache-2.0) AND (Unlicense OR MIT)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms