Skip to content

Instantly share code, notes, and snippets.

@tianchaijz
Forked from terryoy/gist:4435265
Last active August 29, 2015 14:07
Show Gist options
  • Save tianchaijz/0252ef02fa521c11cf62 to your computer and use it in GitHub Desktop.
Save tianchaijz/0252ef02fa521c11cf62 to your computer and use it in GitHub Desktop.
### emerge package management (need root access) ###
### "emerge" is a tool manipulating Gentoo's package management tool "Portage" ###
# update portage tree
emerge --sync
# search package
emerge --search pdf
emerge --searchdesc pdf
# installing package
emerge <package>
# removing package - *important*: emerge doesn't stop you from removing package depended by other softwares, you need to be careful with the removal
emerge --unmerge <package>
# find those unnecessary dependencies
emerge -p --depclean
# before using it, remember to install "gentoolkit" (e.g. emerge gentoolkit)
revdep-rebuild
# update your system
emerge --update --ask world
# update all packages in the whole system
emerge --update --deep world
# --newuse for the case you have updated your USE configuration
emerge --update --deep --newuse world
# check package's source files
equery files <package>
# the priority of USE configurations:
# USE in make.default
# USE in /etc/conf
# /etc/portage/package.use
# USE as env variables (for temporary emerge usage)
# list USE
emerge --info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment