Skip to content

Instantly share code, notes, and snippets.

@terryoy
Last active April 7, 2022 22:33
Show Gist options
  • Save terryoy/4435265 to your computer and use it in GitHub Desktop.
Save terryoy/4435265 to your computer and use it in GitHub Desktop.
My Gentoo Shell Command Collection
### 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