The best way to install a package on Linux is by using the package manager for your particular Linux distribution.
For example, on Ubuntu, you can use the apt package manager to install packages from the command line. To install the package “apache2”, for example, you would type the following command into the terminal:
sudo apt-get install apache2