[FreeBSD] How to install ports collection manually in FreeBSD

[FreeBSD] How to install ports collection manually in FreeBSD

As an Administrator or a Device Drive developer you may need some utilities on the go to work in a convenient environment.
Let’s say you want to install VIM editor, then you need to have ports collection installed in your system otherwise you have to add the particular package manually.
It’s always a better idea to keep the ports collection installed in your system either while installing system or manually as explained below.

Installing ports collection manually is needed if you have not done while installing.
Please see the following to see where you have to set it up:
Distribution select step

NOTE:
Please make sure that you have a working internet connection on the system where you are going to install ports collection.

Installing ports collection:

First fetch a compressed snapshot of the ports tree.

# portsnap fetch

Extract the compressed ports tree.

# portsnap extract

Then update the ports tree.

# portsnap update

 

More information on portsnap:

You can check the manual page in your FreeBSD system to have a better idea on portsnap.

$ man portsnap

 

How to search the apps in the ports collection:

When you need an application then type the following command and see what result you get.
For vim editor type the following command:

# whereis vim

There you are.
The output of the above command tells you from where can you install vim command.

# /usr/ports/editors/vim

 

Previous [FreeBSD] How to Install FreeBSD OS, Step by step guide using a virtual machine
Next [ROM] Mokee ROM Android Lollipop 5.0.2 for LG G2 D802

About author

siba 698 posts

A B.Tech degree holder with more than 5 years of experience on Embedded Systems design domain. He has worked on Aerospace domain, NAND storage, Server storage and Wireless networking.

View all posts by this author →

You might also like

FreeBSD Guides 2 Comments

[FreeBSD] How to allow Root access on FreeBSD over ssh protocol

This post guides you on how to enable root access on FreeBSD because by default FreeBSD does not allow root access over ssh protocol. So if you need to log

FreeBSD Guides 0 Comments

[FreeBSD] How to set and unset loader variables in boot loader prompt

Important question is why you need to set and unset variables at boot time??? The answer is when something is stopping you from booting your system then this may help

FreeBSD Guides 0 Comments

[FreeBSD] How to Install FreeBSD OS, Step by step guide using a virtual machine

Take a deep breathe and be sure that you have at least an hour of time. We have to go a long way towards an important step. Before going into

0 Comments

No Comments Yet!

You can be first to comment this post!