65 lines
1.4 KiB
Bash
Executable File
65 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
SELECTED_INSTALL_DIR=$1
|
|
|
|
. ~/.local/opt/script_utils/parse-package-managers-params.bash
|
|
|
|
if [ "${RUN[pacman]}" = "1" ]
|
|
then
|
|
# Install arch packages
|
|
echo "Installing Arch packages..."
|
|
sudo xargs -a $SELECTED_INSTALL_DIR/pacman pacman -S --noconfirm --needed
|
|
|
|
echo "Installing packages from AUR using aurfetch..."
|
|
while read p; do
|
|
aurfetch install -q $p
|
|
done <$SELECTED_INSTALL_DIR/AUR
|
|
fi
|
|
|
|
if [ "${RUN[apt]}" = "1" ]
|
|
then
|
|
echo "Installing apt packages..."
|
|
sudo xargs -a $SELECTED_INSTALL_DIR/apt apt install
|
|
fi
|
|
|
|
if [ "${RUN[dnf]}" = "1" ]
|
|
then
|
|
echo "Installing dnf packages..."
|
|
sudo xargs -a $SELECTED_INSTALL_DIR/dnf dnf install
|
|
fi
|
|
|
|
if [ "${RUN[brew]}" = "1" ]
|
|
then
|
|
echo "Installing brew packages..."
|
|
brew bundle --file $SELECTED_INSTALL_DIR/Brewfile
|
|
fi
|
|
|
|
if [ "${RUN[flatpak]}" = "1" ]
|
|
then
|
|
echo "Installing flatpak packages..."
|
|
xargs -a $SELECTED_INSTALL_DIR/flatpak flatpak install
|
|
fi
|
|
|
|
if [ "${RUN[gem]}" = "1" ]
|
|
then
|
|
echo "Installing gems..."
|
|
while read gem; do
|
|
gem install $gem
|
|
done <$( cat $SELECTED_INSTALL_DIR/gem | awk '{print $1}')
|
|
fi
|
|
|
|
if [ "${RUN[pip2]}" = "1" ]
|
|
then
|
|
echo "Installing python2 packages..."
|
|
pip2 install -r $SELECTED_INSTALL_DIR/pip2
|
|
fi
|
|
|
|
if [ "${RUN[pip3]}" = "1" ]
|
|
then
|
|
echo "Installing python3 packages..."
|
|
pip3 install -r $SELECTED_INSTALL_DIR/pip3
|
|
fi
|
|
|
|
echo "Please install npm packages manually... List of these is located in $SELECTED_INSTALL_DIR/npm"
|
|
echo "DONE!"
|