Informatii generale

vineri, 28 ianuarie 2022

Remove older python from Ubuntu (Linux)

 My Linux machine got clogged over the time with various versions of various applications. One of them is python 2.7 and python 3 in the same time. It simply complicates the things, so I decided to remove python 2.7. I found that a safe way was:

# Remove first python2.7
sudo apt purge -y python2.7-minimal

# Since I already have python3, I want it as regular python 
sudo ln -s /usr/bin/python3 /usr/bin/python

# Similar for pip
sudo apt install -y python3-pip
sudo ln -s /usr/bin/pip3 /usr/bin/pip

# This command confirms that python is python 3
python --version

Arduino removal from Ubuntu (Linux)

If it is installed via apt-get install arduino, then use apt-get uninstall arduino .

If it is installed from a tar.gz, then use the ./uninstall.sh

If still you can find arduino among applications, then give it a try snap remove arduino