Skip to content

dev_Installing

Xmetalfanx edited this page Mar 30, 2023 · 4 revisions

Installing Applications

installApp function

Goals/Description

  • Arguments taken:

    • it take an unlimited amount of arguments.
    • it DOES display out those arguments in a line similar "Installing <arguments here>"
  • Function tasks:

    • it uses the $install var to install the selected package

      • $install is assigned based on the pmanager variable
    • Checking for software installed already:

      • This will check the list of apps and only install those not detected as installed already
  • Personal Comments

    • 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.
    • 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 detected
    • Examples
      • Arch Linux/Manjaro
        • sudo pacman -S
      • Debian/Ubuntu
        • sudo apt install
      • Fedora
        • sudo dnf install
      • OpenSuse
        • sudo zypper install
      • Solus
        • sudo eopkg install
  • How to use:
    • all that has to be done is $install <package name>
Clone this wiki locally