How do you avoid unnecessary directories after removing a package?

This is ultimately not very productive, but I’ve had free time lately for obvious worldly reasons.

I feel as if I’m missing something obvious, but is there any way to completely remove a package and its directories through pacman without running


<span style="color:#323232;">rm -rf /path/to/directory]
</span>

manually after


<span style="color:#323232;">pacman -Rs package_name
</span>

and hoping you get everything?

Otherwise, my best solution so far has been to run


<span style="color:#323232;">tree 
</span>

with options where I can browse through my directories and check file-by-file.

I’ve unintentionally developed a neurosis where I want my system as clean as possible since I’ve put enough time into it. Which may be dumb, but yeah.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • archlinux@lemmy.ml
  • Leos
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • everett
  • InstantRegret
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • modclub
  • kavyap
  • GTA5RPClips
  • cubers
  • JUstTest
  • osvaldo12
  • tacticalgear
  • Durango
  • khanakhh
  • ngwrru68w68
  • provamag3
  • anitta
  • tester
  • cisconetworking
  • ethstaker
  • megavids
  • normalnudes
  • lostlight
  • All magazines