How to install "tree" with command-line?

132,610

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.

Share:
132,610

Related videos on Youtube

Admin
Author by

Admin

Updated on November 27, 2022

Comments

  • Admin
    Admin about 5 hours

    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?

    • Admin
      Admin almost 8 years
      apt-get update updates the list of available packages. Please read man apt-get.
  • Admin
    Admin over 5 years
    apt is an alias for apt-get, so you can use sudo apt install tree
  • Admin
    Admin over 5 years
    @ГригорийПерельман: You can use that command, but apt is a separate command, it is not an alias, even if it does use apt-get which I don't know about.
  • Admin
    Admin about 3 years
    Also note that its in the universe repo.