CHECK-SYMBOLS(1)
π CHECK-SYMBOLS(1) β the general commands manual, but make it cute
okay bestie, sit down, because check-symbols is about to become your new hyperfixation β¨
β¨ NAME β¨
check-symbols β verify symbols exported by a new library version π¦
πΈ SYNOPSIS πΈ
check-symbols <source-package> [DEBDIR]
π DESCRIPTION π
so here's the vibe: you've got a shiny new library version and you wanna know what symbols it's putting out into the world. relatable. to verify the symbols exported by a new library version, just run check-symbols with the name of the source package as your argument. that's it, that's the whole ask π«Ά
then the magic happens, in order, no skips:
check-symbolsfirst determines the symbols exported by the existing, installed library version.- then it installs the new library.
- then it compares the symbols exported by the new library version against the symbols exported by the old version.
and for each of the symbols found, check-symbols will tell you if the symbol is new, unchanged, or has been removed in the new library version. it's giving diff energy and honestly? iconic π
quick little plot twist: if the source package contains multiple binary library packages, then all library files in each of the binary packages will be verified. all of them. every single one. no library left behind π
oh and the actual symbol-hunting tool under the hood? check-symbols uses nm -D to determine the exported symbols of the libraries. iykyk π
and if you don't give a value for DEBDIR, the script just assumes the new library deb files are chilling in /var/cache/pbuilder/result. no big deal, that's just where it looks π
π§ EXAMPLES π§
check-symbols telepathy-glib .
this will, step by step:
- Use
nm -Dto determine the exported symbols of the old, installed versions of the libraries provided bytelepathy-glib. - Install the binary libraries provided by the new version of
telepathy-glib. - Compare the output of
nm -Dof the new libraries with the output of the old version. - List the result in diff format.
literally the whole pipeline in one little command, we love to see it π
π BUGS π
found a bug? pls report it, we're not gatekeeping:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/
π₯ SEE ALSO π₯
π AUTHOR π
check-symbols was written by Daniel Holbach <daniel.holbach@ubuntu.com> and this manpage by Albert Damen <albrt@gmx.net>. Both are licensed under the GNU General Public License, version 2. respect the license bestie, it's the law π
okay that's the whole page, thanks for coming to my ted talk. this beauty comes to you courtesy of ubuntu-dev-tools, dated December 9, 2007 β a whole vintage era and still serving β¨π¦π
π¦ where this page comes from
- debian bookworm: ubuntu-dev-tools 0.193 Β· GPL-2.0-only
- debian trixie: ubuntu-dev-tools 0.206 Β· GPL-2.0-only
- ubuntu jammy: ubuntu-dev-tools 0.189 Β· GPL-2.0-only
- ubuntu jammy: ubuntu-dev-tools 0.201ubuntu2~22.04.4 Β· GPL-2.0-only
- ubuntu noble: ubuntu-dev-tools 0.201ubuntu2 Β· GPL-2.0-only
- ubuntu questing: ubuntu-dev-tools 0.206
- ubuntu resolute: ubuntu-dev-tools 0.210 Β· GPL-2.0-only
- ubuntu stonking: ubuntu-dev-tools 0.215 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms