Created
July 25, 2022 17:40
-
-
Save lakshanthad/8cde9964ed7749fa74c231b9c0a289e4 to your computer and use it in GitHub Desktop.
Remove around 40% of space on Jetson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove unnecessary packages, clean apt cache and remove thunderbird, libreoffice | |
apt update | |
apt autoremove -y | |
apt clean | |
apt remove thunderbird libreoffice-* -y | |
# Remove samples | |
rm -rf /usr/local/cuda/samples \ | |
/usr/src/cudnn_samples_* \ | |
/usr/src/tensorrt/data \ | |
/usr/src/tensorrt/samples \ | |
/usr/share/visionworks* ~/VisionWorks-SFM*Samples \ | |
/opt/nvidia/deepstream/deepstream*/samples | |
# Remove local repos | |
apt purge cuda-repo-l4t-*local* libvisionworks-*repo -y | |
rm /etc/apt/sources.list.d/cuda*local* /etc/apt/sources.list.d/visionworks*repo* | |
rm -rf /usr/src/linux-headers-* | |
# Remove GUI | |
apt-get purge gnome-shell ubuntu-wallpapers-bionic light-themes chromium-browser* libvisionworks libvisionworks-sfm-dev -y | |
apt-get autoremove -y | |
apt clean -y | |
# Remove Static libraries | |
rm -rf /usr/local/cuda/targets/aarch64-linux/lib/*.a \ | |
/usr/lib/aarch64-linux-gnu/libcudnn*.a \ | |
/usr/lib/aarch64-linux-gnu/libnvcaffe_parser*.a \ | |
/usr/lib/aarch64-linux-gnu/libnvinfer*.a \ | |
/usr/lib/aarch64-linux-gnu/libnvonnxparser*.a \ | |
/usr/lib/aarch64-linux-gnu/libnvparsers*.a | |
# Remove additional 100MB | |
apt autoremove -y | |
apt clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment