https://github.com/d99kris/sget
Install software from source packages on Linux and macOS
https://github.com/d99kris/sget
automation build command-line command-line-tool install-script installer linux macos
Last synced: 8 months ago
JSON representation
Install software from source packages on Linux and macOS
- Host: GitHub
- URL: https://github.com/d99kris/sget
- Owner: d99kris
- License: mit
- Created: 2018-09-30T09:24:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-15T08:34:57.000Z (almost 3 years ago)
- Last Synced: 2024-07-07T00:37:46.302Z (over 1 year ago)
- Topics: automation, build, command-line, command-line-tool, install-script, installer, linux, macos
- Language: Shell
- Homepage:
- Size: 34.2 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Sget
====
| **Linux** | **Mac** |
|-----------|---------|
| [](https://github.com/d99kris/sget/actions?query=workflow%3ALinux) | [](https://github.com/d99kris/sget/actions?query=workflow%3AmacOS) |
Sget (source get) - is a small utility facilitating installation of software
from source packages, by automating the process of downloading the source and
doing configure, make, sudo make install.
It supports installation from a remote Git/Subversion repository, an URL to a
source package, a local file path to a source package or a local directory
path.
Most common package/archive formats (tar, zip, rar, etc) are supported.
It supports plain Makefile as well as several generators: autogen, cmake,
configure, qmake
Example Usage
=============
$ sudo sget install https://github.com/tmux/tmux
Why
===
Standard package managers (apt, brew, yum, etc) handling dependency resolution,
updates, etc is generally the preferred way to install software. The sget
utility mainly caters for installation of softwares not (yet) available through
package managers.
Supported Platforms
===================
Sget should work on most Linux and macOS systems.
Installation
============
Using sget
----------
Linux
curl -s -L https://raw.githubusercontent.com/d99kris/sget/master/sget | sudo bash -s -- install https://github.com/d99kris/sget
Mac
curl -s -L https://raw.githubusercontent.com/d99kris/sget/master/sget | bash -s -- install https://github.com/d99kris/sget
From source
-----------
1. Download source:
git clone https://github.com/d99kris/sget && cd sget
2. From source using sget itself:
sudo ./sget install .
3. Alternatively install and build manually:
mkdir -p build && cd build && cmake .. && make -s && sudo make install
Usage
=====
General usage syntax:
[sudo] sget [--prefix PREFIX] install PKG [PKG ...]
[sudo] sget [--prefix PREFIX] remove PKG [PKG ...]
sget --help
sget --version
Options:
PKG web link to a version controlled (Subversion or Git)
repository or web link to a source code package, or path
to a locally stored source code package
install builds and installs specified package
remove uninstalls specified package
PREFIX specifies an alternative installation prefix path
--help display this help and exit
--version output version information and exit
Examples:
sget install https://github.com/tmux/tmux # install from repository
sget install ~/Downloads/tmux-2.8.tar.gz # install local package
sget install ~/tmux-2.8 # install local dir
sget remove https://github.com/tmux/tmux # uninstall
Technical Details
=================
The test suite can be run using these commands:
mkdir -p build && cd build && cmake .. && make -s && ctest --output-on-failure
License
=======
Sget is distributed under the MIT license. See LICENSE file.
Keywords
========
install from source,linux,macos