業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

FreeBSD15.0 : Initial Setup (Updating Binaries, Packages and Ports Collection)

After installing FreeBSD, we will start building the server, but it is difficult to work on the console screen, so we will change the SSH connection settings for now in order to operate the server from Windows using TeraTerm or other software.
The OpenSSH server allows password authentication login by default.
If the service is enabled, you can log in remotely.
Confirm validity of sshd service

You can now connect via SSH from Tabby Terminal on Windows.

1. Binary Update

Displaying version information such as kernel version

Get all available binary updates (security updates)
There were no updates this time.

Install updates or upgrades

Restart the server to boot from the installed image.

Check the updated version

2. Pkgng

2.1Initial Configuration for Package System (pkgng)

Update to the latest version.

2.2 How to Use the Pkg Command

1️⃣ Application Search

For example, when searching for MySQL 8

2️⃣ Install the application

For example, installing curl

3️⃣ Retrieving information about installed packages

To retrieve information about the curl you just installed,

4️⃣ Application Removal

5️⃣ Application Status

6️⃣ Check the application update status

>: If a newer version than the one currently installed has been released
=: If a version equivalent to the one currently installed has been released
<: If an older version than the one currently installed is released

7️⃣ Updating Packages

To update all packages

3 Installing the Ports Collection

1️⃣ Install Git

When installing from ports

When installing via pkg

2️⃣ Installing Port Collection
Check out a copy of the HEAD branch of the ports tree
If you already have a Port Collection, delete it beforehand

Update /usr/ports

3️⃣ Perl 5 Upgrade

You will need "perl5 42", so please upgrade.
 Copy and edit the configuration file for "make".

Since Git has been removed, please reinstall it.

4️⃣ Maintenance Tools for Ports

Install the "ports" and "portupgrade" tools for maintaining ports.

5️⃣ Before starting the upgrade, read the /usr/ports/UPDATING file to check for important changes or items requiring manual intervention.

6 .Bulk Upgrade Ports

To check upgrades individually, add the -i option. 

Copied title and URL