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:55:26] – [FreeBSD 14.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/ |
| - | + | ||
| - | * [[:: | + | |
| - | + | ||
| - | + | ||
| - | ===== 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 | + | |
| - | > freebsd-update fetch | + | |
| - | > freebsd-update | + | |
| - | + | ||
| - | + | ||
| - | ==== 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 / | + | |
| - | > 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 (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 | + | |
| - | + | ||
| - | + | ||
| - | ===== FreeBSD 14.0 ===== | + | |
| **__//So mache ich es auf meinem Server. - Es ist nur ein Beispiel!// | **__//So mache ich es auf meinem Server. - Es ist nur ein Beispiel!// | ||
| Zeile 179: | Zeile 58: | ||
| und die Pakete, die erweiterte Compiler-Optionen haben sollen, aus dem Ports-Tree gebaut werden. | 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.: | + | Das mache ich aus zwei Gründen so: __1.__ geht es schnelle und __2.__ lassen sich leider (bei mir) bestimmte Pakete (z.B.: |
| - | //Diese Konfiguration habe ich, am 16. Februar | + | //Diese Konfiguration habe ich, am __16. Februar |
| Ausführung: | Ausführung: | ||
| > for P in $(cd / | > for P in $(cd / | ||
| - | > /home/sbin/ | + | > /root/bin/ |
| <file bash / | <file bash / | ||
| Zeile 243: | Zeile 122: | ||
| # => Aborting build | # => Aborting build | ||
| </ | </ | ||
| + | |||
| + | //Ach ja, ich muß noch hinzufügen, | ||
| <file bash / | <file bash / | ||
| Zeile 363: | 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 421: | Zeile 302: | ||
| sysutils/ | sysutils/ | ||
| sysutils/ | sysutils/ | ||
| + | sysutils/ | ||
| devel/ | devel/ | ||
| mail/ | mail/ | ||
| Zeile 446: | Zeile 328: | ||
| www/nginx | www/nginx | ||
| www/thttpd | www/thttpd | ||
| + | www/fcgi | ||
| + | www/ | ||
| lang/ | lang/ | ||
| lang/ | lang/ | ||
| Zeile 451: | Zeile 335: | ||
| databases/ | databases/ | ||
| databases/ | databases/ | ||
| + | www/ | ||
| net-im/ | net-im/ | ||
| audio/ | audio/ | ||
| Zeile 471: | Zeile 356: | ||
| multimedia/ | multimedia/ | ||
| sysutils/ | sysutils/ | ||
| - | graphics/ | ||
| " | " | ||
| Zeile 484: | Zeile 368: | ||
| security/ | security/ | ||
| security/ | security/ | ||
| + | graphics/ | ||
| multimedia/ | multimedia/ | ||
| multimedia/ | multimedia/ | ||
| Zeile 501: | Zeile 386: | ||
| </ | </ | ||
| - | <file bash /home/sbin/ | + | <file bash /root/bin/ |
| #!/bin/sh | #!/bin/sh | ||
| - | . /home/sbin/ | + | . /root/bin/ |
| ( | ( | ||
| Zeile 530: | 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.1708095326.txt · Zuletzt geändert: von manfred
