« blog 系统恢复 继续更新 顺记reiserfsck --rebuild-tree |
Main
| nagios需认证网页中嵌的媒体播放时的认证问题 »
February 21, 2008
gentoo 的 emerge 包管理
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/2008/02/gentoo_emerge.html
师弟装的一个 Gentoo 系统 一次上去排查网络问题
发现没有 traceroute 就装了一个
emerge 还挺简单 直接就是安装
-s 搜索 -u升级 -C/unmerge卸载 其他还有不少参数 -p -f ...
装了gentoolkit还有 qpkg -I qpkg -f等 etcat -c
对比:
debian dpkg apt-get
redhat rpm yum
solaris pkgadd
演示:
# emerge traceroute
>>> Emerging (1 of 1) net-analyzer/traceroute-1.4_p12-r5 to /
>>> Downloading 'ftp://ftp3.tsinghua.edu.cn/mirror/gentoo/distfiles/traceroute-1.4a12.tar.gz'
>>> Downloading 'ftp://ftp3.tsinghua.edu.cn/mirror/gentoo/distfiles/traceroute-1.4_p12-patches-1.5.tar.bz2'
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking traceroute-1.4a12.tar.gz ;-) ... [ ok ]
* checking traceroute-1.4_p12-patches-1.5.tar.bz2 ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking traceroute-1.4a12.tar.gz to /var/tmp/portage/net-analyzer/traceroute-1.4_p12-r5/work
>>> Unpacking traceroute-1.4_p12-patches-1.5.tar.bz2 to /var/tmp/portage/net-analyzer/traceroute-1.4_p12-r5/work
* Applying various patches (bugfixes/updates) ...
* 01_all_traceroute-1.4-target-resolv.patch ... [ ok ]
* 03_all_traceroute-1.4-target-resolv.patch ... [ ok ]
* 05_all_traceroute-1.4a5-bigpacklen.patch ... [ ok ]
* 09_all_traceroute-1.4a5-droproot.patch ... [ ok ]
* 11_all_traceroute-1.4a5-llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch.patch ... [ ok ]
* 13_all_traceroute-1.4a5-secfix.patch ... [ ok ]
* 15_all_traceroute-1.4a5-unaligned.patch ... [ ok ]
* 17_all_traceroute-1.4-emptylabel.patch ... [ ok ]
* 19_all_traceroute-1.4a12-mpls-icmp-02.patch ... [ ok ]
* 21_all_traceroute-1.4a12-let_kernel_find_address.patch ... [ ok ]
* 23_all_traceroute-configure-LANG.patch ... [ ok ]
* 25_all_traceroute-1.4a12-default-linux.patch ... [ ok ]
* Done with patching
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-analyzer/traceroute-1.4_p12-r5/work/traceroute-1.4a12 ...
* econf: updating traceroute-1.4a12/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating traceroute-1.4a12/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -mtune=i686 -pipe ) works...
|
|
Posted by windtear at February 21, 2008 11:06 PM