Wednesday, February 8, 2017

Gentoo A Quick Guide

Gentoo A Quick Guide



1. emerge
?? portage tree (???) 
emerge --sync
?? XXX? ?????????????? USE ? LINGUAS 
emerge -pv XXX

?? XXX? ???????????
emerge -pvt XXX

????
emerge -uDN world

??????
emerge -uDN -pv world

?????? ??????
emerge -uDN -pvt world

??XXX?
emerge -C XXX

????????? (??! ??????????)
emerge -uDN world ????
emerge --depclean (????? -pv,?????,?????????)
revdep-rebuild


?world?????????????????????????
emerge -n curl


2. ????????
?????????????emerge?????
revdep-rebuild (?? emerge gentoolkit)

??????????
module-rebuild (?? emerge module-rebuild)

module-rebuild rebuild ???????????? ?? ????? nvidia/vbox ?????????????????? nvidia?? vbox?????? portage ?????


????????
etc-update
??????????????
dispatch-conf

3. ??
????????? XXX ????
eix XXX (? emerge eix)
??????? emerge --sync ??? update-eix ??????????? eix-sync ???????2???

???????YYY??USE
euse -i YYY
?
euses YYY (?? emerge euses)

??XXX?????USE
equery uses XXX (?? emerge gentoolkit)

?? /bin/ls ???
qfile /bin/ls

?? glibc ??????
qlist glibc

??????? glibc ?????
genlop -t glibc (?? emerge genlop)

??USE??????????????? make.conf ??????
ufed (? emerge ufed)

4. /etc/portage/package.* ?????????????????????? 

package.use

sys-apps/man-pages -nls

sys-apps/pciutils -zlib

media-libs/freetype bindist

app-text/acroread linguas_zh_TW linguas_zh_CN linguas_en

???

?????USE????????USE?

??2????2???????? USE?????????????????USE???????? LINGUAS ????????

package.keywords
sys-apps/hdparm ~x86
???
??????? KEYWORDS????? hdparm ?? ~x86 ??????? x86 ???????????? 
????? emerge ???????? make.conf ????? ~x86????????????? x86 ??? ~x86???? -~x86 ??????

?? gentoo@freenode ?<kojiro>??? ”ACCEPT_KEYWORDS is incremental“

package.mask
>sys-devel/libtool-1.5.23
???
???????????????????????
?? libtool-1.5.23b ??????????????????? ? 1.5.23 ???

package.unmask
=net-www/apache-2.2.4

games-arcade/stepmania


? mask ??????????????? 2.2.4 ? apache??? portage ?? mask ?????? unmask ???




5. ????



default ? gentoo ???? runlevel???????? runlevel 3?


? default runlevel ???? XXX ?? (add)
rc-update -a XXX default



? default runlevel ???? XXX ?? (delete)
rc-update -d XXX default



?? default runlevel ????? (show)

rc-update -s default


6. eLog ??. 

emerge ???????????????????????????????????
?? emerge log???? 
emerge elogv


???????
emerge elogviewer # GTK

emerge kelogviewer # KDE


????? /etc/make.conf ?????

PORTAGE_ELOG_SYSTEM="save"

PORTAGE_ELOG_CLASSES="warn error info log qa"


???????????????? qa(????) ???????????
???????? emerge ?????????????????? elogv ????



7. ?????

??????????

rm -rf /usr/portage/distfiles/*


???????
eclean distfiles (?? emerge gentoolkit)


??emerge??????????
rm -rf /var/tmp/portage/*


Available link for download