freebsd:freebsd_-_update
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| freebsd:freebsd_-_update [2024-02-16 14:51:12] – [FreeBSD 13.0] manfred | freebsd:freebsd_-_update [2025-08-10 01:29:34] (aktuell) – manfred | ||
|---|---|---|---|
| Zeile 2: | Zeile 2: | ||
| * [[:: | * [[:: | ||
| + | * [[:: | ||
| * [[:: | * [[:: | ||
| * **[[:: | * **[[:: | ||
| Zeile 49: | Zeile 50: | ||
| - | ===== Upgrade | + | ===== FreeBSD 14.0 - alle gewünschten Pakte install/ |
| - | | + | **__//So mache ich es auf meinem Server. - Es ist nur ein Beispiel!// |
| + | So stelle ich sicher, dass die Pakete in der richtigen Reihenfolge und mit den richtigen Optionen installiert werden. | ||
| + | Wichtig ist hierbei, dass ich die Pakete, bei denen mir die Compiler-Optionen egal sind, per PIN-Paket isntalliere | ||
| + | und die Pakete, die erweiterte Compiler-Optionen haben sollen, aus dem Ports-Tree gebaut werden. | ||
| - | ===== FreeBSD 13.1 zu 13.2 ===== | + | Das mache ich aus zwei Gründen so: __1.__ geht es schnelle und __2.__ lassen sich leider (bei mir) bestimmte Pakete (z.B.: [[:: |
| - | aktuelle | + | //Diese Konfiguration habe ich, am __16. Februar 2024__, unter **[[:: |
| - | > cat /etc/os-release | + | |
| - | aktuelle Version vom Kernel anzeigen | + | Ausführung: |
| - | > uname -a | + | > for P in $(cd / |
| + | > / | ||
| - | zeigt das '' | + | <file bash / |
| - | > uname -i | + | # |
| - | MYKERNEL | + | # https:// |
| + | # | ||
| + | # cat / | ||
| + | # | ||
| + | ### die zu bauenden Kernel festlegen in / | ||
| + | # KERNCONF=MYKERNEL | ||
| - | Print the version and patch level of the **installed kernel**. | + | include GENERIC |
| - | > freebsd-version -k | + | |
| - | Print the version and patch level of the **running kernel**. | + | ident MYKERNEL |
| - | > freebsd-version -r | + | |
| - | Print the version and patch level of the **installed userland**. | + | nooptions |
| - | > freebsd-version -u | + | options NULLFS # |
| + | device nvram # | ||
| + | # | ||
| + | device speaker # | ||
| + | envvar hint.speaker.0.at=" | ||
| + | envvar hint.speaker.0.port=" | ||
| + | device isa | ||
| + | # | ||
| + | # | ||
| + | options ZFS # NB: This depends on crypto, cryptodev and ZSTDIO | ||
| + | device crypto # | ||
| + | device cryptodev # | ||
| + | options ZSTDIO # | ||
| + | # | ||
| + | device sg # | ||
| - | als erstes müssen alle Paches in das aktuelle System installiert werden | + | # PCI Ethernet NICs. |
| - | > freebsd-update fetch | + | device cxgb # |
| - | > freebsd-update install | + | device cxgb_t3fw # |
| + | device cxgbe # | ||
| + | device cxgbev # | ||
| + | device mxge # | ||
| + | device oce # | ||
| - | ==== Update mit binären Dateien ==== | + | ### oder in der / |
| + | ### WITHOUT_MODULES= amr arcmsr ciss iir ips mly twa smartpqi tws aac aacraid ida mfi mlx mrsas twe agp cbb pccard cardbus wlan wlan_wep wlan_ccmp wlan_tkip wlan_amrr an ath ath_pci ath_hal bwi bwn ipw iwi iwn malo mwl ral wpi virtio hyperv | ||
| + | # | ||
| + | nooptions COMPAT_FREEBSD4 # | ||
| + | nooptions COMPAT_FREEBSD5 # | ||
| + | nooptions COMPAT_FREEBSD6 # | ||
| + | nooptions COMPAT_FREEBSD7 # | ||
| + | nooptions COMPAT_FREEBSD8 # | ||
| + | nooptions COMPAT_FREEBSD9 # | ||
| + | nooptions COMPAT_FREEBSD10 # | ||
| + | # | ||
| + | # | ||
| + | # ===> Configuring for rust-1.75.0 | ||
| + | # Bad system call | ||
| + | # => Sanity check failed: kernel is missing COMPAT_FREEBSD11 | ||
| + | # => Aborting build | ||
| + | </ | ||
| - | [[https://ostechnix.com/freebsd-upgrade/ | + | //Ach ja, ich muß noch hinzufügen, |
| - | + | ||
| - | # Ein binäres Update von 13.1 auf 13.2 kann man auch mit '' | + | |
| - | > freebsd-update -r 13.2-RELEASE upgrade | + | |
| - | > freebsd-update install | + | |
| - | + | ||
| - | //Braucht man einen eigenen | + | |
| - | + | ||
| - | + | ||
| - | ==== FreeBSD-Upgrade aus den Quellen ==== | + | |
| - | + | ||
| - | als erstes die neuesten Quellen holen, offiziell wird es etwas einfacher beschrieben aber nur diese Methode | + | |
| - | > rm -fr / | + | |
| - | > cd /usr/src || exit 1 | + | |
| - | > rm -fr .arcconfig .arclint .cirrus-ci/ .cirrus.yml .clang-format .git/ .gitattributes .github/ .gitignore | + | |
| - | + | ||
| - | > git clone https:// | + | |
| - | > git branch -a | head | + | |
| - | > git switch releng/ | + | |
| - | + | ||
| - | > sh / | + | |
| - | + | ||
| - | > cd /usr/src && make cleanworld || exit 21 | + | |
| - | > less / | + | |
| - | + | ||
| - | jetzt muss als erstes (wenn man das möchte) eine eigene Kerneldatei angelegt werden: | + | |
| - | > cat MYKERNEL > / | + | |
| - | > vi / | + | |
| - | + | ||
| - | nun können wir unsere System neu bauen, als erstes muß der Kernel gebaut und installiert werden: | + | |
| - | > cd /usr/src && make cleanworld && make -j$(sysctl -n hw.ncpu) buildkernel KERNCONF=MYKERNEL && make installkernel KERNCONF=MYKERNEL | + | |
| - | > shutdown -r now | + | |
| - | + | ||
| - | erst jetzt kann die Welt gebaut werden | + | |
| - | > cd /usr/src && make -j$(sysctl -n hw.ncpu) buildworld | + | |
| - | + | ||
| - | Enable “pre-world” mode. Only merge changes to files that are necessary to successfully run ‘make installworld’ or ‘make installkernel’. | + | |
| - | > etcupdate -p | + | |
| - | Conflicts remain from previous update, aborting. | + | |
| - | + | ||
| - | > etcupdate status | + | |
| - | C / | + | |
| - | + | ||
| - | > etcupdate diff | + | |
| - | ... | + | |
| - | + | ||
| - | > etcupdate resolve | + | |
| - | Resolving conflict in '/ | + | |
| - | Select: (p) postpone, (df) diff-full, (e) edit, | + | |
| - | (h) help for more options: h | + | |
| - | (p) postpone | + | |
| - | (df) diff-full | + | |
| - | (e) edit - change merged file in an editor | + | |
| - | (r) resolved | + | |
| - | (mf) mine-full | + | |
| - | (tf) theirs-full - accept new version of entire file (lose local changes) | + | |
| - | (h) help - show this list | + | |
| - | Select: (p) postpone, (df) diff-full, (e) edit, | + | |
| - | (h) help for more options: e | + | |
| - | ... | + | |
| - | # Change to no to disable PAM authentication | + | |
| - | <<<<<<< | + | |
| - | # | + | |
| - | ChallengeResponseAuthentication no | + | |
| - | ||||||| original | + | |
| - | # | + | |
| - | ======= | + | |
| - | # | + | |
| - | >>>>>>> | + | |
| - | ... | + | |
| - | + | ||
| - | ### das ändern wir in: | + | |
| - | + | ||
| - | ... | + | |
| - | # Change to no to disable PAM authentication | + | |
| - | # | + | |
| - | ... | + | |
| - | + | ||
| - | / | + | |
| - | Select: (p) postpone, (df) diff-full, (e) edit, (r) resolved, | + | |
| - | (h) help for more options: r | + | |
| - | + | ||
| - | > etcupdate status | + | |
| - | > etcupdate -p | + | |
| - | > cd /usr/src && make installworld | + | |
| - | > etcupdate -B | + | |
| - | > shutdown -r now | + | |
| - | + | ||
| - | + | ||
| - | ===== FreeBSD 14.0 ===== | + | |
| - | + | ||
| - | **__//So mache ich es auf meinem Server. - Es ist nur ein Beispiel!// | + | |
| - | + | ||
| - | So stelle ich sicher, dass die Pakete in der richtigen Reihenfolge | + | |
| - | Wichtig ist hierbei, dass ich die Pakete, bei denen mir die Compiler-Optionen egal sind, per PIN-Paket isntalliere | + | |
| - | und die Pakete, die erweiterte Compiler-Optionen haben sollen, aus dem Ports-Tree gebaut werden. | + | |
| - | + | ||
| - | Das mache ich aus zwei Gründen so: 1. geht es schnelle und 2. lassen sich leider (bei mir) bestimmte Pakete (z.B.: mkvtoolnix und MakeMKV) nicht problemlos aus dem Ports-Tree gebaut. | + | |
| - | + | ||
| - | Ausführung: | + | |
| - | > for P in $(cd /usr/ports/ | + | |
| - | > / | + | |
| <file bash / | <file bash / | ||
| Zeile 304: | Zeile 244: | ||
| </ | </ | ||
| - | <file bash /home/sbin/ | + | <file bash /root/bin/ |
| # | # | ||
| BIND_VERSION=" | BIND_VERSION=" | ||
| APACHE_VERSION=" | APACHE_VERSION=" | ||
| - | PHP_VERSION=" | + | PHP_VERSION=" |
| SAMBA_VERSION=" | SAMBA_VERSION=" | ||
| - | POSTGRESQL_VERSION=" | + | POSTGRESQL_VERSION=" |
| # | # | ||
| Zeile 362: | Zeile 302: | ||
| sysutils/ | sysutils/ | ||
| sysutils/ | sysutils/ | ||
| + | sysutils/ | ||
| devel/ | devel/ | ||
| mail/ | mail/ | ||
| Zeile 387: | Zeile 328: | ||
| www/nginx | www/nginx | ||
| www/thttpd | www/thttpd | ||
| + | www/fcgi | ||
| + | www/ | ||
| lang/ | lang/ | ||
| lang/ | lang/ | ||
| Zeile 392: | Zeile 335: | ||
| databases/ | databases/ | ||
| databases/ | databases/ | ||
| + | www/ | ||
| net-im/ | net-im/ | ||
| audio/ | audio/ | ||
| Zeile 412: | Zeile 356: | ||
| multimedia/ | multimedia/ | ||
| sysutils/ | sysutils/ | ||
| - | graphics/ | ||
| " | " | ||
| Zeile 425: | Zeile 368: | ||
| security/ | security/ | ||
| security/ | security/ | ||
| + | graphics/ | ||
| multimedia/ | multimedia/ | ||
| multimedia/ | multimedia/ | ||
| Zeile 442: | Zeile 386: | ||
| </ | </ | ||
| - | <file bash /home/sbin/ | + | <file bash /root/bin/ |
| #!/bin/sh | #!/bin/sh | ||
| - | . /home/sbin/ | + | . /root/bin/ |
| ( | ( | ||
| Zeile 471: | Zeile 415: | ||
| ) 2>&1 | tee / | ) 2>&1 | tee / | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== Upgrade FreeBSD 13.2 zu 14.0 ===== | ||
| + | |||
| + | * [[:: | ||
| + | |||
| + | |||
| + | ===== FreeBSD 13.1 zu 13.2 ===== | ||
| + | |||
| + | aktuelle Version vom User-Land anzeigen | ||
| + | > cat / | ||
| + | |||
| + | aktuelle Version vom Kernel anzeigen | ||
| + | > uname -a | ||
| + | |||
| + | zeigt das '' | ||
| + | > uname -i | ||
| + | MYKERNEL | ||
| + | |||
| + | Print the version and patch level of the **installed kernel**. | ||
| + | > freebsd-version -k | ||
| + | |||
| + | Print the version and patch level of the **running kernel**. | ||
| + | > freebsd-version -r | ||
| + | |||
| + | Print the version and patch level of the **installed userland**. | ||
| + | > freebsd-version -u | ||
| + | |||
| + | als erstes müssen alle Paches in das aktuelle System installiert werden | ||
| + | > freebsd-update fetch | ||
| + | > freebsd-update install | ||
| + | |||
| + | |||
| + | ==== Update mit binären Dateien ==== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | # Ein binäres Update von 13.1 auf 13.2 kann man auch mit '' | ||
| + | > freebsd-update -r 13.2-RELEASE upgrade | ||
| + | > freebsd-update install | ||
| + | |||
| + | //Braucht man einen eigenen Kernel, dann muß man den nachher aus den Quellen bauen, wie unten beschrieben!// | ||
| + | |||
| + | |||
| + | ==== FreeBSD-Upgrade aus den Quellen ==== | ||
| + | |||
| + | als erstes die neuesten Quellen holen, offiziell wird es etwas einfacher beschrieben aber nur diese Methode hat in jedem Fall (über 10 Jahre lang) zum Ziel geführt: | ||
| + | > rm -fr /usr/src/* | ||
| + | > cd /usr/src || exit 1 | ||
| + | > rm -fr .arcconfig .arclint .cirrus-ci/ .cirrus.yml .clang-format .git/ .gitattributes .github/ .gitignore | ||
| + | | ||
| + | > git clone https:// | ||
| + | > git branch -a | head | ||
| + | > git switch releng/13.2 | ||
| + | | ||
| + | > sh / | ||
| + | | ||
| + | > cd /usr/src && make cleanworld || exit 21 | ||
| + | > less / | ||
| + | |||
| + | jetzt muss als erstes (wenn man das möchte) eine eigene Kerneldatei angelegt werden: | ||
| + | > cat MYKERNEL > / | ||
| + | > vi / | ||
| + | |||
| + | nun können wir unsere System neu bauen, als erstes muß der Kernel gebaut und installiert werden: | ||
| + | > cd /usr/src && make cleanworld && make -j$(sysctl -n hw.ncpu) buildkernel KERNCONF=MYKERNEL && make installkernel KERNCONF=MYKERNEL | ||
| + | > shutdown -r now | ||
| + | |||
| + | erst jetzt kann die Welt gebaut werden (bei Pach-Level-Updates geht das auch schon vorher aber Major-Release-Update ńur mit neuem Kernel): | ||
| + | > cd /usr/src && make -j$(sysctl -n hw.ncpu) buildworld | ||
| + | |||
| + | Enable “pre-world” mode. Only merge changes to files that are necessary to successfully run ‘make installworld’ or ‘make installkernel’. | ||
| + | > etcupdate -p | ||
| + | Conflicts remain from previous update, aborting. | ||
| + | | ||
| + | > etcupdate status | ||
| + | C / | ||
| + | | ||
| + | > etcupdate diff | ||
| + | ... | ||
| + | | ||
| + | > etcupdate resolve | ||
| + | Resolving conflict in '/ | ||
| + | Select: (p) postpone, (df) diff-full, (e) edit, | ||
| + | (h) help for more options: h | ||
| + | (p) postpone | ||
| + | (df) diff-full | ||
| + | (e) edit - change merged file in an editor | ||
| + | (r) resolved | ||
| + | (mf) mine-full | ||
| + | (tf) theirs-full - accept new version of entire file (lose local changes) | ||
| + | (h) help - show this list | ||
| + | Select: (p) postpone, (df) diff-full, (e) edit, | ||
| + | (h) help for more options: e | ||
| + | ... | ||
| + | # Change to no to disable PAM authentication | ||
| + | <<<<<<< | ||
| + | # | ||
| + | ChallengeResponseAuthentication no | ||
| + | ||||||| original | ||
| + | # | ||
| + | ======= | ||
| + | # | ||
| + | >>>>>>> | ||
| + | ... | ||
| + | | ||
| + | ### das ändern wir in: | ||
| + | | ||
| + | ... | ||
| + | # Change to no to disable PAM authentication | ||
| + | # | ||
| + | ... | ||
| + | | ||
| + | / | ||
| + | Select: (p) postpone, (df) diff-full, (e) edit, (r) resolved, | ||
| + | (h) help for more options: r | ||
| + | | ||
| + | > etcupdate status | ||
| + | > etcupdate -p | ||
| + | > cd /usr/src && make installworld | ||
| + | > etcupdate -B | ||
| + | > shutdown -r now | ||
/home/http/wiki/data/attic/freebsd/freebsd_-_update.1708095072.txt · Zuletzt geändert: von manfred
