百度空间 | 百度首页 
 
查看文章
 
HOWTO:patch existing debian packages and build binary packages
2008-01-13 11:54
The process needs internet connection and configured source.list.
1, Download the source package
#apt-get source packname_packversion-debianversion
2, Patch the source
#cd packname_packversion
Modify the source as you want.
You'd better inscrase the debianversion of the package by modifying debian/changelog, to avoid conflict.
3, Rebuild source package
#dpkg-buildpackage -S -rfakeroot
4, Build binary package
#cd .. && sudo pbuilder build packname_packversion-newdebianversion.dsc
You will find your packages in /var/cache/pbuilder/result

note: If you use pbuilder for first time, you must use "pbuilder create" to create your base.tgz before the above command.

类别:Linux | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu