CRUFT(8)

πŸ“¦
version 0.9.87 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– CRUFT πŸ’–

okay bestie, buckle up, we're doing a filesystem vibe check ✨

This is the cruft page from section 8 of the System Manager's Manual β€” yes, the big-girl system administration section, main character energy fr fr πŸ‘‘


🌸 NAME 🌸

cruft β€” Check the filesystem for cruft (missing and unexplained files) πŸ•΅οΈβ€β™€οΈ


πŸŽ€ SYNOPSIS πŸŽ€

cruft [ FILE ]

πŸ¦‹ DESCRIPTION πŸ¦‹

so like. cruft is a program that goes over the Debian packaging system's database, and compares the contents of that with the files actually on your system, and produces a summary of the differences. πŸ’…

It's giving "who are you and why are you in my house" but for files. Not me running this and finding out my /usr is lowkey haunted πŸ™ˆ


✨ OPTIONS ✨

  • FILE β€” If a file is provided, cruft-ng will analyze this single file and print matching package(s) name(s). 🎯

Without any option, cruft-ng will analyze the whole system. Yes, the whole entire system. Sit down, hydrate, this one's a journey πŸ“


🧚 FILES 🧚

A user can tune execution by providing extra configuration files:

  • /etc/cruft/ignore β€” Do not process paths listed in this file, this can speed-up matching. Format is one line per path. Example values: /var/schroot/, /var/www/ ... 🚫
  • /etc/cruft/filters/* β€” Rules (glob-patterns) similar that are similar to those built-in into cruft package. The uppercase files are always processed, the lowercase ones are processed when matching package is installed. πŸ”
  • /etc/cruft/explain/* β€” Shell scripts that will print-out a list of temporary file belonging to a package. The uppercase files are always processed, the lowercase ones are processed when matching package is installed. πŸ“œ
bestie the uppercase/lowercase thing is NOT a typo, it's the whole system: UPPERCASE = always runs, lowercase = only runs when the matching package is installed. iykyk πŸ’…

🌈 ENVIRONMENT VARIABLES 🌈

It is possible to get some debugging information from cruft by setting the variable DEBUG. πŸ›


πŸ’€ CAVEAT πŸ’€

The cleansing command apt purge '~c' should be run beforehand. Beware that this may cleanse old databases and currently unused settings you would have liked to preserve.

⚠️ okay this is the serious one. That command is cleansing and it does not ask twice β€” it can yeet old databases and currently unused settings you would have liked to preserve. Read it, mean it, back up first. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Documentation from original cruft package: https://github.com/a-detiste/cruft/blob/master/README


πŸ’œ AUTHOR πŸ’œ

This manual page was written by Alexandre Detiste <alexandre@detiste.be>, for the Debian GNU/Linux system (but may be used by others).


and that's the whole page, no notes 🫢

this was CRUFT(8), live from the System Manager's Manual, section 8 β€” go check your filesystem, bestie, and slay βœ¨πŸ’–πŸŽ€

πŸ“¦ where this page comes from