FreeBSD - Basis

FreeBSD

/etc/make.conf

DOC_LANG=de_DE.ISO8859-15 de_DE.ISO8859-1 en_US.ISO8859-1
OPTIONS_UNSET+=X11
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

Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching public key from update4.freebsd.org... done.
Fetching metadata signature for 9.1-RELEASE from update4.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 84 patches.....10....20....30....40....50....60....70....80.. done.
Applying patches... done.
Fetching 43 files... done.

The following files will be updated as part of updating to 9.1-RELEASE-p5:
/boot/kernel/kernel
/boot/kernel/kernel.symbols
/boot/kernel/linker.hints

# freebsd-update install

Installing updates... done.

# reboot

FreeBSD Version prüfen

# freebsd-version -ku

FreeBSD upgrade

die derzeitige Installation aktualisieren

# freebsd-update fetch
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 11.1-RELEASE from update4.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 11.1-RELEASE-p13.

WARNING: FreeBSD 11.1-RELEASE-p13 is approaching its End-of-Life date.
It is strongly recommended that you upgrade to a newer
release within the next 1 month.

da keine Updates vorhanden sind, ist das folgende überflüssig

# freebsd-update install
src component not installed, skipped
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.

auf neues Release wechseln

# freebsd-update upgrade -r 11.2-RELEASE

src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 11.1-RELEASE from update4.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 world/base world/lib32

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

Does this look reasonable (y/n)?  y

Fetching metadata signature for 11.2-RELEASE from update4.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 11.1-RELEASE for merging... done.
Preparing to download files... done.
Fetching 11257 patches.....10....20....30....40....50....60....70....
.
.
.
Applying patches...  done.
Fetching 202 files... done.
Attempting to automatically merge changes in files... done.

The following file could not be merged automatically: /etc/ssh/sshd_config
Press Enter to edit this file in ee and resolve the conflicts
manually...
.
.
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

# /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
portsnap fetch update
portmaster -ty --clean-distfiles
portmaster -Faf
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
cd /usr/ports/ports-mgmt/portmaster && make install clean

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

# portmaster --no-confirm `cat ~/installed-ports`

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

# freebsd-update install
# shutdown -r now