Saturday, March 26, 2011

Gentoo Linux Notes

To update all packages on your system:
emerge --sync && emerge -DNtuv world

To clean unused package files:
eclean distfiles

Local storage location of distfiles:
/usr/portage/distfiles

To list chronological order of packages installed:
qlop -l

To find which package contains a file:
equery belongs `which <filename>`
or equery belongs <filename>

2 portage directories:
/usr/portage is the default location for the portage tree. /var/tmp/portage is the default temporary location for portage to build packages

To just unpack the code (it will automatically download it if needed):
ebuild /usr/portage/x11-drivers/evdev/evdev<version> unpack

to add a user to a group:
gpasswd -a USERNAME vboxusers

previous portage emerge messages:
/var/log/portage/elog/summary.log

No comments:

Post a Comment