Skip to content

dev_Installing

Xmetalfanx edited this page Mar 28, 2023 · 4 revisions

Installing Applications

installApp

installApp is the name of the function and

  • it take an unlimited amount of arguments.
  • it DOES (use to be "echo out" but not fancy_messsage's out ... same idea ) display out those arguments in a line similar "Installing "
  • it then uses the $install var to install the selected -$install is assigned based on the pmanager variable
    • debian or ubuntu: apt
    • fedora: dnf
    • opensuse: zyppers
    • solus: eopkg
  • Best used when:
    • I think this is best when installing something from a default repo or AFTER the needed sources (PPA? RPMFusion? Pacman repo?) are added already.
  • Checking for software installed already:
    • This will check the list of apps and only install those not detected as installed already
  • IMPORTANT NOTE:
    • I cant remember why this is the case but each argument in the list passed to installApp has to be in seperate double quotes for the checking part of installApp
      • ... otherwise it's all detected as one single string, I think.

$install variable

  • This is based on the package manager

  • Examples

    • Arch Linux/Manjaro
      • sudo pacman -S
    • Debian/Ubuntu
      • sudo apt install
    • Fedora
      • sudo dnf install
    • OpenSuse
      • sudo zypper install
    • Solus
      • sudo eopkg install
  • all that has to be done is '$install '

Clone this wiki locally