Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How do I install "tree" via apt-get in Terminal? I have been trying to do apt-get update tree but nothing seems to happen.
apt-get update tree
Is it necessary to include sudo in the command?
Use this command in Terminal:
sudo apt-get install tree
The command apt-get update only updates the package lists. You need apt-get install and the package name to install a new package.
And yes, sudo is required as you need root privileges in order to install and remove software.
sudo apt install tree