fbsd-bkp/home/beastie/dot-local/bin/sysupdate

26 lines
456 B
Plaintext
Raw Normal View History

2022-12-10 16:20:26 +00:00
#!/usr/bin/env bash
if [[ "${UID}" != "0" ]] ; then echo "UID != 0" ; exit ; fi
printexec() {
printf "\e[91;1m * ${*}\e[0m\n"
"${@}"
}
2022-12-28 21:34:46 +00:00
printexec freebsd-update fetch install
printexec pkg update
printexec pkg upgrade
printexec pkg autoremove
2023-01-16 21:56:47 +00:00
printexec pkg check -d -s -a
2022-12-28 21:34:46 +00:00
printexec pkg audit -F -r
printexec pkg clean
printexec portsnap fetch update
printexec portmaster --clean-distfiles
printexec pkg stats
2022-12-10 16:20:26 +00:00
2022-12-28 21:34:46 +00:00
printf "\e[91;1m * Done\e[0m\n"
2022-12-10 16:20:26 +00:00
2022-12-28 21:34:46 +00:00
exit 0