EnglishFrenchSpanish

OnWorks favicon

dh_strip - Online in the Cloud

Run dh_strip in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command dh_strip that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


dh_strip - strip executables, shared libraries, and some static libraries

SYNOPSIS


dh_strip [debhelper options] [-Xitem] [--dbg-package=package] [--keep-debug]

DESCRIPTION


dh_strip is a debhelper program that is responsible for stripping executables, shared
libraries, and static libraries that are not used for debugging.

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.

Note that this option behaves significantly different in debhelper compatibility
levels 4 and below. Instead of specifying the name of a debug package to put symbols
in, it specifies a package (or packages) which should have separated debug symbols,
and the separated symbols are placed in packages with -dbg added to their name.

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.

NOTES


If 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.

CONFORMS TO


Debian policy, version 3.0.1

Use dh_strip online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    subconverter
    subconverter
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • 2
    SWASH
    SWASH
    SWASH is a general-purpose numerical
    tool for simulating unsteady,
    non-hydrostatic, free-surface,
    rotational flow and transport phenomena
    in coastal waters as ...
    Download SWASH
  • 3
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    https://github.com/visualboyadvance-m/visualboyadvance-m
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    sgb2Tu...
    Download VBA-M (Archived - Now on Github)
  • 4
    Stacer
    Stacer
    Linux System Optimizer and Monitoring
    Github Repository:
    https://github.com/oguzhaninan/Stacer.
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • 5
    OrangeFox
    OrangeFox
    Fork of TeamWinRecoveryProject(TWRP)
    with many additional functions, redesign
    and more Features:Supports Treble and
    non-Treble ROMsUp-to-date Oreo kernel,
    built...
    Download OrangeFox
  • 6
    itop - ITSM  CMDB OpenSource
    itop - ITSM CMDB OpenSource
    IT Operations Portal: a complete open
    source, ITIL, web based service
    management tool including a fully
    customizable CMDB, a helpdesk system and
    a document man...
    Download itop - ITSM CMDB OpenSource
  • More »

Linux commands

Ad