Changes

Jump to: navigation, search

Emerge

435 bytes added, 10 months ago
Marked this version for translation
<languages/>
<translate>
<!--T:1-->
Emerge is the front-end for funtoo's Portage package manager. With emerge it is easy to install, update or remove packages.
== Update Package Database ==<!--T:2-->
'''Sync meta-repo. This will update your local Portage tree with the latest Funtoo ebuilds.'''
{{console|body=
See {{package|app-admin/ego}} ([[Package:Ego|Wiki Page]]) for more information on ego. Also see the man pages: {{c|ego}}, {{c|ego-profile}}, {{c|ego-sync}} and [[Funtoo Profiles]] wiki page.
== Search packages ==<!--T:3-->
'''Search packages by name.'''
{{console|body=
}}
<!--T:4-->
'''Search packages by description.'''
{{console|body=
}}
== Install packages ==<!--T:5-->
'''Install package.'''
{{console|body=
}}
<!--T:6-->
'''Install multiple packages.'''
{{console|body=
}}
<!--T:7-->
'''Install package. Ask for confirmation before performing any changes. Show verbose output.'''
{{console|body=
}}
== Remove packages ==<!--T:8-->
'''Remove package.'''
{{console|body=
}}
<!--T:9-->
'''Remove package. Ask for confirmation before performing any changes.'''
{{console|body=
}}
<!--T:10-->
'''Remove orphaned packages. Ask for confirmation before performing any changes.'''
{{console|body=
}}
== Update packages ==<!--T:11-->
'''Update all packages.'''
{{console|body=
}}
<!--T:12-->
'''Update all packages. Ask for confirmation before performing any changes. Show verbose output.'''
{{console|body=
}}
<!--T:13-->
'''When upgrading to a new version of perl, it is necessary to also run {{c|perl-cleaner}} afterwards:'''
{{console|body=
}}
<!--T:14-->
{{Note|This requirement of running {{c|perl-cleaner}} will eventually go away, once all perl-related ebuilds are updated to EAPI 5. EAPI 5 is a version of the Ebuild specification that supports smart updating of perl-related bits.}}
== Emerge options ==<!--T:15-->
<!--T:16-->
; --sync
: Updates the portage tree that is located in /usr/portage by default.
<!--T:17-->
; --search -s
: Searches for matches of the supplied string in the portage tree.
<!--T:18-->
; --searchdesc -S
: Matches the search string against the description field as well as the package name.
<!--T:19-->
; --ask -a
: Ask for confirmation before performing any changes.
<!--T:20-->
; --pretend -p
: Instead of actually performing the merge, simply display what *would* have been installed if --pretend weren't used.
<!--T:21-->
; --unmerge -C
: Removes all matching packages.
<!--T:22-->
; --update -u
: Updates packages to the best version available, which may not always be the highest version number due to masking for testing and development.
<!--T:23-->
; --deep [DEPTH] -D
: force emerge to consider the entire dependency tree of packages, instead of checking only the immediate dependencies of the packages.
<!--T:24-->
; --newuse -N
: Tells emerge to include installed packages where USE flags have changed since compilation.
<!--T:25-->
; --depclean -c
: Remove orphaned packages. Cleans the system by removing packages that are not associated with explicitly merged packages.
<!--T:26-->
; --autounmask-write
: Automatically write package.use settings as necessary to satisfy dependencies.
<!--T:27-->
; --resume -r
: Resumes the most recent merge list that has been aborted due to an error.
<!--T:28-->
; --jobs[=JOBS] -j [JOBS]
: Specifies the number of packages to build simultaneously.
<!--T:29-->
; --load-average [LOAD]
: Specifies that no new builds should be started if there are other builds running and the load average is at least LOAD (a floating-point number).
== Configuration ==<!--T:30-->
=== make.conf ===
Emerge can be configured by editing {{c|/etc/make.conf}} to customize settings that are set in profiles. However, it's recommended to try to use [[Funtoo Profiles]] as much as possible to avoid having to clutter up {{c|/etc/make.conf}}. Also note that {{c|/etc/portage/make.conf}} is the same as {{c|/etc/make.conf}} -- they are symlinked.
<!--T:31-->
{{file|name=/etc/portage/make.conf||desc=See [[Make.conf]]|body=
# override subarch profile
CXXFLAGS="-march=native -O2 -pipe"
<!--T:32-->
MAKEOPTS="-j2"
EMERGE_DEFAULT_OPTS="--jobs 2 --load-average 2"
ACCEPT_LICENSE="*"
<!--T:33-->
# Generally, your subarch profile and flavor/mix-ins will set these for you:
USE="mmx mmxext sse sse2 sse3 ssse3 threads alsa X gtk xcb dri opengl vaapi udev \
}}
=== Package.use ===<!--T:34-->
Per-package use flags can be configured in
<!--T:35-->
{{file|name=/etc/portage/package.use|body=
x11-wm/dwm savedconfig
}}
=== package.accept_keywords ===<!--T:36-->
If you want to install a package that has not been tested on your architecture you need to edit
{{file|name=/etc/portage/package.accept_keywords|body=
}}
== Other Resources ==<!--T:37-->
For more info see the emerge man page.
{{console|body=
Bureaucrats, Administrators, wiki-admins, wiki-staff
6,317
edits

Navigation menu