I tried to install TREE via the sudo apt-get install tree command but nothing but an error happens ("sudo: apt-get: command not found"). How do I fix this?
A system built on Linux is called a "distribution".
To install a software on a distribution, you have several possibilities:
- Build the software from source,
- Install the program with a "package manager".
Almost each distribution use one package manager, most known are:
- apt-get (debian, ubuntu)
- pacman (arch)
- yum (fedora)
Each package manager has its syntax, type
man <package manager>.
Build from source
It will depends on the software you want to install, but in most cases:
- get the sources:
- go to software web page
- download the source (.tar.gz, .tgz, .zip... file)
- uncompress it
# in software source directory ./configure make make install