Editing
XigmaNAS
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== pkg base === https://wiki.freebsd.org/PkgBase <pre> date ls -l /boot/kernel/kernel mkdir -p /usr/local/etc/pkg/repos/ grep enabled /usr/local/etc/pkg/repos/base.conf || echo 'base: { url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_2", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes }' >/usr/local/etc/pkg/repos/base.conf rm /usr/local/etc/pkg/repos/FreeBSD.conf grep enabled /usr/local/etc/pkg/repos/latest.conf || echo 'latest: { url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes }' >/usr/local/etc/pkg/repos/latest.conf pkg update # find security patches. filter unnecessary and current patch-level packages #time pkg search -r base -g 'FreeBSD-*p?' | awk '!/-(lib32|dbg|dev|src|tests|mmccam|minimal)-/ {print $1}' | fgrep -v $(uname -r | awk -F- '{ print $1$3}') | xargs pkg install -y -r base time pkg search -r base -g 'FreeBSD-*p?' | awk '!/-(lib32|dbg|dev|src|tests|mmccam|minimal)-/ {print $1}' | xargs pkg install -y -r base cp -p /etc/master.passwd.pkgsave /etc/master.passwd cp -p /etc/group.pkgsave /etc/group cp -p /etc/shells.pkgsave /etc/shells pwd_mkdb -p /etc/master.passwd cp /etc/sysctl.conf.pkgsave /etc/sysctl.conf cp -p /etc/hosts.pkgsave /etc/hosts cp -p /etc/ssh/sshd_config.pkgsave /etc/ssh/sshd_config # find changed files with "etc" in path #find / -maxdepth 4 -path '*/etc/*' -name "*.pkgsave" -type f # find changed .conf files #find / -maxdepth 4 -name "*.conf.pkgsave" #find / -maxdepth 4 -name \*.pkgsave -print -delete ls -l /boot/kernel/kernel date # (linker.hints was recreated at kernel install and we had the old modules as .pkgsave so we need to recreate it, this will be done at the next reboot) rm /boot/kernel/linker.hints cd /var/cache/pkg ls | fgrep -v '~' | awk '!/-(lib32|dbg|dev|src|tests|mmccam|minimal)-/' </pre> <pre> # pkg search -r base -g 'FreeBSD-*p1' | awk '!/-(lib32|dbg|dev|src|tests|mmccam|minimal)-/ {print $1}' | xargs FreeBSD-acct-14.1p1 FreeBSD-clang-14.1p1 FreeBSD-clibs-14.1p1 FreeBSD-devd-14.1p1 FreeBSD-kernel-generic-14.1p1 FreeBSD-lld-14.1p1 FreeBSD-lldb-14.1p1 FreeBSD-rescue-14.1p1 FreeBSD-runtime-14.1p1 FreeBSD-utilities-14.1p1 FreeBSD-zfs-14.1p1 </pre>
Summary:
Please note that all contributions to pega.life may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Pega.life:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information