feat(install-script): Install packages using npm

- Use npm to install packages
- Move packages from brew to npm where available
- fix: use `brew info` to search exact package names
- chore: better comments
This commit is contained in:
Pratik Tripathy
2025-11-23 00:15:45 +05:30
parent 595858ba25
commit 24b2aacd92
8 changed files with 103 additions and 24 deletions

View File

@@ -9,7 +9,7 @@ setup() {
OS_INSTALL_COMMAND="apt-get install -y"
OS_PKG_CHECK_COMMAND="apt-cache show"
apt_setup
elif [ -f /etc/rocky-release ] || [ -f /etc/almalinux-release ] || [ -f /etc/centos-release ] || [ -f /etc/fedora-release ]; then # Rocky, Almalinux,
elif [ -f /etc/rocky-release ] || [ -f /etc/almalinux-release ] || [ -f /etc/centos-release ] || [ -f /etc/fedora-release ]; then # Fedora, CentOS, Rocky, Almalinux
OS_INSTALL_COMMAND="dnf install -y --allowerasing --skip-broken"
OS_PKG_CHECK_COMMAND="dnf list available"
dnf_setup
@@ -81,7 +81,7 @@ dnf_setup() {
}
apt_setup() {
# We are Debian or Ubuntu
# Debian/Ubuntu
[ -f /etc/os-release ] && . /etc/os-release
sudo apt-get update && sudo apt-get upgrade -y