Pycharm Community Fast Install with Install bash Script.

Pycharm Community Fast Install with Install bash Script.

Pycharm Community Fast Install with Install bash Script.

Pycharm is the defacto power tool for pycharm development.

  • Super fast.
  • Opensource

Here is a powerful bash script to install it:

nano install.sh
# Paste the below code into it..
chmod +x install.sh
./install.sh
#!/bin/bash

# Exit on error
set -e

# Define variables
DOWNLOAD_URL="https://download.jetbrains.com/python/pycharm-community-2025.2.1.1.tar.gz"
FILENAME=$(basename "$DOWNLOAD_URL")
EXTRACT_DIR="/opt/pycharm-community"
SYMLINK_PATH="/usr/local/bin/pycharm"

# Update package lists (optional but recommended for any potential dependencies)
echo "Updating package lists..."
sudo apt update

# Install required tools if not present (wget and tar are usually installed, but ensure)
if ! command -v wget &> /dev/null || ! command -v tar &> /dev/null; then
    echo "Installing wget and tar..."
    sudo apt install -y wget tar
fi

# Download the tar.gz file
echo "Downloading PyCharm Community Edition from $DOWNLOAD_URL..."
wget -O "/tmp/$FILENAME" "$DOWNLOAD_URL"

# Extract the archive
echo "Extracting $FILENAME to $EXTRACT_DIR..."
sudo mkdir -p "$EXTRACT_DIR"
sudo tar -xzf "/tmp/$FILENAME" -C "$EXTRACT_DIR" --strip-components=1

# Clean up the downloaded file
rm "/tmp/$FILENAME"

# Create symlink for easy access
echo "Creating symlink at $SYMLINK_PATH..."
sudo ln -sf "$EXTRACT_DIR/bin/pycharm.sh" "$SYMLINK_PATH"

# Verify installation
if command -v pycharm &> /dev/null; then
    echo "Installation successful. Launch PyCharm with the command: pycharm"
else
    echo "Installation failed. Please check for errors above."
    exit 1
fi

Running it was simply a matter of inputting your root account, and in it goes:

This took a bit to install:

Once it was done - you could now easily access a virtual and powerful and opensource pycharm even over ssh.

ssh -X you@192.168.1.3

From here it is very assistive and supportive for quickly creating and testing LLM models.

Linux Rocks Every Day