The CF 2021 package manager can list the packages ...
# cfml-general
d
The CF 2021 package manager can list the packages your codebase needs, can uninstall ALL, and can install or uninstall individual packages. What it can't do out of the box, far as I can tell, is remove the ones your codebase DOESN'T need, which is what I'd like to do. I could remove all, then install each of the ones it says we need, which I'd have to script myself, not hard. Am I missing the one-liner for this? Is there a downside to removing ones I actually need, then installing them again, other than the thrash of doing it?
Hmmm, it seems that uninstalling a package doesn't uninstall its dependencies. Does anyone know if uninstalling all removes all removable dependencies? I'm not excited about getting info for each one and recursively figuring out all unneeded packages. Starting to feel like just leaving them all there might be the least problematic way forward. Prior versions had them, it can't be fatal.
t
I went at it from the other direction and only installed the ones i actually needed. But even the tool that says which ones are needed is incomplete, because it only looks at your code, and not at your cfadmin configs.
after installing "everything i needed" I still needed to add the scheduled task module and the ms sql driver.
d
The person who did the initial install (not me) installed everything, leaving me to clean up, or not. The tool said we need these, and I agree: • scheduler • sqlserver • mail • debugger • document • chart Without removing the rest I can't really tell if it missed anything.
m
Dave, thank you for reminding me of this. This was a feature request I had a while back. Essentially a "tree-shake". Instead of "scan and install", "scan and prune".