-
Notifications
You must be signed in to change notification settings - Fork 1
/
dnf.sh
executable file
·134 lines (126 loc) · 2.67 KB
/
dnf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#! /usr/bin/bash
set -eEuo pipefail
sudo dnf update
#sudo dnf install
# install yarn
if [[ $(which yarn &>/dev/null) -ne 0 ]]; then
curl -o- -L https://yarnpkg.com/install.sh | bash
fi
function install {
if [[ $(which "$1" &>/dev/null) -ne 0 ]]; then
echo "Installing: ${1}..."
sudo dnf install -y "$1"
else
echo "Already installed: ${1}"
fi
}
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo
# setup kubectl
cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-\$basearch
enabled=1
gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF
# enable rpm fusion repo
install "https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm"
install "https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm"
install awscli
install alacritty
install akmod-nvidia
install autoconf
install autojump
install bat
install bison
install bzip2
install dbus-devel
install docker-ce
install docker-ce-cli
install containerd.io
install docker-compose-plugin
install direnv
install dunst
install rofi
install cmake
install curl
install conky
install exa
install feh
install firefox
install fd-find
install fzf
install gh
install gcc
install gcc-c++
install git
install git-delta
install gpg2
# https://github.com/tj/git-extras/blob/master/Commands.md
install git-extras
install gdbm-devel
install helm
install hub
install htop
install ImageMagick
install i3
install i3lock
install i3status
install jemalloc-devel
install jq
install kubectl
install k9s
install libconfig-devel
install libffi-devel
install libdrm-devel
install libev-devel
install libX11-devel
install libX11-xcb
install libXext-devel
install libxcb-devel
install libXScrnSaver
install libyaml-devel
install lxappearance
install make
install mesa-libGL-devel
install meson
install ncurses-devel
install neofetch
install npm
install neovim
install openssl
install openssl-devel
install pcre-devel
install picom
install pixman-devel
install python3-neovim
install polybar
install postgresql
install ranger
install readline
install readline-devel
install sqlite
install sqlite-devel
install strace
install the_silver_searcher
install thefuck
install tmux
install tree
install uthash-devel
install wget
install xbacklight
install xcb-util-image-devel
install xcb-util-renderutil-devel
install xorg-x11-proto-devel
install xz
install xclip
install xinput
install xset
install xss-lock
install zlib
install zlib-devel
install zsh-autosuggestions