Scripts List
Scripts List
This document lists all available installation scripts in the project. Each script provides cross-platform installation support for specific tools and software.
Available Scripts
Base Utilities
install-curl.sh - curl Installation
curl is a command-line tool for transferring data with URLs.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-curl.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-curl.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-curl.sh | bash -s -- --network=in-china
install-wget.sh - wget Installation
wget is a command-line utility for downloading files from the web.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-wget.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-wget.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-wget.sh | bash -s -- --network=in-china
install-git.sh - Git Installation
Git is a distributed version control system for tracking changes in source code.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-git.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-git.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-git.sh | bash -s -- --network=in-china
Development Tools
install-node.sh - Node.js Installation
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-node.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-node.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-node.sh | bash -s -- --network=in-china
install-docker.sh - Docker Installation
Docker is a platform for developing, shipping, and running applications in containers.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-docker.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-docker.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-docker.sh | bash -s -- --network=in-china
install-gdal.sh - GDAL Installation
GDAL (Geospatial Data Abstraction Library) is a translator library for raster and vector geospatial data formats.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-gdal.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-gdal.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-gdal.sh | bash -s -- --network=in-china
System Utilities
install-htop.sh - htop Installation
htop is an interactive process viewer for Unix systems.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-htop.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-htop.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-htop.sh | bash -s -- --network=in-china
install-tmux.sh - tmux Installation
tmux is a terminal multiplexer that allows multiple terminal sessions to be accessed simultaneously.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-tmux.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-tmux.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-tmux.sh | bash -s -- --network=in-china
install-7zip.sh - 7Zip Installation
7Zip is a file archiver with high compression ratio.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-7zip.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-7zip.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-7zip.sh | bash -s -- --network=in-china --7zip-version=23.01
install-xz.sh - XZ Installation
XZ is a compression utility with high compression ratio, useful for compressing and decompressing .xz files.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-xz.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-xz.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-xz.sh | bash -s -- --network=in-china
install-tree.sh - tree Installation
tree is a command-line utility that displays directory structures in a tree-like format.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-tree.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-tree.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-tree.sh | bash -s -- --network=in-china
File and Data Processing
install-jq.sh - jq Installation
jq is a lightweight and flexible command-line JSON processor.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-jq.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-jq.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-jq.sh | bash -s -- --network=in-china
install-zip.sh - zip/unzip Installation
zip and unzip are utilities for creating and extracting ZIP archives.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-zip.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-zip.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-zip.sh | bash -s -- --network=in-china
install-p7zip.sh - p7zip Installation
p7zip is a command-line version of 7-Zip for Unix-like systems.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-p7zip.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-p7zip.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-p7zip.sh | bash -s -- --network=in-china
Web Services
install-nginx.sh - nginx Installation
nginx is a web server that can also be used as a reverse proxy, load balancer, and HTTP cache.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-nginx.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-nginx.sh | bash
# With options
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-nginx.sh | bash -s -- --network=in-china
Database Synchronization Tools
syncdb-postgresql.sh - PostgreSQL Data Synchronization
A tool for synchronizing data between different PostgreSQL database instances.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/syncdb-postgresql.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/syncdb-postgresql.sh | bash
# With options (syncing from one database to another)
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/syncdb-postgresql.sh | bash -s -- \
--from-hostname=source-db.example.com --from-port=5432 --from-username=postgres --from-password=password --from-database=source_db \
--to-hostname=target-db.example.com --to-port=5432 --to-username=postgres --to-password=password --to-database=target_db \
--network=in-china
syncdb-mysql.sh - MySQL Data Synchronization
A tool for synchronizing data between different MySQL database instances.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/syncdb-mysql.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/syncdb-mysql.sh | bash
# With options (syncing from one database to another)
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/syncdb-mysql.sh | bash -s -- \
--from-hostname=source-db.example.com --from-port=3306 --from-username=root --from-password=password --from-database=source_db \
--to-hostname=target-db.example.com --to-port=3306 --to-username=root --to-password=password --to-database=target_db \
--network=in-china
syncdb-mongo.sh - MongoDB Data Synchronization
A tool for synchronizing data between different MongoDB database instances.
Command line usage:
# Using curl
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/syncdb-mongo.sh | bash
# Using wget
wget -qO- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/syncdb-mongo.sh | bash
# With options (syncing from one database to another)
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/syncdb-mongo.sh | bash -s -- \
--from-hostname=source-db.example.com --from-port=27017 --from-username=root --from-password=password --from-database=source_db \
--to-hostname=target-db.example.com --to-port=27017 --to-username=root --to-password=password --to-database=target_db \
--db-version=4.4 --network=in-china
Common Parameters
All scripts support the following common parameters:
--network=in-china
: Use China-optimized mirror sources for faster downloads--debug
: Enable debug mode for detailed output--help
: Display help information--version
: Show script version
Supported Operating Systems
All scripts are tested and supported on:
- Ubuntu: 20.04, 22.04, 24.04 (AMD64)
- Debian: 11.9, 12.2 (AMD64)
- Fedora: 41 (AMD64)
- Red Hat Enterprise Linux: 8.10, 9.6 (AMD64)
Generally supports all sub-versions with the same major version, such as Debian 11.8/12.1, etc.
Usage Examples
Quick Installation
# Install Git directly
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-git.sh | bash
# Install Node.js with China network optimization
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-node.sh | bash -s -- --network=in-china
Local Usage
# Clone the repository
git clone https://github.com/hz-9/env-scripts.git
cd env-scripts
# Use scripts directly
./dist/install-git.sh --help
./dist/install-docker.sh --network=in-china
Batch Installation
# Install multiple tools
for script in git node docker nginx; do
curl -o- https://raw.githubusercontent.com/hz-9/env-scripts/master/dist/install-$script.sh | bash -s -- --network=in-china
done
Development Information
- Base Library: All scripts depend on
__base.sh
for common functionality - Testing: Each script has comprehensive tests in the
tests/
directory - Building: Scripts are built from source in
scripts/
to production versions indist/
- Documentation: See Testing Guide for development and testing procedures