A simple bash script to easily install Linux applications distributed as tar.gz files.
- Download the script:
curl -O https://raw.githubusercontent.com/yourusername/tarinstall/main/tarinstall- Make it executable:
chmod +x tarinstall- Move to system path:
sudo mv tarinstall /usr/local/bin/Basic usage:
tarinstall application.tar.gzInstalling Visual Studio Code:
tarinstall code-stable-x64-linux.tar.gzInstalling Postman:
tarinstall Postman-linux-x64.tar.gz- Automatically extracts tar.gz files to /opt
- Creates desktop shortcuts
- Adds program to system PATH
- Auto-detects executable files
- Searches for application icons
- Allows custom application names
- Removes previous installations
- Linux system
- sudo privileges
- tar command
- bash shell
The script will:
- Extract the contents to /opt/[appname]
- Create a symlink in /usr/local/bin
- Create a desktop entry
- Make the application globally accessible
You can run the installed application by typing its name in the terminal or finding it in your applications menu.
If this script helped you save time, consider buying me a coffee!
( (
) )
.........
| |]
\ /
`---'
PIX Key (Brazil): [email protected]
Every coffee helps fuel more open source tools! Your support keeps me coding and caffeinated. ๐