uninstall tesseract and dependencies in ubu t code example Example: uninstall tesseract 4 sudo apt-get autoremove --purge tesseract-ocr