PlantUML Installation Script
This project provides a Bash script to install PlantUML on Debian or Ubuntu systems. The script checks for necessary dependencies, installs them if needed, and ensures that the latest version of PlantUML is installed.
Prerequisites
- Debian or Ubuntu Linux distribution
curl
installed on your system
Usage
- Clone the repository or download the
install-plantuml.sh
script.
- Make the script executable:
chmod +x install-plantuml.sh
- Run the script:
./install-plantuml.sh
What the Script Does
- Checks the Linux distribution: Ensures the script is running on Debian or Ubuntu.
- Checks if PlantUML is installed: If installed, prompts the user to uninstall it.
- Checks if JRE is installed: If not, prompts the user to install it.
- Checks if Graphviz is installed: If not, prompts the user to install it.
- Checks the current version of PlantUML: If installed, retrieves the version number.
- Fetches the latest version of PlantUML: From the GitHub API.
- Compares versions: Downloads and installs the latest version if it is newer.
- Creates a script to run PlantUML: Places it in
/usr/bin/plantuml
.
Notes
- The script requires
sudo
privileges to install packages and place files in system directories.
- Ensure you have an active internet connection to download dependencies and PlantUML.
Uninstalling PlantUML
To uninstall PlantUML after using this script, run the following command:
sudo rm /usr/bin/plantuml
sudo rm -rf /opt/plantuml/
Once you have removed the files, you can also uninstall the dependencies IF you no longer need them:
sudo apt remove --purge graphviz default-jre
License
This project is licensed under the MIT License. See the LICENSE
file for details.