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?
1 Answer
Distribution
A system built on Linux is called a "distribution".
Distribution examples:
- Ubuntu
- Debian
- Fedora
- Arch
- OpenSuse
- ...
To install a software on a distribution, you have several possibilities:
- Build the software from source,
- Install the program with a "package manager".
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
build it:
# in software source directory ./configure make make install
-
Okay, so I presume that I download the source because everything else doesn't work?– ErgkjrDec 11, 2015 at 12:21
-
I think so. Downloald the tgz file from tree site (StefanR gives you the link), unzip it, and try to build it.– MathieuDec 11, 2015 at 12:24
-
I also often install things from source on Debian, even althought that distro has a very nice pacakge management. I do it because when I install from source I get newer versions and features.– DanielDec 11, 2015 at 12:24
apt-get
writes?