Sign inSign up

electrocucaracha/pkg_mgr-init

By electrocucaracha

•Updated about 5 years ago

Image
0

1.7K

electrocucaracha/pkg_mgr-init repository overview

⁠cURL package installer

License Docker Pulls GitHub Super-Linter visitors

This project pretends to centralize and facilitate the process to install and configure some Linux projects on major different Linux Distributions.

⁠Supported distributions

NameVersion
Ubuntu16.04/18.04/20.04
CentOS7/8
OpenSUSETumbleweed/Leap

⁠How to use this script?

The install.sh⁠ bash script has been created to abstract the differences between different Linux distributions. For example, in order to install and configure Docker service the following instruction is needed:

curl -fsSL http://bit.ly/install_pkg | PKG="docker docker-compose" bash

bit.ly/install_pkg redirects to the install script in this repository and the invocation above is equivalent to:

curl -fsSL https://raw.githubusercontent.com/electrocucaracha/pkg-mgr_scripts/master/install.sh | PKG="docker docker-compose" bash
⁠Program environment variables
NameDescription
PKGPackage name(s) to be installed on the requester.(String value)
PKG_UPDATEUpdate package manager metadata information.(Boolean value)
PKG_DEBUGEnable verbose output during the execution.(Boolean value)
⁠Bindep usage

The cURL package installer can be combined with bindep tool⁠ to perform multiOS installations. The following example demostrates how to install the Portable Hardware Locality tools⁠ in the current node.

curl -fsSL http://bit.ly/install_pkg | PKG=bindep bash

cat << EOF > bindep.txt
hwloc [node]
hwloc-lstopo [node platform:suse]
EOF
curl -fsSL http://bit.ly/install_pkg | PKG="$(bindep node -b)" bash

lstopo-no-graphics

Or use the wrapper script⁠ provided to run in a single command

curl -fsSL http://bit.ly/install_bin | PKG_BINDEP_PROFILE=node bash

Tag summary

Content type

Image

Digest

Size

16.1 MB

Last updated

about 5 years ago

docker pull electrocucaracha/pkg_mgr-init