Prison alternatives

Recently a former friend of 20 years completed his trial for possession of csam. He had thousands of images and videos and he also was found to have been manipulating youth for selfies, then trading them on the deep web for more. All incredibly malicious and dangerous. It all went back to around the time we met and had been ongoing. He got a spot on the SO list and 2 years community service.

Obviously I'm very close to this situation but I am at a loss for words. I truly believe the prison system needs to be abolished, but what kind of consequences are we aiming for in an anarchist context? Because I feel like a hypocrite being angry at the system for not throwing him in a maximum security prison, and I know it is partly due to my ignorance on this subject. Would situations like this result in banishment? Something more severe? Something more healing?