Answer the question
In order to leave comments, you need to log in
How to make a script in Linux that will install the programs I need?
The situation is as follows: there is linux mint 19.3 Tricia, with 2GB of RAM. The other day I decided to buy another 2GB plank, so that there would be a 64-bit architecture! Accordingly, there was a question of reinstalling the OS. And the question is this: there are a number of programs I need that are stored in repositories, and I am extremely lazy to install them all from the store or write the installation command manually, so I ask you for help to tell me how to make a script that will install everything for me my favorite programs! That is, one file, which will contain a list of the packages I need! Thank you for your attention!
Answer the question
In order to leave comments, you need to log in
You can make it a little more convenient - keep the list of packages in a separate file (you can also comment on the lines), but the script will become a little more complicated:
install.sh :
#!/usr/bin/env bash
PKG_LIST=packages.txt
sed '/#/d' "$PKG_LIST" | xargs apt install -y
# Python
python3-dev
python3-venv
python3-pip
python3-setuptools
# Perl
perl
libwww-perl
libxml-rss-perl
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question