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

View File

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

View File

@ -112,6 +112,8 @@ OS__INSTALL_MANAGED_DEPENDENCIES() {
return 0 return 0
} }
##########################################
UPDATE_REPOSITORIES__arch() { yay -Syu; } UPDATE_REPOSITORIES__arch() { yay -Syu; }
INSTALL_MANAGED__arch() { INSTALL_MANAGED__arch() {
local TARGET="$1" local TARGET="$1"
@ -131,6 +133,8 @@ INSTALL_MANAGED__arch() {
} }
} }
##########################################
UPDATE_REPOSITORIES__debian() { sudo apt-get update && sudo apt-get upgrade; } UPDATE_REPOSITORIES__debian() { sudo apt-get update && sudo apt-get upgrade; }
INSTALL_MANAGED__debian() { INSTALL_MANAGED__debian() {
STATUS "checking / installing '$1'" 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() { INSTALL_MANAGED__fedora() {
STATUS "checking / installing '$1'" STATUS "checking / installing '$1'"
sudo dnf install -y $1 \ sudo dnf install -y $1 \
@ -149,6 +163,8 @@ INSTALL_MANAGED__fedora() {
; ;
} }
##########################################
UPDATE_REPOSITORIES__macos() { brew update && brew upgrade; } UPDATE_REPOSITORIES__macos() { brew update && brew upgrade; }
INSTALL_MANAGED__macos() { INSTALL_MANAGED__macos() {
STATUS "checking / installing '$1'" STATUS "checking / installing '$1'"
@ -158,6 +174,8 @@ INSTALL_MANAGED__macos() {
; ;
} }
##########################################
UPDATE_REPOSITORIES__generic() { return 0; } UPDATE_REPOSITORIES__generic() { return 0; }
INSTALL_MANAGED__generic() { INSTALL_MANAGED__generic() {
command -v $1 >/dev/null 2>&1 \ command -v $1 >/dev/null 2>&1 \