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.
Is it necessary to include sudo in the command?
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.
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.
apt-get which I don't know about.
–
Mar 26 '17 at 19:58
universe repo is needed. Sometimes this is not added by default, so use sudo add-apt-repository universe
– Tim D
Oct 01 '24 at 14:38
apt-get updateupdates the list of available packages. Please readman apt-get. – Marcin Kaminski Jan 10 '15 at 12:40