Language Selection

English French German Italian Portuguese Spanish

Gentoo Portage secrets

Filed under
Gentoo
HowTos

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

Raspberry Pi analog input board has weather station option

RasPi.TV has Kickstartered a $12 “RasPiO Analog Zero” Raspberry Pi add-on board the size of an Raspberry Pi Zero. It offers eight 10-bit analog inputs. The RasPiO Analog Zero has surpassed its Kickstarter goals, and is available through May 31 starting at 8 Pounds ($12). Designed for reading up to eight analog sensors simultaneously on a Raspberry Pi, the add-on board is matched to the size of the 65 x 30mm Raspberry Pi Zero. However, it plugs into any Pi with a 40-pin expansion connector, and can work with older 26-pin Pi models with the help of an adapter. Read more

GhostBSD 10.3 Development Continues, Now with UEFI Support for 64-bit Platforms

Today, May 25, 2016, GhostBSD maintainer Eric Turgeon announced the general availability of the second Alpha release of the upcoming GhostBSD 10.3 operating system. Read more

Samsung still undecided on their Android Wear future

Yesterday the Internet lit up like a Christmas tree with the news that Samsung was no longer going to use Android Wear for any of its Smartwatches, but it seems that might not be quite the case. The report from Fast Company cited some Samsung executives confirming that Samsung was not looking into developing any further Android Wear products. Now, In a statement provided to the Engadget website Samsung states: “We disagree with Fast Company’s interpretation. Samsung has not made any announcement concerning Android Wear and we have not changed our commitment to any of our platforms.” Read more

Meizu Pro 5 Ubuntu Edition review

The Meizu Pro 5 is the latest flagship smartphone to run on Canonical’s Ubuntu operating system. Ubuntu is designed to work across all device types – including mobile, tablets, convertibles and desktops – using a common core code. This is similar to Microsoft Windows 10 Mobile. However, unlike Microsoft’s code, Ubuntu is totally open source and has largely been developed and improved by the desktop OS’s millions-strong user base. This means the OS is capable of evolving and changing at a great pace and has update cycles that would make most sysadmins weep. Read more