Implemented the commands of `uninstall` and `list`.