1
0
mirror of https://github.com/gryf/vmstrap.git synced 2025-12-18 12:00:31 +01:00

Extract package names common for every dostro

This commit is contained in:
2020-05-15 17:03:09 +02:00
parent 1412122aba
commit b2da549b1c

View File

@@ -20,23 +20,25 @@ else
fi fi
fi fi
COMMON_PGS=(ccze
git-review
htop
jq
mc
tmux)
centos7() { centos7() {
# 1. update # 1. update
sudo yum -y install epel-release sudo yum -y install epel-release
sudo yum -y update sudo yum -y update
# rxvt-unicode-256color to have proper terminfo # rxvt-unicode-256color to have proper terminfo
pgs="bash-completion pgs=(bash-completion
ccze
ctags ctags
gcc gcc
gcc-c++ gcc-c++
git-review
htop
jq
kernel-devel kernel-devel
make make
mc
ptpython2 ptpython2
python-devel python-devel
python-devel python-devel
@@ -55,11 +57,10 @@ centos7() {
python36-mccabe python36-mccabe
rxvt-unicode-256color rxvt-unicode-256color
the_silver_searcher the_silver_searcher
tmux vim)
vim"
# 2. install tools # 2. install tools
sudo yum install -y $pgs sudo yum install -y "${COMMON_PGS[@]}" "${PGS[@]}"
# 3. cleanup # 3. cleanup
sudo yum -y clean all sudo yum -y clean all
@@ -137,14 +138,31 @@ fedora() {
sudo yum -y update sudo yum -y update
# rxvt-unicode-256color to have proper terminfo # rxvt-unicode-256color to have proper terminfo
PGS="bash-completion vim mc htop ctags git-review the_silver_searcher
rxvt-unicode-256color tmux jq gcc gcc-c++ kernel-devel make PGS=(bash-completion
python3-ipython ptpython3 python3-jedi python3-flake8 python3-mccabe ctags
python3-pylint python3-apsw python2-pip python3-pip python3-devel gcc
python2-devel python2" gcc-c++
kernel-devel
make
ptpython3
python2
python2-devel
python2-pip
python3-apsw
python3-devel
python3-flake8
python3-ipython
python3-jedi
python3-mccabe
python3-pip
python3-pylint
rxvt-unicode-256color
the_silver_searcher
vim)
# 2. install tools # 2. install tools
sudo yum install -y $PGS sudo yum install -y "${COMMON_PGS[@]}" "${PGS[@]}"
# 3. cleanup # 3. cleanup
sudo yum -y clean all sudo yum -y clean all
@@ -209,13 +227,9 @@ ubuntu() {
sudo apt update && sudo apt -y upgrade sudo apt update && sudo apt -y upgrade
if lsb_release -cs 2>/dev/null | grep -q bionic; then if lsb_release -cs 2>/dev/null | grep -q bionic; then
PGS=(ccze PGS=(exuberant-ctags
exuberant-ctags
flake8 flake8
git-review
htop
ipython3 ipython3
mc
python-apsw python-apsw
python-flake8 python-flake8
python-jedi python-jedi
@@ -226,13 +240,9 @@ ubuntu() {
tmate tmate
vim-gtk) vim-gtk)
else else
PGS=(ccze PGS=(exuberant-ctags
exuberant-ctags
flake8 flake8
git-review
htop
ipython ipython
mc
python-apsw python-apsw
python-flake8 python-flake8
python-jedi python-jedi
@@ -244,7 +254,7 @@ ubuntu() {
fi fi
# 2. install tools # 2. install tools
sudo apt install -y "${PGS[@]}" sudo apt install -y "${COMMON_PGS[@]}" "${PGS[@]}"
# 3. cleanup # 3. cleanup
sudo apt-get autoremove -y && sudo apt-get autoclean -y sudo apt-get autoremove -y && sudo apt-get autoclean -y