INSTALL_NAME_TOOL(1)
πΈ NAME πΈ
okay so bestie, you're reading the install_name_tool page from the General Commands Manual, and she has main character energy β her whole job is to change dynamic shared library install names. That's the NAME section, periodt. β¨
π¦ SYNOPSIS π¦
install_name_tool [-change old new ] ... [-rpath old new ] ...
[-add_rpath new ] ... [-delete_rpath new ] ... [-id name] file
π DESCRIPTION π
So install_name_tool changes the dynamic shared library install names and/or adds, changes or deletes the rpaths recorded in a Mach-O binary. It's giving Mach-O binary energy, but make it cute. π
π heads up, bestie: for this tool to work when the install names or rpaths are larger, the binary should be built with theld(1)-headerpad_max_install_namesoption. That's the exact caveat, no cap.
Now the options, one by one β and yes, some of these can be stacked, iykyk:
-change old newβ changes the dependent shared library install name old to new in the specified Mach-O binary. More than one of these options can be specified. If the Mach-O binary does not contain the old install name in a specified-changeoption, the option is ignored β she just lowkey moves on. π«Ά-id nameβ changes the shared library identification name of a dynamic shared library to name. If the Mach-O binary is not a dynamic shared library and the-idoption is specified, it is ignored. π-rpath old newβ changes the rpath path name old to new in the specified Mach-O binary. More than one of these options can be specified. If the Mach-O binary does not contain the old rpath path name in a specified-rpath, it is an error. π¨-add_rpath newβ adds the rpath path name new in the specified Mach-O binary. More than one of these options can be specified. If the Mach-O binary already contains the new rpath path name specified in-add_rpath, it is an error. π₯-delete_rpath oldβ deletes the rpath path name old in the specified Mach-O binary. More than one of these options can be specified. If the Mach-O binary does not contain the old rpath path name specified in-delete_rpath, it is an error. π
π SEE ALSO π
ld(1)β go say hi, that's the whole see-also list, fr fr. π
mwah π this page is brought to you by Apple, Inc., dated March 4, 2009 β that's the source/version and date sign-off, bestie, and we are so out. πβ¨
π¦ where this page comes from
- nixpkgs unstable: cctools 1010.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms