Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# warning run every command one by one with precautions
# remove nvidia-docker
sudo apt-get purge -y docker-engine docker docker-ce -y
sudo apt-get autoremove -y --purge docker-engine docker docker-ce -y
## remove unsed programs
sudo apt-get remove --purge libreoffice* -y
sudo apt-get remove libreoffice-core -y
sudo apt-get remove snapd lightdm cups chromium* -y
sudo apt-get remove libcurlpp0 -y
sudo apt-get remove thunderbird -y
sudo apt-get remove unity-lens-shopping -y
sudo apt-get purge chromium-browser thunderbird fonts-noto-cjk libreoffice-common snapd -y
cd /usr/src && sudo rm -rf cudnn_samples_v7 linux-headers-4.9.140-tegra-ubuntu18.04_aarch64 linux-headers-4.9.140-tegra-linux_x86_64
# remove docs and samples
sudo rm -rf /usr/local/cuda/doc/
sudo rm -rf /usr/local/cuda/samples/
sudo rm -rf /usr/src/cudnn_samples_v8/
sudo rm -rf /usr/src/tensorrt/data
sudo rm -rf /usr/share/visionworks
sudo rm -rf /usr/src/nvidia/graphics_demos/
sudo rm -rf /usr/src/jetson_multimedia_api/data/
## remove login message
sudo sed -i '/^[^#]*\<\>/s/^/#/' /etc/pam.d/sshd
sudo apt clean
sudo apt autoremove -y
##end of clean up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment