<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WiredRevolution.com &#187; portage</title>
	<atom:link href="http://www.wiredrevolution.com/tag/portage/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>View the status of a long emerge</title>
		<link>http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=view-the-status-of-a-long-emerge</link>
		<comments>http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge#comments</comments>
		<pubDate>Wed, 31 Dec 2008 14:13:29 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[emerge.log]]></category>
		<category><![CDATA[portage]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[tail]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[watch]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=896</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>At certain times while using Gentoo you are going to have to perform a large emerge, for example when you do an update world. It can be challenging to keep track of the status of this emerge with all the output flying by on the screen. It can also become a problem if you want [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/view-program-output-with-watch' rel='bookmark' title='Permanent Link: View program output with watch'>View program output with watch</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/find-the-exit-status-of-a-previous-command-in-bash' rel='bookmark' title='Permanent Link: Find the exit status of a previous command in Bash'>Find the exit status of a previous command in Bash</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>At certain times while using Gentoo you are going to have to perform a large emerge, for example when you do an update world. It can be challenging to keep track of the status of this emerge with all the output flying by on the screen. It can also become a problem if you want to check on the status from another machine that did not initiate the emerge.</p>
<p>Thankfully you can check the <strong>/var/log/emerge.log</strong> and get the current status.</p>
<p>Run this command to see the last 10 lines of the log.</p>
<pre>
$ sudo tail /var/log/emerge.log
</pre>
<p>You can combine this command with <strong>watch</strong> and get real-time updates.  This command will automatically update every second.</p>
<pre>
$ watch -n 1 "sudo tail /var/log/emerge.log"
</pre>
<p>Likewise you can use the &#8216;<strong>-f</strong>&#8216; tail option to get updates.</p>
<pre>
$ sudo tail -f /var/log/emerge.log
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/view-program-output-with-watch' rel='bookmark' title='Permanent Link: View program output with watch'>View program output with watch</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/find-the-exit-status-of-a-previous-command-in-bash' rel='bookmark' title='Permanent Link: Find the exit status of a previous command in Bash'>Find the exit status of a previous command in Bash</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install Java browser plugin in Gentoo</title>
		<link>http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-java-browser-plugin-gentoo</link>
		<comments>http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo#comments</comments>
		<pubDate>Sun, 02 Nov 2008 22:05:57 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[32-bit]]></category>
		<category><![CDATA[about:plugins]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[equery]]></category>
		<category><![CDATA[eselect]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jre]]></category>
		<category><![CDATA[make.conf]]></category>
		<category><![CDATA[nsplugin]]></category>
		<category><![CDATA[package.use]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[portage]]></category>
		<category><![CDATA[USE flags]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=572</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>To run Java code on a Gentoo system you must have a JRE (Java Runtime Environment) installed. The JRE will install a 32-bit browser plugin, among other things, which is necessary to take advantage of Java applets in Firefox. Before we go any further, it must be noted that this will only work with the [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system' rel='bookmark' title='Permanent Link: Update your entire Gentoo Linux system'>Update your entire Gentoo Linux system</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel' rel='bookmark' title='Permanent Link: Upgrade Gentoo Linux Kernel'>Upgrade Gentoo Linux Kernel</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>To run Java code on a Gentoo system you must have a JRE (Java Runtime Environment) installed. The JRE will install a 32-bit browser plugin, among other things, which is necessary to take advantage of Java applets in Firefox.</p>
<p>Before we go any further, it must be noted that this will only work with the 32-bit version of Firefox.  This is because the binary JRE package is only distributed in 32-bit and is therefore incompatible with the 64-bit version of Firefox. If you run a 64-bit system make sure that you have emerged the <strong>www-client/mozilla-firefox-bin</strong> package to get the 32-bit browser.</p>
<p>There are numerous JRE packages within portage, but the recommended package to emerge is <strong>dev-java/sun-jre-bin</strong>. Don&#8217;t confuse the JRE with JDK (Java Development Kit) which will add unnecessary Java programming tools to the installation.</p>
<p>To get the browser plugin you must enable the <strong>nsplugin</strong> USE flag when emerging the JRE. You can add this to your global USE flags by placing it directly into the <strong>make.conf</strong> file. </p>
<p>If you don&#8217;t want every package capable of installing a plugin to do so, you can limit the flag to this package only by adding the following entry to <strong>/etc/portage/package.use</strong>.</p>
<pre>
dev-java/sun-jre-bin nsplugin
</pre>
<p>Once the nsplugin flag is set to your liking then go ahead and emerge the JRE. </p>
<pre>
# emerge -av dev-java/sun-jre-bin
</pre>
<p>The &#8216;<strong>-v</strong>&#8216; and &#8216;<strong>-a</strong>&#8216; options will allow you view the USE flags that are enabled, and confirm they are correct before allowing it to continue.</p>
<p>If you are running an amd64 system then you will need to emerge the <strong>app-emulation/emul-linux-x86-java</strong> package as well. This package contains the basic 32-bit libraries needed to run the 32-bit JRE binaries on your 64-bit system.</p>
<p>You will need the nsplugin USE flag enabled for this package as well. If you didn&#8217;t add the keyword to your global USE flags in the previous step, add the following entry to <strong>/etc/portage/package.use</strong>.</p>
<pre>
app-emulation/emul-linux-x86-java nsplugin
</pre>
<p>Now emerge the package, again making sure the USE flags are correct.</p>
<pre>
# emerge -av app-emulation/emul-linux-x86-java
</pre>
<p>You will now have to configure your system to use the JRE with the <strong>eselect</strong> command utility.</p>
<p>Use this for a x86 system.</p>
<pre>
# eselect java-nsplugin set sun-jre-bin-1.6
</pre>
<p>Use this for an amd64 system.</p>
<pre>
# eselect java-nsplugin set 32bit emul-linux-x86-java-1.6
</pre>
<p>Once all of these steps have been completed you can verify that everything is correct by running.</p>
<pre>
# eselect java-nsplugin list
</pre>
<pre>
Available 32-bit Java browser plugins
  [1]   emul-linux-x86-java-1.6  current
Available 64-bit Java browser plugins
</pre>
<p>Check that Firefox has found the plugin by opening up a new window and entering <strong>about:plugins</strong> in the address bar. You should now see the Java plugin listed.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system' rel='bookmark' title='Permanent Link: Update your entire Gentoo Linux system'>Update your entire Gentoo Linux system</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel' rel='bookmark' title='Permanent Link: Upgrade Gentoo Linux Kernel'>Upgrade Gentoo Linux Kernel</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Update your entire Gentoo Linux system</title>
		<link>http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=update-your-entire-gentoo-linux-system</link>
		<comments>http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system#comments</comments>
		<pubDate>Fri, 10 Oct 2008 12:42:55 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[gentoolkit]]></category>
		<category><![CDATA[make.conf]]></category>
		<category><![CDATA[oneshot]]></category>
		<category><![CDATA[parallel-fetch]]></category>
		<category><![CDATA[portage]]></category>
		<category><![CDATA[revdep-rebuild]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[USE flags]]></category>
		<category><![CDATA[world]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=264</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>Gentoo Portage makes it fairly easy to update all the installed packages on your system. The emerge and revdep-rebuild tools are powerful and make the process of recompiling everything much less painful than it sounds. The emerge and revdep-rebuild commands require root privileges so switch to root or use sudo. The first step is to [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo' rel='bookmark' title='Permanent Link: Install Java browser plugin in Gentoo'>Install Java browser plugin in Gentoo</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge' rel='bookmark' title='Permanent Link: View the status of a long emerge'>View the status of a long emerge</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>Gentoo Portage makes it fairly easy to update all the installed packages on your system. The emerge and revdep-rebuild tools are powerful and make the process of recompiling everything much less painful than it sounds.</p>
<p>The emerge and revdep-rebuild commands require root privileges so switch to root or <a href="http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo">use sudo</a>.</p>
<p>The first step is to synchronize your Portage tree with the latest mirror.  This command will get you information on the latest packages that are currently available. </p>
<pre>
# emerge --sync
</pre>
<p>Perform an &#8220;pretend&#8221; emerge to see what packages will be updated and installed on your system.</p>
<pre>
# emerge -uDNvp world
</pre>
<pre>
These are the packages that would be merged, in order:

Calculating world dependencies... done!
[ebuild     U ] dev-util/pkgconfig-0.23 [0.22] USE="-hardened" 1,009 kB
[ebuild     U ] media-sound/wavpack-4.50.1 [4.41.0] USE="mmx" 367 kB
[ebuild     U ] dev-libs/gmp-4.2.2-r2 [4.2.2] USE="-doc -nocxx" 0 kB
.
.
.
[ebuild  N    ] sys-apps/man-pages-posix-2003a  949 kB 

Total: 149 packages (100 upgrades, 36 new, 2 in new slots, 11 reinstalls), Size of downloads: 354,800 kB
</pre>
<p>Lets go over these options.</p>
<p><strong>-u</strong> update packages<br />
<strong>-D</strong> consider entire dependency tree for all packages<br />
<strong>-N</strong> include packages with USE flag changes<br />
<strong>-v</strong> verbose emerge output<br />
<strong>-p</strong> pretend to do the emerge</p>
<p>The &#8216;<strong>world</strong>&#8216; argument tells emerge to use the list of packages in your world file.  This list contains all packages that have been directly emerged on your system.  These packages do not include dependences or packages that were emerged using the &#8216;<strong>&#8211;oneshot</strong>&#8216; option. Your world file is located here <strong>/var/lib/portage/world</strong>.</p>
<p>The output of this command will tell you one of two things.  Either everything is good and you can go ahead and perform the update, or Portage has found some conflicts such as blocking packages that must be fixed before you continue. Hopefully the former is the case, but if there are conflicts Portage messages will usually point you in the right direction.</p>
<p>Before performing the actual update you can <a href="http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch">use the parallel-fetch feature</a> to speed up the package downloads and shorten the update process. To do this add the following line to <strong>/etc/make.conf</strong>.</p>
<pre>
FEATURES="parallel-fetch"
</pre>
<p>If there are no Portage issues, you have reviewed the list of packages to be installed and everything looks correct, then you can start the update. To perform the update run the same command as before but remove the &#8216;<strong>-p</strong>&#8216; option.</p>
<pre>
# emerge -uDNv world
</pre>
<p>Occasionally a system update will break shared library dependencies as an upgraded package may no longer be compatible with packages which use it. Enter the <strong>revdep-rebuild</strong> reverse dependency re-builder tool. </p>
<p>The revdep-rebuild tool is part of the <strong>gentoolkit</strong> package which you must emerge first.</p>
<p>Run this command after a large system update to ensure all packages are in good shape.</p>
<pre>
# revdep-rebuild
</pre>
<p>This command will scan your system for missing shared library dependencies and fix them by re-emerging those missing packages.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo' rel='bookmark' title='Permanent Link: Install Java browser plugin in Gentoo'>Install Java browser plugin in Gentoo</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge' rel='bookmark' title='Permanent Link: View the status of a long emerge'>View the status of a long emerge</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</title>
		<link>http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=speed-up-gentoo-emerge-with-parallel-fetch</link>
		<comments>http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch#comments</comments>
		<pubDate>Mon, 29 Sep 2008 00:03:03 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[make.conf]]></category>
		<category><![CDATA[parallel-fetch]]></category>
		<category><![CDATA[portage]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=160</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>By default when you emerge a long list of packages in Gentoo you have to download each package completely before the build process can begin. This can be a large bottleneck, especially if your internet connection is not very fast. Luckily Portage has a great solution. Go to the file /etc/make.conf and add &#8220;parallel-fetch&#8221; to [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system' rel='bookmark' title='Permanent Link: Update your entire Gentoo Linux system'>Update your entire Gentoo Linux system</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge' rel='bookmark' title='Permanent Link: View the status of a long emerge'>View the status of a long emerge</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo' rel='bookmark' title='Permanent Link: Install Java browser plugin in Gentoo'>Install Java browser plugin in Gentoo</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>By default when you emerge a long list of packages in Gentoo you have to download each package completely before the build process can begin. This can be a large bottleneck, especially if your internet connection is not very fast.</p>
<p>Luckily Portage has a great solution. </p>
<p>Go to the file <strong>/etc/make.conf</strong> and add &#8220;<strong>parallel-fetch</strong>&#8221; to the <strong>FEATURES</strong> variable like this.</p>
<pre>
FEATURES="parallel-fetch"
</pre>
<p>If the <strong>FEATURE</strong> variable already exists add &#8220;<strong>parallel-fetch</strong>&#8221; to the end separated by whitespace.</p>
<pre>
FEATURES="sandbox parallel-fetch"
</pre>
<p>From now on Portage will fetch the source files for the next package in the list even while it is compiling another package.</p>
<p>To see parallel fetch progress, run this command.</p>
<pre>
$ tail -f /var/log/emerge-fetch.log
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system' rel='bookmark' title='Permanent Link: Update your entire Gentoo Linux system'>Update your entire Gentoo Linux system</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge' rel='bookmark' title='Permanent Link: View the status of a long emerge'>View the status of a long emerge</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo' rel='bookmark' title='Permanent Link: Install Java browser plugin in Gentoo'>Install Java browser plugin in Gentoo</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

