compact_sysreqs: Compact Sysreqs

View source: R/compact_sysreqs.R

compact_sysreqsR Documentation

Compact Sysreqs

Description

Compact Sysreqs

Usage

compact_sysreqs(
  pkg_installs,
  update_cmd = "apt-get update -y",
  install_cmd = "apt-get install -y",
  clean_cmd = "rm -rf /var/lib/apt/lists/*"
)

Arguments

pkg_installs

pkg_sysreqs as vector, pak::pkg_sysreqs output

update_cmd

command used to update packages, "apt-get update -y" by default

install_cmd

command used to install packages, "apt-get install -y" by default

clean_cmd

command used to clean package folder, "rm -rf /var/lib/apt/lists/*" by default

Value

vector of compacted command to run to install sysreqs

Examples

pkg_installs <- list("apt-get install -y htop", "apt-get install -y top")
compact_sysreqs(pkg_installs)

dockerfiler documentation built on Sept. 11, 2024, 6:31 p.m.