
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.sabayonlinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.sabayonlinux.org/index.php?title=En:Portage&amp;feed=atom&amp;action=history</id>
		<title>En:Portage - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.sabayonlinux.org/index.php?title=En:Portage&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=En:Portage&amp;action=history"/>
		<updated>2013-06-20T05:06:07Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.4</generator>

	<entry>
		<id>http://wiki.sabayonlinux.org/index.php?title=En:Portage&amp;diff=9965&amp;oldid=prev</id>
		<title>K4ph: added missing i18n</title>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=En:Portage&amp;diff=9965&amp;oldid=prev"/>
				<updated>2011-02-01T16:14:02Z</updated>
		
		<summary type="html">&lt;p&gt;added missing i18n&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{I18n| [[De:Portage|de]] [[Portage|en]]}}&lt;br /&gt;
Portage is a package management system that is used by Gentoo and Sabayon to install, uninstall and maintain software on your system. The Portage system consists of the ''Portage tree'', the ''emerge'' command and the settings in your ''make.conf'' file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Portage Tree ==&lt;br /&gt;
The Portage tree is a local copy (located in ''/usr/portage'') of the central software package repository. Whenever you install software on your system with the emerge command, the Portage tree is searched. If a matching package name is found, it's dependencies are calculated, the source code for the package and its dependencies are downloaded and then they're all compiled and installed onto your system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Maintaining the Portage tree'''&amp;lt;br&amp;gt;&lt;br /&gt;
You should update your Portage tree on a regular basis (about once a week or so) to help keep your system up to date:&lt;br /&gt;
&lt;br /&gt;
  emerge --sync&lt;br /&gt;
                                                                                            &lt;br /&gt;
Another area of the Portage tree that needs maintenance is the ''/usr/portage/distfiles'' directory. This is where all the downloaded source code and binary packages are stored. Every 4 to 6 months or so you should delete everything in this directory to save storage space. You can do this by using the rm command:&lt;br /&gt;
&lt;br /&gt;
  rm -rf /usr/portage/distfiles/*&lt;br /&gt;
&lt;br /&gt;
== The emerge command ==&lt;br /&gt;
The emerge command is the primary way you, the user, will interface with Portage. To run &amp;quot;emerge&amp;quot;, you should first open up the terminal program of your choice and login as root.&amp;lt;br&amp;gt;&lt;br /&gt;
(Note: this document only covers the basics of emerge. for an in-depth guide, check out the [[emerge]] wiki page or the emerge man page) &lt;br /&gt;
&lt;br /&gt;
'''Installing packages'''&amp;lt;br&amp;gt;&lt;br /&gt;
To install a package, simply type &amp;quot;emerge&amp;quot; and the name of the package you want to install. For example, if you wanted to install the Opera web browser:&lt;br /&gt;
&lt;br /&gt;
  emerge opera&lt;br /&gt;
&lt;br /&gt;
Some package names aren't what you would expect them to be, If you wanted to emerge firefox for example:&lt;br /&gt;
&lt;br /&gt;
  emerge mozilla-firefox&lt;br /&gt;
&lt;br /&gt;
It is usually safer to add the --ask option to emerge and check that it will really install what you want before proceeding:&lt;br /&gt;
&lt;br /&gt;
  emerge -a mozilla-firefox&lt;br /&gt;
  These are the packages that would be merged, in order:&lt;br /&gt;
  Calculating dependencies... done!&lt;br /&gt;
  [ebuild     U ] www-client/mozilla-firefox-2.0 [2.0_beta2]     &lt;br /&gt;
  Would you like to merge these packages? [Yes/No] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you're having trouble finding a package you can search the Portage tree for it. For example:&lt;br /&gt;
&lt;br /&gt;
  emerge -s firefox&lt;br /&gt;
&lt;br /&gt;
would output something like this:&lt;br /&gt;
&lt;br /&gt;
  Searching...  &lt;br /&gt;
  [ Results for search key : firefox ]&lt;br /&gt;
  [ Applications found : 2 ]&lt;br /&gt;
 &lt;br /&gt;
  www-client/mozilla-firefox&lt;br /&gt;
      Latest version available: 1.5.0.4&lt;br /&gt;
      Latest version installed: 1.5.0.4&lt;br /&gt;
      Size of files: 39,034 kB&lt;br /&gt;
      Homepage:      http://www.mozilla.org/projects/firefox/&lt;br /&gt;
      Description:   Firefox Web Browser&lt;br /&gt;
      License:       MPL-1.1 NPL-1.1&lt;br /&gt;
  &lt;br /&gt;
  www-client/mozilla-firefox-bin&lt;br /&gt;
      Latest version available: 1.5.0.4&lt;br /&gt;
      Latest version installed: [ Not Installed ]&lt;br /&gt;
      Size of files: 12,751 kB&lt;br /&gt;
      Homepage:      http://www.mozilla.org/projects/firefox&lt;br /&gt;
      Description:   Firefox Web Browser&lt;br /&gt;
&lt;br /&gt;
You can also check out the Gentoo Online Package Database to locate packages: http://packages.gentoo.org/categories/&lt;br /&gt;
&lt;br /&gt;
'''Uninstalling Packages'''&amp;lt;br&amp;gt;&lt;br /&gt;
To uninstall a package, the emerge command is ran with the &amp;quot;--unmerge&amp;quot; modifier. For example, if you wanted to uninstall Opera:&lt;br /&gt;
&lt;br /&gt;
  emerge --unmerge opera&lt;br /&gt;
&lt;br /&gt;
(Note: This is the &amp;quot;safe&amp;quot; way to remove emerged programs, There are methods to remove a package and all of its dependencies, but they can lead to b0rked system.) &lt;br /&gt;
&lt;br /&gt;
'''Updating The System'''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First you should update the portage tree as shown above in ''maintaining the Portage tree''&lt;br /&gt;
&lt;br /&gt;
After the portage tree is updated, you can update your system by typing:&lt;br /&gt;
  emerge -auDN world&lt;br /&gt;
&lt;br /&gt;
This will &amp;quot;re-emerge&amp;quot; any package that has a newer version available in the Portage tree.&amp;lt;br&amp;gt;&lt;br /&gt;
(Note re-emerging a program is different than reinstalling it: the existing version on your system is replaced with the recompiled package, leaving your configuration files, program settings, bookmarks, most recently used files, themes etc. intact.)&lt;br /&gt;
&lt;br /&gt;
Performing a system update might result in some configuration files needing to be updated. For more information about this, check the [[emerge]] wiki.&lt;br /&gt;
&lt;br /&gt;
== make.conf ==&lt;br /&gt;
&lt;br /&gt;
Make.conf is a configuration file that controls many aspects of: the way Portage works, the way the emerge command behaves and the way GCC compiles code. (Note: for a more in-depth guide on make.conf, check out the [[make.conf]] wiki page or the make.conf.example file in ''/etc''.)&lt;br /&gt;
&lt;br /&gt;
'''USE flags'''&amp;lt;br&amp;gt;&lt;br /&gt;
USE flags are special flags set in make.conf, in the package.use file or right on the command line that control what features and/or programs you want to build in support for when you emerge packages. This is one of the features that makes Sabayon and Gentoo so flexible, you can build a package so that it only has the features you'll be using built in to it. For example: My laptop doesn't have a DVD burner in it. By setting the USE flag &amp;quot;-dvdr&amp;quot;, I was able to emerge the CD/DVD burning program K3B without DVD burning support. &lt;br /&gt;
&lt;br /&gt;
The rest of the make.conf file is too expansive to get in to in this overview, and beyond the scope of a simple introduction to the portage system. For more information on CFLAGS, Advanced Masking, setting Portage Directories and other advanced options, check out the [[make.conf]] wiki.&lt;br /&gt;
&lt;br /&gt;
[[Category:Portage| En]]&lt;/div&gt;</summary>
		<author><name>K4ph</name></author>	</entry>

	</feed>