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

FreeBSD14.3 : Initial setting (Update 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

Now you can connect via SSH from TeraTerm on Windows (see the default settings for other operating systems for settings in TeraTerm).

1. Binary Update

Display of kernel and other version information

Get all available binary updates (security updates)
There was no update this time

Install updates or upgrades

Restart the server to boot with the installed image

Check for updated version

2. Pkgng

2.1 Package system (pkgng) first run configuration

Bring up to date.

2.2 Pkg command usage

1️⃣ Application Search

For example, if you are looking for Mysql8

2️⃣ Install Application

Install curl as an example

3️⃣ Obtaining information about installed packages

To retrieve information about the curl you just installed

4️⃣Deleting Applications

5️⃣ Application Status

6️⃣ See application update status

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

7️⃣ Update Packages

To update all packages

3 Installing the Ports Collection

Since portsnap has been removed in FreeBSD14, use git to download and update the ports collection.

1️⃣ Install git

When installing from ports

When installing with pkg

2️⃣Port Collection Installation
Check out a copy of the HEAD branch of the ports tree
If there is already a Port Collection, delete it.

Update /usr/ports

3️⃣ perl5 upgrade

You will need “perl5 40” to upgrade.
Copy and edit the “make” configuration file.

Uninstall perl5.36

git has been removed and should be re-installed.

4️⃣ Maintenance tools for ports

Install “ports” and ‘portupgrade’ to maintain “ports”.

5️⃣ Updating INDEX

To see the status of the database

If there is an “=” mark, the latest version is installed.
If there is a “<” mark, there is a newer version in “ports”.

6️⃣ Upgrading ports

Update “ports” with newer versions as a result of the above checks.

Copied title and URL