#! /bin/bash

sudo apt update -y
# install all programms from the install.list
cat install.list | xargs sudo apt-get -y install
# uninstal all programms from the list
cat uninstall.list | xargs sudo apt -y purge
# download additional packages 
cat download.list | xargs sudo wget
# install the packages
sudo apt install -y ./*.deb
# set up flatpack
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo 
# install languages by ISO 639-1 short
for l in en uk ru ar; do
	sudo apt -y install $(check-language-support -l $l)
done
# import panel settings from file
xfce4-panel-profiles load default_panel.tar.bz2
# clean the system
sudo apt update -y
sudo apt full-upgrade -y
sudo apt autoremove -y
sudo apt clean -y 
sudo apt autoclean -y