To search for package
apt-cache search gcc
See a description of package
apt-cache show gcc
Install a package
sudo apt install gcc
Remove a package
sudo apt remove openmpi-bin
If the locale is not set correctly, you can get weird errors while installing some softwares. Edit the file
/etc/locale.gen with this line
sudo locale-gen command in the terminal.
I use Spack to install scientific packages. Before that, install some needed dependencies
sudo apt install gcc g++ gfortran gnuplot make curl wget git vim
We may also want to install some Python libraries
sudo apt install python3-numpy python3-scipy python3-matplotlib python3-sympy
Next see the Spack tips for installing other softwares. openmpi will also be installed by Spack, so do not install it from apt.