How To Install Freebsd Ports

Table of contents:

How To Install Freebsd Ports
How To Install Freebsd Ports

Video: How To Install Freebsd Ports

Video: How To Install Freebsd Ports
Video: Installing a FreeBSD GUI from Ports 2024, May
Anonim

Most of the novice FreeBsd users are faced with the problem of lack of necessary ports in the assembly. There are several simple methods to solve this problem, thanks to which even beginners can easily install the necessary ports on their system.

How to install freebsd ports
How to install freebsd ports

It is necessary

a collection of ports

Instructions

Step 1

First, make sure that you have gained access to the root user, since all actions are carried out on behalf of him. To gain this access, enter login root in the console. Remember to use the official server with the ports collection ftp://ftp. FreeBSD.org/pub/FreeBSD/ports/packages. After that, decide with which program you will carry out the installation.

Step 2

To run the Sysinstall utility, enter the following line in the console: / usr / sbin / sysinstall. Then open Configure, Distributions, Ports (press respectively 3 keys: 2 times Enter and 1 time "Space") and select the method of loading the collection of ports (Internet protocols, flash media, CDs, etc.)

Step 3

Another utility for setting up ports is the PortSnap program. To do this, log in to the system again as root. Load the ports by typing portsnap fetch into the console, then unzip the ports at startup with "portsnap extract". If the last command was previously executed, proceed with the update (portsnap update). It is also possible to configure port updates by time frame. To do this, go to the / etc / crontab directory and enter the command "0 3 * * * root / usr / sbin / portsnap cron" (updated once a month).

Step 4

To install ports using the CVSup utility, first log in as root. Copy the file / usr / share / examples / cvsup / ports-supfile to any other directory and then edit it. Change the CHANGE_THIS. FreeBSD.org value to the address of the nearest CVSup server. Follow this link https://www.freebsd.org/doc/en/books/handbook/cvsup.html#CVSUP-MIRRORS for a list of servers. After all these manipulations, start CVSup by entering the line "# cvsup -g -L 2 / root / ports-supfile".

Recommended: