Let us suppose we are going to use Quantum-ESPRESSO 6.2.1 (if you would like to use the WEST code, use Quantum-ESPRESSO 6.1).
Let us first make directories for source codes, pseudopotentials, and calculations for Quantum-ESPRESSO in the home directory, for e.g.
$ mkdir -p QE/src $ mkdir -p QE/pseudo $ mkdir -p QE/out
Download qe-6.2.1 from gitlab and move it to the source directory (in the current example, $(HOME)/QE/src).
Expand the source code, e.g.,
$ gzip -c q-e-qe-6.2.1.tar.gz | tar xvf -
and get q-e-qe-6.2.1. In the following this is renamed as
$mv q-e-qe-6.2.1 qe-6.2.1