Newbie cheat sheet

From Gentoo Linux Wiki

Jump to: navigation, search
This article is part of the Miscellaneous series.
Definitions Listings Licenses Other

This is a just a quick and easy cheat sheet for newbies (myself included), emerging from a thread on the forums). It is meant to be used as a reference to the gentoo tools that are most regularly used until one remembers them! For full options check out the man pages at the Man Index.

Contents

[edit] Newbie Gentoo cheat sheet

[edit] Managing Packages

foo is the name of the program you wish to use. It's just a random word, which you replace with what you're actually performing the operation on.

  • Emerges program foo
emerge foo
  • Lists all the programs that would be emerged if you installed foo, plus all their USE flags and the size of the downloads needed
emerge -pv foo
  • Lists all the programs needed to install foo plus all their USE flags and the size of the downloads needed and asks if you want to install them
emerge -av foo
emerge -s foo
  • Search packages for a program whose description contains 'foo' (Warning! This may take a while - see link above)
emerge -S foo
  • Updates the portage tree with the latest ebuilds
emerge --sync
  • Lists all the programs and their dependencies which need to be upgraded and asks if you want to install them
emerge -avuD world
  • Lists all system programs and their dependencies which need to be upgraded and asks if you want to install them
emerge -avuD system
  • Uninstall a program
emerge -aC foo
  • Emerge a specific version of a package
    • emerge =foo-bar/foo-1.2.3-r4
    • emerge =foo-1.2.3-r4 (if package name is not ambiguous)
  • Evil tool for updating config files
etc-update
  • Better tool for updating config files
dispatch-conf
  • Unmask and install an unstable package
echo "foo-bar/foo-1.2.3-r4 ~x86" >> /etc/portage/package.keywords
emerge foo
  • Mask a package to stop it from being installed/upgraded
echo foo-bar/foobar >> /etc/portage/package.mask
emerge -vva foo

[edit] Managing Services

  • Start service foo
/etc/init.d/foo start
  • Stop service foo
/etc/init.d/foo stop
  • Restart service foo
/etc/init.d/foo restart
  • Add a service called foo to the default runlevel
rc-update add foo default
  • Remove the service foo from the default runlevel
rc-update del foo default
  • See a list of all the running services in the default runlevel
rc-status default
  • See a list of all services in the boot runlevel
rc-status boot
  • See a list of services with their run level
rc-update -s

[edit] Before you compile the Kernel

Get an accurate description of your audio card, network card, etc. by running 'lspci' if still in the liveCD environment or by emerging 'pciutils' then running 'lspci' if not.


Entered by Daniel Brewer (7/10/04), originally written by chunderbunny. Please edit as you see fit.

Personal tools