How to install tree command on FreeBSD

To install tree command on FreeBSD you can use the ‘pkg’ command with’ install’ option as a root. Tree command generally used to  list contents of directories in a tree-like structure.

root@:~ # pkg install tree

Updating FreeBSD repository catalogue…
Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
Fetching packagesite.txz: 100% 6 MiB 23.0kB/s 04:27
Processing entries: 100%
FreeBSD repository update completed. 28736 packages processed.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
pkg: 1.10.1 -> 1.10.3_1

Number of packages to be upgraded: 1

3 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching pkg-1.10.3_1.txz: 100% 3 MiB 21.0kB/s 02:11
Checking integrity… done (0 conflicting)
[1/1] Upgrading pkg from 1.10.1 to 1.10.3_1…
Extracting pkg-1.10.3_1: 100%
Updating FreeBSD repository catalogue…
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
tree: 1.7.0

Number of packages to be installed: 1

39 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching tree-1.7.0.txz: 100% 39 KiB 39.7kB/s 00:01
Checking integrity… done (0 conflicting)
[1/1] Installing tree-1.7.0…
Extracting tree-1.7.0: 100%
root@:~ #

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s