Update 2 files
- /software.yml - /home/dot_local/bin/executable_install-program
This commit is contained in:
parent
bbd6f312d5
commit
d37f97e548
2 changed files with 15 additions and 14 deletions
|
@ -457,10 +457,10 @@ async function afterInstall(packageManager) {
|
||||||
} else if (packageManager === 'apk') {
|
} else if (packageManager === 'apk') {
|
||||||
} else if (packageManager === 'apt') {
|
} else if (packageManager === 'apt') {
|
||||||
try {
|
try {
|
||||||
await $`sudo apt autoclean`
|
await $`sudo apt-get autoclean`
|
||||||
await $`sudo apt autoremove`
|
await $`sudo apt-get autoremove`
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('error', logStage, 'Error cleaning up apt')
|
log('error', logStage, 'Error cleaning up apt-get')
|
||||||
}
|
}
|
||||||
} else if (packageManager === 'basher') {
|
} else if (packageManager === 'basher') {
|
||||||
} else if (packageManager === 'binary') {
|
} else if (packageManager === 'binary') {
|
||||||
|
@ -493,7 +493,7 @@ async function ensurePackage(dep) {
|
||||||
if (!target) {
|
if (!target) {
|
||||||
if (osType === 'linux') {
|
if (osType === 'linux') {
|
||||||
const apk = which.sync('apk', { nothrow: true })
|
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 dnf = which.sync('dnf', { nothrow: true })
|
||||||
const yum = which.sync('yum', { nothrow: true })
|
const yum = which.sync('yum', { nothrow: true })
|
||||||
const pacman = which.sync('pacman', { nothrow: true })
|
const pacman = which.sync('pacman', { nothrow: true })
|
||||||
|
@ -504,7 +504,7 @@ async function ensurePackage(dep) {
|
||||||
if (updateDone[packageManager] !== true) {
|
if (updateDone[packageManager] !== true) {
|
||||||
await beforeInstall('apt-get')
|
await beforeInstall('apt-get')
|
||||||
}
|
}
|
||||||
await $`sudo apt install -y ${dep}`
|
await $`sudo apt-get install -y ${dep}`
|
||||||
} else if (dnf) {
|
} else if (dnf) {
|
||||||
if (updateDone[packageManager] !== true) {
|
if (updateDone[packageManager] !== true) {
|
||||||
await beforeInstall('dnf')
|
await beforeInstall('dnf')
|
||||||
|
@ -559,7 +559,7 @@ async function beforeInstall(packageManager) {
|
||||||
} else if (packageManager === 'apk') {
|
} else if (packageManager === 'apk') {
|
||||||
await $`sudo apk update`
|
await $`sudo apk update`
|
||||||
} else if (packageManager === 'apt') {
|
} else if (packageManager === 'apt') {
|
||||||
await $`sudo apt update`
|
await $`sudo apt-get update`
|
||||||
} else if (packageManager === 'basher') {
|
} else if (packageManager === 'basher') {
|
||||||
} else if (packageManager === 'binary') {
|
} else if (packageManager === 'binary') {
|
||||||
} else if (packageManager === 'brew' || packageManager === 'cask') {
|
} else if (packageManager === 'brew' || packageManager === 'cask') {
|
||||||
|
@ -800,7 +800,7 @@ async function ensurePackageManager(packageManager) {
|
||||||
log('info', logStage, `\`flatpak\` is available`)
|
log('info', logStage, `\`flatpak\` is available`)
|
||||||
} else {
|
} else {
|
||||||
const apk = which.sync('apk', { nothrow: true })
|
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 dnf = which.sync('dnf', { nothrow: true })
|
||||||
const yum = which.sync('yum', { nothrow: true })
|
const yum = which.sync('yum', { nothrow: true })
|
||||||
const pacman = which.sync('pacman', { nothrow: true })
|
const pacman = which.sync('pacman', { nothrow: true })
|
||||||
|
@ -809,12 +809,12 @@ async function ensurePackageManager(packageManager) {
|
||||||
await $`sudo apk add flatpak`
|
await $`sudo apk add flatpak`
|
||||||
} else if (apt) {
|
} else if (apt) {
|
||||||
await $`
|
await $`
|
||||||
sudo apt install -y flatpak
|
sudo apt-get install -y flatpak
|
||||||
if [ -f /usr/bin/gnome-shell ]; then
|
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
|
fi
|
||||||
if [ -f /usr/bin/plasmashell ]; then
|
if [ -f /usr/bin/plasmashell ]; then
|
||||||
sudo apt install -y plasmashell
|
sudo apt-get install -y plasmashell
|
||||||
fi
|
fi
|
||||||
`
|
`
|
||||||
} else if (dnf) {
|
} else if (dnf) {
|
||||||
|
@ -913,7 +913,7 @@ async function ensurePackageManager(packageManager) {
|
||||||
const pacman = which.sync('pacman', { nothrow: true })
|
const pacman = which.sync('pacman', { nothrow: true })
|
||||||
const zypper = which.sync('zypper', { nothrow: true })
|
const zypper = which.sync('zypper', { nothrow: true })
|
||||||
if (apt) {
|
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
|
// TODO Following may be required on Kali -> https://snapcraft.io/docs/installing-snap-on-kali
|
||||||
// systemctl enable --now snapd apparmor
|
// systemctl enable --now snapd apparmor
|
||||||
} else if (dnf) {
|
} else if (dnf) {
|
||||||
|
@ -1005,7 +1005,7 @@ async function installPackageList(packageManager, packages) {
|
||||||
} else if (packageManager === 'apt') {
|
} else if (packageManager === 'apt') {
|
||||||
for (let pkg of packages) {
|
for (let pkg of packages) {
|
||||||
try {
|
try {
|
||||||
await $`sudo apt install -y ${pkg}`
|
await $`sudo apt-get install -y ${pkg}`
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('error', 'apt-get Failure', `There was an error installing ${pkg} with apt-get`)
|
log('error', 'apt-get Failure', `There was an error installing ${pkg} with apt-get`)
|
||||||
}
|
}
|
||||||
|
|
|
@ -671,7 +671,8 @@ softwarePackages:
|
||||||
github: github.com/tmrts/boilr
|
github: github.com/tmrts/boilr
|
||||||
go: github.com/tmrts/boilr@latest
|
go: github.com/tmrts/boilr@latest
|
||||||
bottom:
|
bottom:
|
||||||
_bin: btm
|
_bin: bottom
|
||||||
|
_bin:brew: btm
|
||||||
_desc: null
|
_desc: null
|
||||||
_docs: null
|
_docs: null
|
||||||
_github: null
|
_github: null
|
||||||
|
@ -7141,7 +7142,7 @@ softwarePackages:
|
||||||
_name: null
|
_name: null
|
||||||
_service: null
|
_service: null
|
||||||
bpkg: rauchg/wifi-password
|
bpkg: rauchg/wifi-password
|
||||||
brew: wifi-password
|
brew:darwin: wifi-password
|
||||||
npm: wifi-password-cli
|
npm: wifi-password-cli
|
||||||
windows-adk:
|
windows-adk:
|
||||||
_bin: null
|
_bin: null
|
||||||
|
|
Loading…
Reference in a new issue