which-pkg-broke(1)
π which-pkg-broke β bestie edition β¨
okay so this is which-pkg-broke, part of the debian-goodies collection (yes, the man page header says debian-goodies up top, iykyk π). it's a lil detective tool and honestly? it ate.
πΈ NAME πΈ
which-pkg-broke β find which package might have broken another ππ
β¨ SYNOPSIS β¨
which-pkg-broke package
π¦ DESCRIPTION π¦
okay so what this does: you give it a package name, and it pulls up a list of that package and every single one of its dependencies, all sorted by when they were installed on your system. and how does it know when they were installed? it peeks at the mtime info of /var/lib/dpkg/info/*.list β literally the timestamp on those list files. no cap. π΅οΈβοΈ
why do you care? because this is the tool that lets a system admin line up "hey, when did these dependency packages get installed" against "hey, when did stuff start breaking" so they can figure out which package update is the one that broke everything. it's giving correlation, bestie. π
π EXAMPLES π
this is so useful for figuring out which dependencies got upgraded recently and might be the culprit behind whatever cursed bug you're staring at. like, say aptitude just stops working right β an admin can run:
$ which-pkg-broke aptitude
Package <libapt-pkg-libc6.3-5-3.3> has no install time info
libdb1-compat Fri Aug 8 03:02:11 2003
libsigc++-1.2-5c102 Fri Aug 8 05:15:58 2003
aptitude Sun Jan 11 17:38:06 2004
libncurses5 Sun Jan 18 08:11:05 2004
libc6 Thu Jan 22 07:55:10 2004
libgcc1 Tue Jan 27 07:37:22 2004
gcc-3.3-base Tue Jan 27 07:37:31 2004
libstdc++5 Tue Jan 27 07:37:32 2004
(also note: sometimes a package just has no install time info at all β you'll see that line right there at the top, Package <libapt-pkg-libc6.3-5-3.3> has no install time info, and that's just how it is π)
so depending on exactly when the misbehaviour started, you might have a real reason to point the finger at a more-recently-updated library like libstdc++ or libncurses β because those got installed more recently than aptitude itself. sus. very sus. π
π SEE ALSO π
π«Ά AUTHOR π«Ά
which-pkg-broke was written by Bill Gribble <grib AT billgribble.com> π
this manual page was written by Javier Fernandez-Sanguino for the Debian GNU/Linux distribution. π
k that's the whole thing bestie, go catch that bug πβ¨ β this was debian-goodies, page dated July 24 2006, and yes the footer really does say debian-goodies and which-pkg-broke(1) again because man pages love a little encore π
π
π¦ where this page comes from
- debian bookworm: debian-goodies 0.88.1 Β· GPL-2.0-or-later
- debian trixie: debian-goodies 0.88.2 Β· GPL-2.0-or-later
- nixos 26.05: debian-goodies 0.88.2
- nixpkgs unstable: debian-goodies 0.88.2
- ubuntu jammy: debian-goodies 0.87ubuntu1 Β· GPL-2.0-or-later
- ubuntu jammy: debian-goodies 0.87ubuntu1.1 Β· GPL-2.0-or-later
- ubuntu noble: debian-goodies 0.88.1ubuntu1 Β· GPL-2.0-or-later
- ubuntu noble: debian-goodies 0.88.1ubuntu1.3 Β· GPL-2.0-or-later
- ubuntu questing: debian-goodies 0.88.2ubuntu1
- ubuntu resolute: debian-goodies 0.88.2ubuntu2 Β· GPL-2.0-or-later
- ubuntu stonking: debian-goodies 0.88.2ubuntu2 Β· GPL-2.0-or-later
- Copyright (C) 2006 Javier Fernandez-Sanguino
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms