It\u2019s commonly used during packaging to remove or adjust build-time library paths before distributing a program. Use it carefully: changing the path incorrectly can prevent the program from finding its libraries.<\/p>\n\n\n\n chrpath -l .\/program # show its RPATH\/RUNPATH You may see it in Linux system workflows\u2014for example, in initramfs<\/strong> images used during boot, or in software package archives. It\u2019s similar in purpose to find mydir -print | cpio -o -v -H newc > mydir.cpio<\/p>\n\n\n\n cpio -i -v < mydir.cpio<\/p>\n\n\n\n build-essential is a metapackage on Debian and Ubuntu that installs the basic tools for compiling software. It typically pulls in: chrpath is a small Linux utility for inspecting and changing the RPATH\/RUNPATH stored in an ELF executable or shared library. These paths tell the dynamic linker where to look for required shared libraries. It\u2019s commonly […]<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64,19,1766],"tags":[1611,1462,1762,1765],"class_list":["post-2694","post","type-post","status-publish","format-standard","hentry","category-build","category-linux","category-yocto","tag-build","tag-linux","tag-training","tag-yocto"],"_links":{"self":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2694"}],"version-history":[{"count":1,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2694\/revisions"}],"predecessor-version":[{"id":2695,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2694\/revisions\/2695"}],"wp:attachment":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2694"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}build-essential<\/code> is a metapackage on Debian and Ubuntu that installs the basic tools for compiling software. It typically pulls in:<\/p>\n\n\n\n\n
gcc<\/code> and g++<\/code> \u2014 C and C++ compilers<\/li>\n\n\n\nmake<\/code> \u2014 runs build instructions<\/li>\n\n\n\nlibc6-dev<\/code> \u2014 C library headers and development files<\/li>\n\n\n\ndpkg-dev<\/code> \u2014 tools for building Debian packages<\/li>\n<\/ul>\n\n\n\nchrpath<\/code> is a small Linux utility for inspecting and changing the RPATH\/RUNPATH<\/strong> stored in an ELF executable or shared library. These paths tell the dynamic linker where to look for required shared libraries.<\/p>\n\n\n\n
chrpath -d .\/program # remove it
chrpath -r ‘$ORIGIN\/lib’ .\/program # set a relative path<\/p>\n\n\n\ncpio<\/code><\/strong> is both a command-line utility and a package that provides it. It creates and extracts archive files, often used for backups, packaging, and moving files while preserving metadata.<\/p>\n\n\n\ntar<\/code>, though the archive formats differ.<\/p>\n\n\n\nCreate an archive from files under mydir<\/h1>\n\n\n\n
Extract it into the current directory<\/h1>\n\n\n\n
-o<\/code> creates an archive, -i<\/code> extracts one, -v<\/code> lists files as they\u2019re processed, and -H newc<\/code> selects the commonly used newc<\/code> archive format.<\/p>\n","protected":false},"excerpt":{"rendered":"