Common tasks for CentOS boxes.
Common tasks for CentOS boxes.
(dprint x)
(install pkgs)
Ensure the given packages are installed. Can take a flat collection of packages, passed as symbols, strings, or keywords, or, alternatively, a map of packages to version strings.
Ensure the given packages are installed. Can take a flat collection of packages, passed as symbols, strings, or keywords, or, alternatively, a map of packages to version strings.
(install-start-stop-daemon!)
Installs start-stop-daemon on centos
Installs start-stop-daemon on centos
(installed pkgs)
Given a list of centos packages (strings, symbols, keywords, etc), returns the set of packages which are installed, as strings.
Given a list of centos packages (strings, symbols, keywords, etc), returns the set of packages which are installed, as strings.
(installed-start-stop-daemon?)
Is start-stop-daemon Installed?
Is start-stop-daemon Installed?
(installed-version pkg)
Given a package name, determines the installed version of that package, or nil if it is not installed.
Given a package name, determines the installed version of that package, or nil if it is not installed.
(installed? pkg-or-pkgs)
Are the given packages, or singular package, installed on the current system?
Are the given packages, or singular package, installed on the current system?
(maybe-update!)
Yum update if we haven't done so recently.
Yum update if we haven't done so recently.
(setup-hostfile!)
Makes sure the hostfile has a loopback entry for the local hostname
Makes sure the hostfile has a loopback entry for the local hostname
(time-since-last-update)
When did we last run a yum update, in seconds ago
When did we last run a yum update, in seconds ago
(uninstall! pkg-or-pkgs)
Removes a package or packages.
Removes a package or packages.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close