DH_STRIP - Online Linux Manual PageSection : 1
Updated : 2021-03-06
Source : 13.3.4
Note : Debhelper

NAMEdh_strip − strip executables, shared libraries, and some static libraries

SYNOPSISdh_strip [debhelper options] [−Xitem] [−−dbg−package=package] [−−keep−debug]

DESCRIPTIONdh_strip is a debhelper program that is responsible for stripping out debug symbols in executables, shared libraries, and static libraries that are not needed during execution. This program examines your package build directories and works out what to strip on its own. It uses file(1) and file permissions and filenames to figure out what files are shared libraries (*.so), executable binaries, and static (lib*.a) and debugging libraries (lib*_g.a, debug/*.so), and strips each as much as is possible. (Which is not at all for debugging libraries.) In general it seems to make very good guesses, and will do the right thing in almost all cases. Since it is very hard to automatically guess if a file is a module, and hard to determine how to strip a module, dh_strip does not currently deal with stripping binary modules such as .o files.

OPTIONS−Xitem, −−exclude=item Exclude files that contain item anywhere in their filename from being stripped. You may use this option multiple times to build up a list of things to exclude. −−dbg−package=package This option is a now special purpose option that you normally do not need. In most cases, there should be little reason to use this option for new source packages as debhelper automatically generates debug packages (dbgsym packages). If you have a manual ​−−dbg−package that you want to replace with an automatically generated debug symbol package, please see the −−dbgsym−migration option. Causes dh_strip to save debug symbols stripped from the packages it acts on as independent files in the package build directory of the specified debugging package. For example, if your packages are libfoo and foo and you want to include a ​foo-dbg package with debugging symbols, use dh_strip −−dbg−package=foo-dbg. This option implies −−no−automatic−dbgsym and cannot be used with −−automatic−dbgsym or −−dbgsym−migration. −k, −−keep−debug This option is a now special purpose option that you normally do not need. In most cases, there should be little reason to use this option for new source packages as debhelper automatically generates debug packages (dbgsym packages). If you have a manual ​−−dbg−package that you want to replace with an automatically generated debug symbol package, please see the −−dbgsym−migration option. Debug symbols will be retained, but split into an independent file in usr/lib/debug/ in the package build directory. −−dbg−package is easier to use than this option, but this option is more flexible. This option implies −−no−automatic−dbgsym and cannot be used with −−automatic−dbgsym. −−dbgsym−migration=package-relation This option is used to migrate from a manual −dbg package (created with −−dbg−package) to an automatic generated debug symbol package. This option should describe a valid Replaces− and ​Breaks−relation, which will be added to the debug symbol package to avoid file conflicts with the (now obsolete) −dbg package. This option implies −−automatic−dbgsym and cannot be used with ​−−keep−debug, −−dbg−package or −−no−automatic−dbgsym. Examples: ​ dh_strip −−dbgsym−migration='libfoo−dbg (<< 2.1−3~)' ​ ​ dh_strip −−dbgsym−migration='libfoo−tools−dbg (<< 2.1−3~), libfoo2−dbg (<< 2.1−3~)' −−automatic−dbgsym, −−no−automatic−dbgsym Control whether dh_strip should be creating debug symbol packages when possible. The default is to create debug symbol packages. −−ddebs, −−no−ddebs Historical name for −−automatic−dbgsym and −−no−automatic−dbgsym. −−ddeb−migration=package-relation Historical name for −−dbgsym−migration.

NOTESIf the DEB_BUILD_OPTIONS environment variable contains nostrip, nothing will be stripped, in accordance with Debian policy (section 10.1 Binaries). This will also inhibit the automatic creation of debug symbol packages. The automatic creation of debug symbol packages can also be prevented by adding noautodbgsym to the DEB_BUILD_OPTIONS environment variable. However, dh_strip will still add debuglinks to ELF binaries when this flag is set. This is to ensure that the regular deb package will be identical with and without this flag (assuming it is otherwise bit-for-bit reproducible).

CONFORMS TODebian policy, version 3.0.1

SEE ALSOdebhelper(7) This program is a part of debhelper.

AUTHORJoey Hess <joeyh@debian.org>
0
Johanes Gumabo
Data Size   :   17,155 byte
man-dh_strip.1Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 182,650
Visitor ID   :     :  
Visitor IP   :   3.21.105.46   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|dh_strip.1|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|dh_strip.1|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|dh_strip.1|43|br══─}─══|'br══─}─══ )         (htmlprn|149|dh_strip.1|43|'br══─}─══ |'br══─}─══ )