Emerge

From The World according to Vissie
Jump to navigation Jump to search
  • Full system update
emerge -av --update --deep --newuse world

or

emerge -avuDN world
  • List all packages installed
execute xecute xecute: equery list 

Output should look something like this

$ equery list
[ Searching for all packages in all categories among: ]
 * installed packages
[I--] [  ] app-admin/eselect-1.0.10 (0)
[I--] [  ] app-admin/eselect-opengl-1.0.5 (0)
[I--] [  ] app-admin/eselect-vi-1.1.4 (0)
[I--] [  ] app-admin/logrotate-3.7.2 (0)
[I--] [  ] app-admin/perl-cleaner-1.04.3 (0)
  • List all packages you directly installed. These are packages that you requested emerge to install. This does not include their dependencies.
/var/lib/portage/world
  • eclean

eclean is a tool to remove old source files and old binary packages from your system.

  • If you don't an overnight update failed on the third package out of three hundred, you can choose to make it skip all failing packages:
emerge -DuN world || until emerge --resume --skipfirst; do echo; done

You do (additionally) assume that no failure is important, no warning is useful, and such. It can be.

When you build and install packages, the source files are downloaded and preserved in DISTDIR, usually /usr/portage/distfiles. This can accumulate several gigs of material over time if you don't clean it periodically. You can run eclean-dist to clean only source files from DISTDIR.

  • Nice and quick way to un install apps with multiple dependencies

Edit /var/lib/portage/world and remove every line containing an Xfce package. Then run `emerge -av

Do a --depclean Then a revdep-rebuild

Tip: Use ACCEPT_KEYWORDS to find all dependencies But when you just want to get newest version of GNOME, KDE or any other ebuild with a lot of dependencies it can be a real pain to keep doing "emerge -pv gnome" only to get one single dependency at the time. Therefore you can run:

ACCEPT_KEYWORDS="~x86" emerge -pv gnome

Get all the dependencies listed and add them to your /etc/portage/package.keywords .