Обновление FreeBSD
tar -czf /root/ETC.tar.gz /etc /usr/local/etc
pkg_info -qoa | sort > /root/pkg_list.NEW
diff /root/pkg_list.* | egrep „^(<|>)”
freebsd-update upgrade -r 8.1-RELEASE
freebsd-update install
shutdown -r now
freebsd-update install
pkg_info -qoa | sort > /root/pkg_list.OLD
pkg_delete -a -f
rm -r -f /boot/modules /usr/local /var/db/pkg
while read PKG; do pkg_add -r $( basename ${PKG} ); done < /root/pkg_list.OLD
rm -r -f /root/pkg_list.*
rm -r -f /root/ETC.tar.gz
tar -czf /root/ETC.tar.gz /etc /usr/local/etc
pkg_info -qoa | sort > /root/pkg_list.NEW
diff /root/pkg_list.* | egrep „^(<|>)”
freebsd-update upgrade -r 8.1-RELEASE
freebsd-update install
shutdown -r now
freebsd-update install
pkg_info -qoa | sort > /root/pkg_list.OLD
pkg_delete -a -f
rm -r -f /boot/modules /usr/local /var/db/pkg
while read PKG; do pkg_add -r $( basename ${PKG} ); done < /root/pkg_list.OLD
rm -r -f /root/pkg_list.*
rm -r -f /root/ETC.tar.gz
Комментариев нет:
Отправить комментарий