From d37f97e5481e327ca85b5a7bd4a537df32bcc686 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sun, 25 Dec 2022 11:05:03 +0000 Subject: [PATCH] Update 2 files - /software.yml - /home/dot_local/bin/executable_install-program --- home/dot_local/bin/executable_install-program | 24 +++++++++---------- software.yml | 5 ++-- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index 1f19a6f9..c21e5d45 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -457,10 +457,10 @@ async function afterInstall(packageManager) { } else if (packageManager === 'apk') { } else if (packageManager === 'apt') { try { - await $`sudo apt autoclean` - await $`sudo apt autoremove` + await $`sudo apt-get autoclean` + await $`sudo apt-get autoremove` } catch (e) { - log('error', logStage, 'Error cleaning up apt') + log('error', logStage, 'Error cleaning up apt-get') } } else if (packageManager === 'basher') { } else if (packageManager === 'binary') { @@ -493,7 +493,7 @@ async function ensurePackage(dep) { if (!target) { if (osType === 'linux') { const apk = which.sync('apk', { nothrow: true }) - const apt = which.sync('apt', { nothrow: true }) + const apt = which.sync('apt-get', { nothrow: true }) const dnf = which.sync('dnf', { nothrow: true }) const yum = which.sync('yum', { nothrow: true }) const pacman = which.sync('pacman', { nothrow: true }) @@ -504,7 +504,7 @@ async function ensurePackage(dep) { if (updateDone[packageManager] !== true) { await beforeInstall('apt-get') } - await $`sudo apt install -y ${dep}` + await $`sudo apt-get install -y ${dep}` } else if (dnf) { if (updateDone[packageManager] !== true) { await beforeInstall('dnf') @@ -559,7 +559,7 @@ async function beforeInstall(packageManager) { } else if (packageManager === 'apk') { await $`sudo apk update` } else if (packageManager === 'apt') { - await $`sudo apt update` + await $`sudo apt-get update` } else if (packageManager === 'basher') { } else if (packageManager === 'binary') { } else if (packageManager === 'brew' || packageManager === 'cask') { @@ -800,7 +800,7 @@ async function ensurePackageManager(packageManager) { log('info', logStage, `\`flatpak\` is available`) } else { const apk = which.sync('apk', { nothrow: true }) - const apt = which.sync('apt', { nothrow: true }) + const apt = which.sync('apt-get', { nothrow: true }) const dnf = which.sync('dnf', { nothrow: true }) const yum = which.sync('yum', { nothrow: true }) const pacman = which.sync('pacman', { nothrow: true }) @@ -809,12 +809,12 @@ async function ensurePackageManager(packageManager) { await $`sudo apk add flatpak` } else if (apt) { await $` - sudo apt install -y flatpak + sudo apt-get install -y flatpak if [ -f /usr/bin/gnome-shell ]; then - sudo apt install -y gnome-software-plugin-flatpak + sudo apt-get install -y gnome-software-plugin-flatpak fi if [ -f /usr/bin/plasmashell ]; then - sudo apt install -y plasmashell + sudo apt-get install -y plasmashell fi ` } else if (dnf) { @@ -913,7 +913,7 @@ async function ensurePackageManager(packageManager) { const pacman = which.sync('pacman', { nothrow: true }) const zypper = which.sync('zypper', { nothrow: true }) if (apt) { - await $`if [ -f /etc/apt/preferences.d/nosnap.pref ]; then sudo mv /etc/apt/preferences.d/nosnap.pref /etc/apt/nosnap.pref.bak; fi && sudo apt install -y snapd` + await $`if [ -f /etc/apt/preferences.d/nosnap.pref ]; then sudo mv /etc/apt/preferences.d/nosnap.pref /etc/apt/nosnap.pref.bak; fi && sudo apt-get install -y snapd` // TODO Following may be required on Kali -> https://snapcraft.io/docs/installing-snap-on-kali // systemctl enable --now snapd apparmor } else if (dnf) { @@ -1005,7 +1005,7 @@ async function installPackageList(packageManager, packages) { } else if (packageManager === 'apt') { for (let pkg of packages) { try { - await $`sudo apt install -y ${pkg}` + await $`sudo apt-get install -y ${pkg}` } catch (e) { log('error', 'apt-get Failure', `There was an error installing ${pkg} with apt-get`) } diff --git a/software.yml b/software.yml index 09112551..48bb8df2 100644 --- a/software.yml +++ b/software.yml @@ -671,7 +671,8 @@ softwarePackages: github: github.com/tmrts/boilr go: github.com/tmrts/boilr@latest bottom: - _bin: btm + _bin: bottom + _bin:brew: btm _desc: null _docs: null _github: null @@ -7141,7 +7142,7 @@ softwarePackages: _name: null _service: null bpkg: rauchg/wifi-password - brew: wifi-password + brew:darwin: wifi-password npm: wifi-password-cli windows-adk: _bin: null