1, update port tree
#pkg_add -r cvsup-without-gui
# cvsup -gL2 /usr/share/examples/cvsup/ports-supfile -h cvsup.freebsd.org
2. delete package
#pkg_delete yourpackage
#pkg_delete -f yourpackage //force
3. ports
make install FORCE_PKG_REGISTER="yes" //Upgrade ignore dependability
make rmconfig //delete configured by "make install" command created
make showconfig //show configured option by "make install" created
make config //configuration
make install // install via local makefile
make clean // clean make file by make install built
make deinstall //delete alreay installed old version anyway
4. find ports patch
whereis gnome //check gnome patch in /usr/ports
5. upgrade
upgrade ports:
{
cd /usr/ports/net/cvsup && make install clean
cvsup -gL2 /usr/share/examples/cvsup/ports-supfile -h cvsup.freebsd.org
cvsup -gL2 /usr/share/examples/cvsup/ports-supfile -h cvsup.jp.freebsd.org
}
portupgrade -arPO //upgrade all package according to /usr/ports
portupgrade -r packagename //upgrade a single package
6. start Gnome
A: echo "/usr/local/bin/gnome-session" > ~/.xinitrc
B: startx
阅读(888) | 评论(0) | 转发(0) |