stow-installed

Example:

# Install the 'stow' package.
- stow-installed

Description

Install the 'stow' package.

stow is a package that can recursively create symlinks to a source folder, in a smart way. This can be useful -- for example -- if you want to version control a folder that has files strewn across different locations in the folder hierarchy. So, instead of creating a very involved .gitignore file, you would create a folder with only the files you are interested in, version-control it, and then'stow' it into it's target location.

Variables

Name Type Default Description

pkg_mgr

string auto

the package manager to use

Examples

Example 1

Install the 'stow' package.

Code
- stow-installed
Description

This uses the default system package manager to install 'stow'. If this is run on Mac OS X, homebrew will be used. If homebrew is not available, If this is run on CentOS, the 'epel-release' package is also installed.

Example 2

Install the 'stow' package using the 'conda' package manager.

Code
- stow-installed:
    pkg_mgr: conda
Description

If the 'conda' package manager is not available, it will be installed. It will probably be necessary to activate the default conda environment (source /home/vagrant/.local/share/inaugurate/conda/bin/activate) to have 'stow' available in the path.

Example 3

Install the 'stow' package using the 'nix' package manager.

Code
- stow-installed:
    pkg_mgr: nix
Description

If the 'conda' package manager is not available, it will be installed. If the 'nix' package manager is not available, it will be installed before-hand. It might be necessary to re-login to have nix and it's PATHs properly setup.

Command-line

frecklecute stow-installed --help

Usage: frecklecute stow-installed [OPTIONS]

  Install the '[stow](https://www.gnu.org/software/stow/)' package.

  ``stow`` is a package that can recursively create symlinks to a source
  folder, in a smart way. This can be useful -- for example -- if you want
  to version control a folder that has files strewn across different
  locations in the folder hierarchy. So, instead of creating a very involved
  ``.gitignore`` file, you would create a folder with only the files you are
  interested in, version-control it, and  then'stow' it into it's target
  location.

Options:
  --pkg-mgr PKG-MGR  the package manager to use  [default: auto]
  --help             Show this message and exit.