Chinaunix首页 | 论坛 | 博客
  • 博客访问: 599770
  • 博文数量: 118
  • 博客积分: 2114
  • 博客等级: 大尉
  • 技术积分: 1275
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-10 00:02
文章分类

全部博文(118)

文章存档

2019年(1)

2018年(4)

2017年(1)

2016年(6)

2015年(1)

2014年(1)

2013年(5)

2012年(4)

2011年(17)

2010年(13)

2009年(65)

分类: BSD

2009-03-11 15:14:52

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) |
给主人留下些什么吧!~~