Debian

To search for package

apt-cache search gcc

See a description of package

apt-cache show gcc

Install a package

apt install gcc

Remove a package

apt remove openmpi-bin

I use Spack to install scientific packages. Before that, install some needed dependencies

sudo apt install gcc g++ gfortran gnuplot make curl wget git

Next see the Spack tips for installing other softwares.