Changes

Jump to: navigation, search

Install/Introducing Portage

171 bytes added, 1 year ago
Marked this version for translation
<translate>
<!--T:1-->
{{InstallNavigation|num=12|prev=Configuration Files|next=Kernel|title=Introducing Portage}}
<!--T:2-->
Portage, the Funtoo Linux package manager has a command called <code>emerge</code> which is used to build and install packages from source. It also takes care of installing all of the package's dependencies. You call emerge like this:
<!--T:3-->
{{console|body=
(chroot) # ##i##emerge packagename
}}
<!--T:4-->
When you install a package by specifying its name in the command-line, Portage records its name in the <code>/var/lib/portage/world</code> file. It does so because it assumes that, since you have installed it by name, you want to consider it part of your system and want to keep the package updated in the future. This is a handy feature, since when packages are being added to the <code>world</code> set, we can update our entire system by typing:
<!--T:5-->
{{console|body=
(chroot) # ##i##ego sync
}}
<!--T:6-->
This is the "official" way to update your Funtoo Linux system. Above, we first update our Portage tree using git to grab the latest ebuilds (scripts), and then run an emerge command to update the <code>world</code> set of packages. The options specified tell {{c|emerge}} to:
<!--T:7-->
* '''<code>a</code>''' - show us what will be emerged, and '''ask''' us if we want to proceed
* '''<code>u</code>''' - '''update''' the packages we specify -- don't emerge them again if they are already emerged.
* '''<code>N</code>''' - Update any packages that have changed ('''new''') USE settings.
<!--T:8-->
You should also consider passing <code>--with-bdeps=y</code> when emerging @world, at least once in a while. This will update build dependencies as well.
<!--T:9-->
Of course, sometimes we want to install a package but not add it to the <code>world</code> file. This is often done because you only want the package installed temporarily or because you know the package in question is a dependency of another package. If this behavior is desired, you call emerge like this:
<!--T:10-->
<console>
(chroot) # ##i##emerge -1 packagename
</console>
<!--T:11-->
Advanced users may be interested in the [[Emerge]] wiki page.
==== Updating World ==== <!--T:12-->
<!--T:13-->
Certain packages in the Funtoo stage3 tarball are compiled with the bindist USE flag enabled by default. bindist flag controlling enable or disable of options for proprietary and/or patented part of code which is disallowed to distribute in images due to licensing issues.). You may notice a dependency resolution problem with bindist USE during updating packages after initial system setup. To avoid potential problems, '''update the system before first boot or any other package installation''' as shown below:
<!--T:14-->
<console>
(chroot) # ##i##ego sync
</console>
<!--T:15-->
{{fancyimportant|1=
Make sure you read any post emerge messages and follow their instructions. This is especially true if you have upgraded perl or python.}}
Bureaucrats, Administrators, wiki-admins, wiki-staff
6,337
edits

Navigation menu