Language Selection

English French German Italian Portuguese Spanish

Gentoo Portage secrets

Filed under

Gentoo Linux is perhaps the most-used source-based Linux distribution. One secret to its success is the powerful and handy Portage package management system. While Gentoo comes with extensive documentation covering most aspects of using Portage, the techniques described in Gentoo's handbook and other documentation are not always the most effective ones. Here are some insider tips that can greatly increase your productivity.

Search faster

Before you install a package, you usually look for it via Portage's search capabilities. Portage's emerge utility has --search and --searchdesc options, but using them is not enjoyable, because they take a long time to run. That's why we've seen the emergence of third-party search front ends for Portage, such as esearch and eix. Their common idea is to use their own search indexes to speed up searches. When using either utility, you have to rebuild the index after updating the Portage tree, and after installing and uninstalling software.

Of the two, eix works faster and has more capabilities. You can get information on the utility from its man page or by invoking eix --help. To use eix to search for a package whose name contains foo, simply invoke eix foo.

Eix is a very flexible tool. It can give you more information on packages than esearch or emerge -s. It can search through different fields (e.g. package name, category, or description), it can search for regular expressions or wildcard patterns, or do fuzzy searches, and its output can be configured for use in scripts.

Optimizing traffic usage

Full Story.

Great read

I never knew about esearch or eix, but after using them I know they will always be on my system. At least 3x faster than a simple emerge -s.

re: Great read

Yeah it is. I've used some of them before when I saw them mentioned in the forums, but I couldn't remember them too much longer. I still end up using emerge -s. Blushing

I'm gonna make me a cheat sheet this time! Big Grin

You talk the talk, but do you waddle the waddle?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

More in Tux Machines

Release of KDE Frameworks 5.15.0

KDE Frameworks are 60 addon libraries to Qt which provide a wide variety of commonly needed functionality in mature, peer reviewed and well tested libraries with friendly licensing terms. For an introduction see the Frameworks 5.0 release announcement. This release is part of a series of planned monthly releases making improvements available to developers in a quick and predictable manner. Read more

The Best Linux Setup For Older Computers

A number of the distributions on that list would have been suitable but I was also looking for a distribution that had a 32-bit version. From the list I could reasonably have gone for PCLinuxOS, Linux Mint XFCE, Zorin OS Lite or Linux Lite but having recently reviewed Q4OS I decided that this was the best option because it looks a lot like older versions of Windows, it is lightweight, fast and easy to use. Read more

Rugged Cat S40 Android Smartphone Launches in U.S.

The Cat S40 rugged smartphone, built to take abuse in extreme environmental conditions in the workplace or daily life, is now available in the United States. The new Android phone, which runs on GSM networks, such as T-Mobile and AT&T Wireless, sells for $399, according to an Oct. 7 announcement by Bullitt Mobile, which licenses the Caterpillar name for the device. Read more

Manjaro Linux Fluxbox 15.10 Edition Released with a Completely Redesigned Desktop

A few minutes ago, October 10, the Manjaro Community Team, through Bernhard Landauer, was proud to announce the release and immediate availability for download of the Manjaro Linux Fluxbox 15.10 operating system. Read more