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

Project Halium Seeks A Unified Mobile GNU/Linux

New forks of GNU/Linux come out all the time, but some, like the newly unveiled Project Halium, actively seek to unite a given landscape. In this case the mobile world. Rather than being yet another version of Linux on mobile devices, like SailfishOS or Ubuntu Touch, Project Halium’s goal is to create a base that anybody can work off of to integrate all sorts of Linux code into the Android stack smoothly. Ideally, Project Halium wants to not only build out a base framework that anybody can use to hook their Linux project into Android’s soft underbelly of code and run it on an Android device, but they want to be the de facto example of such, in much the same way that saying the word “Linux” out in public will make many people immediately think of Ubuntu. Read more

3 Linux questions from the community

In the last The Queue, I flipped the script and asked you questions as opposed to answering them. It was so well received, I'm going to keep it going with three more questions this month. I'll resume answering next month, so don't forget you can fill the queue with your questions about Linux, building and maintaining communities, contributing to an open source project, and anything else you'd like to know. While the previous two questions were a bit philosophical, this month we'll keep it fun. Read more

Flatpak 0.9.3 Linux App Sandboxing Framework Released with Many Builder Changes

Alex Larsson from the Flatpak team announces the release and immediate availability of the third maintenance update to the Flatpak 0.9 series of the open-source Linux application sandboxing and distribution framework. Read more

New CloudLinux 7 Beta Linux Kernel Available for Testing, Two Crashes Addressed

CloudLinux's Mykola Naugolnyi announced today, April 26, 2017, the availability of a new Beta kernel for users of the CloudLinux 7 operating system series, addressing various vulnerabilities discovered lately. Read more