0
0
Fork 0
zblog/content/post/16.md

22 lines
699 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

+++
title = "OpenSolaris ohne Reboot updaten"
date = "2009-09-04T23:40:00+00:00"
author = "Gibheer"
draft = false
+++
Nach shls Kommentar, dass entire deinstallierbar sei, habe ich mal
geschaut, ob man es dann mit einem Updatescript verbinden kann.
Dabei herausgekommen ist
<source:sh>pfexec pkg install \$(pkg list ~~u | awk { print \$1 } |
grep~~v “\^NAME”)</source>
Das macht eigentlich nichts anderes als haufenweise Newlines zu bauen
und an pkg install zu uebergeben. Erfreulicherweise baut pkg daraus eine
Liste (ohne weiteres zutun) und arbeitet sie einfach nacheinander ab.
Die Frage ist jetzt nur, ob das System in der Form auch lauffaehig ist.
Aber schauen wir einfach mal.