[FreeBSD] How to install ports collection manually in FreeBSD
 

[FreeBSD] How to install ports collection manually in FreeBSD

 

This post was last updated on June 23rd, 2020 at 08:05 pm

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 How to make files Hidden in Linux
Next How to Find Exact Name of A Package by Using apt-cache in Linux?
 

About author

shibaa987
shibaa987 268 posts

Linux kernel developer and a firmware developer with an experience of 10+ years.

View all posts by this author →

You might also like

FreeBSD 0 Comments

How To Install Or Remove Packages Using Ports Collection In FreeBSD?

This post was last updated on October 15th, 2020 at 01:00 amFreeBSD provides various tools as a part of its base system. In FreeBSD, there are two ways to install

FreeBSD 0 Comments

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

This post was last updated on November 3rd, 2020 at 05:37 pmBy default FreeBSD does not allow root access over ssh protocol. So if you need to log on to

FreeBSD 0 Comments

How To Change The Hostname On A FreeBSD Machine?

The hostname is the name given to a computer so that it could be identified uniquely when connected to a network. The installer asks and setup the hostname while installing

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply