Installation
Currently, SAReq can be installed using one of the following two methods:
- Using
go install - Downloading pre-built binaries
Using go install
To install SAReq using this method, ensure you have a latest version of Go installed on your system. Then, run the following command in your terminal:
go install github.com/im-varun/sareq@latest
To verify the installation, you can run:
sareq --version
# or sareq version
This should display the installed version of SAReq. If running the above command results in a "command not found" error, ensure that your Go binary directory (usually $GOPATH/bin or $HOME/go/bin) is included in your system's PATH environment variable. This should fix the "command not found" issue in most cases.
Downloading Pre-built Binaries
Pre-built binaries for SAReq are available for various operating systems (Windows, Linux, macOS) and architectures (amd64, arm64), and can be downloaded directly from SAReq's GitHub Releases page.
Follow these steps to ensure a successful installation:
-
Navigate to the GitHub Releases page of SAReq.
-
Download the appropriate archive file for your operating system and architecture along with its corresponding
.sha256checksum file. -
Verify the integrity of the downloaded archive using the SHA256 checksum provided in the
.sha256file. To do this, make sure the archive file and the.sha256file are in the same directory, then run the following command based on your operating system:- Windows
- Linux
- macOS
Get-FileHash -Algorithm SHA256 NAME_OF_DOWNLOADED_ARCHIVE.zipsha256sum NAME_OF_DOWNLOADED_ARCHIVE.tar.gzshasum -a 256 NAME_OF_DOWNLOADED_ARCHIVE.tar.gzCompare the output hash with the contents of the
.sha256file to ensure they match. If they do not match, please do not proceed with the installation steps below, and instead, re-download the files. -
Once the checksum is verified, extract the contents of the downloaded archive to a directory of your choice.
-
Add the directory containing the extracted
sareqexecutable to your system's PATH environment variable. This allows you to run SAReq from any terminal window. -
To verify the installation, open a new terminal window and run:
sareq --version
# or sareq versionThis should display the installed version of SAReq indicating that the installation was successful.
Other Installation Methods
Support for additional installation methods, such as package managers like Scoop and Homebrew, is currently under development. Stay tuned for updates in future releases!