用apt-build来优化系统,作用有多大?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
dongr
帖子: 86
注册时间: 2007-03-01 11:44

用apt-build来优化系统,作用有多大?

#1

帖子 dongr » 2010-08-12 8:47

apt-build 与apt-get 的区别在于,下载源代码本机编译,针对自己的电脑优化。那可了得!让电脑发扬个性,发挥作用。

冷静点,在debian和ubuntu二者中,使用apt-build,效果会一样明显吗?或者说,可借鉴的有哪些?

apt-build注解如下:

Usage: apt-build [options] [command] <package>

Commands:
update - Update package lists
upgrade - Perform an upgrade
install - Build and install new packages
source - Download and extract source in build directory
build-source - Download, extract and build source package
update-source - Update all sources and rebuild them
remove - Remove packages
build-repository - Rebuild the repository
clean-sources - Clean up all object files in source directories
clean-build - Erase downloaded packages and temporary build files
clean-repository - Erase downloaded packages and temporary build files
world - Rebuild and reinstall all packages on your system
info - Build-related package information

Options:
--reinstall - Re-build and install already installed package
--rebuild - Rebuild package
--remove-builddep - Remove build-dependencies installed by apt-build
--nowrapper - Do not use gcc/g++ wrapper
--purge - Use purge instead of remove
--noupdate - Do not run 'apt-get update' before package installation
--build-command - Use <command> to build package
--patch <file> - Apply patch <file>s before the build
--patch-strip - Striplevel for the patch files
--yes -y - Assume yes
--version -v - Show version and exit
--force-yes - Force yes
--source - Do not download source (sources are extracted already)
--build-only - Do not install any of build dependencies or <package>
--build-dir - Specify build dir
--repository-dir - Specify the repository directory
--target-release - Distribution to fetch packages from
--sources-list - Specify sources.list file
--apt-get - Specify an alternative apt-get application to use
--apt-cache - Specify an alternative apt-cache application to use
--config - Specify an alternative configuration file
ryoohki
帖子: 3249
注册时间: 2008-10-28 20:18

Re: 用apt-build来优化系统,作用有多大?

#2

帖子 ryoohki » 2010-08-12 12:03

只有Canonical官方源里的还能编编....PPA的就算了,光依赖就能整死人
poet
帖子: 2841
注册时间: 2006-09-11 22:47

Re: 用apt-build来优化系统,作用有多大?

#3

帖子 poet » 2010-08-13 11:21

dongr 写了:apt-build 与apt-get 的区别在于,下载源代码本机编译,针对自己的电脑优化。那可了得!让电脑发扬个性,发挥作用。
冷静点,在debian和ubuntu二者中,使用apt-build,效果会一样明显吗?或者说,可借鉴的有哪些?
各种 linux 并没有本质不同。

就连 gentoo 的官方文档已经清楚的说了:仅仅是在本机重新编译,通常并不能提高程序效率。
gentoo 这个完全鼓吹全部编译的发行版都这么说了,还有必要问么?

gentoo 文档还说了,重新编译能提高效率通常有两种情况:
1。你修改了程序代码以提高程序效率。
2。你修改了编译选项以去掉程序的部分功能。

所以,如果你不打算修改程序源代码,也不打算修改编译选项以屏蔽程序某些功能,那么重新编译对你来说没有什么作用。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 用apt-build来优化系统,作用有多大?

#4

帖子 eexpress » 2010-08-13 11:26

就是。打倒不改源码的编译。
● 鸣学
rediscover
帖子: 3173
注册时间: 2010-01-13 23:26

Re: 用apt-build来优化系统,作用有多大?

#5

帖子 rediscover » 2010-08-13 19:07

eexpress 写了:就是。打倒不改源码的编译。
就是,至少也得改改编译选项才能提高效率。
Here I am.
Ubuntu 桌面培训 - 全中文官方文档,含汉化截图,提供PDF
回复