FreeBSD - Basis

FreeBSD

/etc/make.conf

DOC_LANG=de_DE.ISO8859-15 de_DE.ISO8859-1 en_US.ISO8859-1
WITHOUT_X11=yes
OPTIONS_SET+=AUTHLIB

/etc/rc.conf

saver="NO"
font8x8="iso-8x8"
font8x14="iso-8x14"
font8x16="iso-8x16"
scrnmap="NO"
keyrate="normal"
keymap="german.iso"

/etc/profile

LANG=de_DE.ISO8859-1; export LANG
MM_CHARSET=ISO-8859-1; export MM_CHARSET
LC_ALL=; export LC_ALL

~/.cshrc

setenv LC_ALL de_DE.ISO8859-1
setenv  EDITOR  ee

ports

# portsnap fetch extract
# portsnap fetch update

portmaster

# cd /usr/ports/ports-mgmt/portmaster
# make install clean

ports prüfen

# pkg version -vIL=

ports updaten

# portmaster -aD

Bei Problemen hier Lösung suchen

# cat /usr/ports/UPDATING

FreeBSD update

# freebsd-update fetch
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 12.0-RELEASE from update4.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata patches.. done.
Applying metadata patches... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 28 patches.....10....20.... done.
Applying patches... done.
(END)
~
~   
The following files will be updated as part of updating to 12.0-RELEASE-p13:
/bin/freebsd-version
/boot/kernel/ipsec.ko
/boot/kernel/kernel
.
.
.
/usr/lib32/libfetch.so.6
/usr/lib32/libfetch_p.a
/usr/sbin/nologin
(END)

WARNING: FreeBSD 12.0-RELEASE-p12 HAS PASSED ITS END-OF-LIFE DATE.
Any security issues discovered after Sat Feb 29 01:00:00 CET 2020
will not have been corrected.

# freebsd-update install
src component not installed, skipped
Installing updates... done.

# reboot

FreeBSD Version prüfen

# freebsd-version -ku
12.0-RELEASE-p13
12.0-RELEASE-p13

Auf neues Release wechseln

# screen -RR 
# freebsd-update upgrade -r 12.2-RELEASE
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 12.0-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata files... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic kernel/generic-dbg world/base world/doc world/lib32

The following components of FreeBSD do not seem to be installed:
world/base-dbg world/lib32-dbg

Does this look reasonable (y/n)?   y

Fetching metadata signature for 12.2-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 12.0-RELEASE for merging... done.
Preparing to download files... done.
Fetching 11257 patches.....10....20....30....40....50....60....70....
.
.
.
.. done.
Applying patches... done.
Fetching 11031 files... done.
Attempting to automatically merge changes in files... done.

The following changes, which occurred between FreeBSD 12.0-RELEASE and
FreeBSD 12.2-RELEASE have been merged into /etc/group:
Does this look reasonable (y/n)? y
.
.
To install the downloaded upgrades, run "/usr/sbin/freebsd-update install".
# freebsd-update install
src component not installed, skipped
Installing updates...
Kernel updates have been installed.  Please reboot and run
"/usr/sbin/freebsd-update install" again to finish installing updates.

mit neuem Kernel booten

# shutdown -r now

userland installieren

# screen -RR
# # /usr/sbin/freebsd-update install
src component not installed, skipped
Installing updates...
Completing this upgrade requires removing old shared object files.
Please rebuild all installed 3rd party software (e.g., programs
installed from the ports tree) and then run "/usr/sbin/freebsd-update install"
again to finish installing updates.

Falls jetzt freebsd-update meldet: alle Ports neu installieren

(bei 11.1 z 11.2 kam diese Meldung nicht)

# portsnap fetch update
# portmaster --list-origins > ~/installed-ports

oder:

# pkg query --all '%o' > ~/installed-ports

weiter geht's

# portmaster -ty --clean-distfiles
===>>> Gathering distinfo list for all ports
       (This will take several minutes)

===>>> Checking for stale distfiles

       Deleting Babel-2.7.0.tar.gz

       Deleting ConfigArgParse-0.15.2.tar.gz

       Deleting ConfigArgParse-1.0.tar.gz
       .
       .

# portmaster -Faf
===>>> Distfile fetching is complete
# pkg delete -afy
# rm -rf /usr/local/lib/compat/pkg

Back up any files in /usr/local you wish to save, such as configuration files in /usr/local/etc

Manually check /usr/local and /var/db/ to make sure that they are really empty

# cd /usr/ports/sysutils/screen && make install clean

# exit
# screen -RR

# cd /usr/ports/ports-mgmt/portmaster && make install clean

Remove ports-mgmt/pkg and ports-mgmt/portmaster from ~/installed-ports

# cp ~/installed-ports ~/installed-ports-edit
# ee ~/installed-ports-edit

# yes | portmaster --no-confirm `cat ~/installed-ports-edit`

Falls alle Ports neu gebaut wurden, müssen jetzt die alten libs entfernt werden.

# freebsd-update install
src component not installed, skipped
Installing updates... done.

# shutdown -r now