TIP Portage's newuse option

From Gentoo Linux Wiki

Jump to: navigation, search
This article is part of the Tips & Tricks series.
Terminals / Shells Network X Window System Portage System Filesystems Kernel Other

[edit] Introduction

Portage allows you to remerge packages affected by a USE flag change. Imagine that up until today, you never had a printer. Now you've bought one and wish to print from your Gentoo system. First of all, you'd want printing support for some of the applications you've installed. For this you would alter your USE flags and add 'cups', the Common Unix Printing System, and perhaps some other flags, by editing the file /etc/make.conf. Every newly merged package will now have printing support. But what about the already merged ones? Here's how to update them:

[edit] Remerging affected packages

We need to remerge them, to make the new USE flags active. To get a list of them, fire emerge deep world with the --newuse switch (or -N for short):

Code: emerge -avuND world
These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild  N    ] net-print/cups-1.1.21-r2  -debug +pam -samba -slp +ssl 8,348 kB
[ebuild   R   ] gnome-base/nautilus-2.8.0  +cups* -debug -flac -gstreamer -mad +oggvorbis 5,637 kB

No surprise that the CUPS package itself wants to get installed now, but you will also notice the appended asterisk to the +cups USE flag on the Nautilus package: This simply points out that the USE flag has changed, and you can now merge CUPS and all the packages which could benefit from an active cups USE flag. Check the flags. If all seems to be OK, proceed with the merge. Don't forget to configure your new printer.

Personal tools