setup for macos / fedora stuff

This commit is contained in:
Wryn (yage) Wagner 2025-02-21 15:56:07 -07:00
parent 9aac8ab514
commit 623828461e
Signed by: wrynegade
SSH Key Fingerprint: SHA256:zBGO05Uz1oT7pnehoPelgUmYX632oFjt3MBH0MlEvrs
3 changed files with 27 additions and 1 deletions

View File

@ -4,7 +4,10 @@ bat
binutils
bison
cmake
containerd.io
cowsay
docker-ce
docker-ce-cli
feh
figlet
file
@ -14,6 +17,7 @@ fzf
gcc
gcc-c++
gettext
gnupg2
go
htop
java-latest-openjdk
@ -32,6 +36,7 @@ python3-devel
python3-pip
python3-pylint
python3-virtualenv
redis
ripgrep
rust
sed

View File

@ -16,9 +16,11 @@ gcc
gettext
go
gpatch
gpg
grep
gsed
htop
iproute2mac
jq
libtool
lolcat
@ -32,6 +34,7 @@ openssh
pkg-config
pylint
python
python-setuptools
ripgrep
rust
tmux

View File

@ -112,6 +112,8 @@ OS__INSTALL_MANAGED_DEPENDENCIES() {
return 0
}
##########################################
UPDATE_REPOSITORIES__arch() { yay -Syu; }
INSTALL_MANAGED__arch() {
local TARGET="$1"
@ -131,6 +133,8 @@ INSTALL_MANAGED__arch() {
}
}
##########################################
UPDATE_REPOSITORIES__debian() { sudo apt-get update && sudo apt-get upgrade; }
INSTALL_MANAGED__debian() {
STATUS "checking / installing '$1'"
@ -140,7 +144,17 @@ INSTALL_MANAGED__debian() {
;
}
UPDATE_REPOSITORIES__fedora() { sudo dnf update && sudo dnf upgrade; }
##########################################
UPDATE_REPOSITORIES__fedora() {
: \
&& sudo dnf update \
&& sudo dnf upgrade \
&& sudo dnf install -y dnf-plugins-core \
&& sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo \
;
}
INSTALL_MANAGED__fedora() {
STATUS "checking / installing '$1'"
sudo dnf install -y $1 \
@ -149,6 +163,8 @@ INSTALL_MANAGED__fedora() {
;
}
##########################################
UPDATE_REPOSITORIES__macos() { brew update && brew upgrade; }
INSTALL_MANAGED__macos() {
STATUS "checking / installing '$1'"
@ -158,6 +174,8 @@ INSTALL_MANAGED__macos() {
;
}
##########################################
UPDATE_REPOSITORIES__generic() { return 0; }
INSTALL_MANAGED__generic() {
command -v $1 >/dev/null 2>&1 \