installAptGetPackage()

Silently installs a package using the apt-get command in Linux. Install options include:

  • Install
  • Install package and recommended packages
  • Install without recommended packages
  • Install but do not upgrade
  • Reinstall
  • Download only
  • No Download - uses local packages only
  • Simulate
  • Install with autofix

Operating systems supported: Linux

Example

installAptGetPackage("ruby", "Install package and recommended packages (--install-recommends)", "All Operating Systems", "Halt on Fail")