Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Emerge/pt-br"

From Funtoo
Jump to navigation Jump to search
(Updating to match new version of source page)
Line 1: Line 1:
== Principiando com o emerge ==
<languages/>
Emerge é o front-end para o gerenciador de Portage do funtoo. Com o emerge é fácil instalar, atualizar ou remover pacotes.
Emerge is the front-end for funtoo's Portage package manager. With emerge it is easy to install, update or remove packages.


=== Atualizar a Base de Dados de Pacote ===
== Update Package Database ==
'''Sincronize base de dados de pacote local. Isso atualizará sua árvore Portage local com a ultima versão do Funtoo ebuilds.'''
'''Sync meta-repo. This will update your local Portage tree with the latest Funtoo ebuilds.'''
<console>
{{console|body=
###i## emerge --sync
###i## ego sync
</console>
}}
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.


=== Buscar pacotes ===
== Search packages ==
'''Busca pacotes por nome.'''
'''Search packages by name.'''
<console>
{{console|body=
###i## emerge -s firefox
###i## emerge -s firefox
###i## emerge --search firefox
###i## emerge --search firefox
</console>
}}


'''Busca pacotes pode descrição.'''
'''Search packages by description.'''
<console>
{{console|body=
###i## emerge -S web browser
###i## emerge -S web browser
###i## emerge --searchdesc web browser
###i## emerge --searchdesc web browser
</console>
}}


=== Install packages ===
== Install packages ==
'''Instalar pacote.'''
'''Install package.'''
<console>
{{console|body=
###i## emerge firefox
###i## emerge firefox
</console>
}}


'''Instalar múltiplos pacotes.'''
'''Install multiple packages.'''
<console>
{{console|body=
###i## emerge firefox thunderbird
###i## emerge firefox thunderbird
</console>
}}


'''Instalar pacotes. Pedir por confirmação antes de realizar quaisquer alterações. Exibe saída em verbose.'''
'''Install package. Ask for confirmation before performing any changes. Show verbose output.'''
<console>
{{console|body=
###i## emerge -av firefox
###i## emerge -av firefox
###i## emerge --ask firefox
###i## emerge --ask firefox
</console>
}}


=== Removes pacotes ===
== Remove packages ==
'''Remove pacote.'''
'''Remove package.'''
<console>
{{console|body=
###i## emerge -C firefox
###i## emerge -C firefox
###i## emerge --unmerge firefox
###i## emerge --unmerge firefox
</console>
}}


'''Remove pacote. Pedir por confirmação antes de realizar quaisquer alterações.'''
'''Remove package. Ask for confirmation before performing any changes.'''
<console>
{{console|body=
###i## emerge -aC firefox
###i## emerge -aC firefox
</console>
}}


'''Remove pacotes órfãos. Perdir por confirmação antes de realizar quaisquer alterações.'''
'''Remove orphaned packages. Ask for confirmation before performing any changes.'''
<console>
{{console|body=
###i## emerge -a --depclean
###i## emerge -a --depclean
</console>
}}


=== Atualizar pacotes ===
== Update packages ==
'''Atualiza todos os pacotes.'''
'''Update all packages.'''
<console>
{{console|body=
###i## emerge -uDN @world
###i## emerge -uDN @world
</console>
}}


'''Atualiza todos os pacotes. Pedir por confirmação antes de realizar quaisquer alterações. Exibe saída em verbose.'''
'''Update all packages. Ask for confirmation before performing any changes. Show verbose output.'''
<console>
{{console|body=
###i## emerge -uavDN @world
###i## emerge -uavDN @world
</console>
}}


'''Quando atualizar para uma nova versão do perl, é necessário também executar <code>perl-cleaner</code> depois:'''
'''When upgrading to a new version of perl, it is necessary to also run {{c|perl-cleaner}} afterwards:'''
<console>
{{console|body=
###i## emerge -auvDN @world
###i## emerge -auvDN @world
###i## perl-cleaner --all
###i## perl-cleaner --all
</console>
}}


{{Note|Essa exigência de executar <code>perl-cleaner</code> eventualmente irá embora, uma vez que todas as ebuilds relacionadas ao perl estejam atualizadas para a EAPI 5. EAPI 5 é uma versão da especificação Ebuild que suporta smart updating dos bits perl-related.}}
{{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.}}
[[Category:pt_BR]]
 
== Emerge options ==
 
; --sync
: Updates the portage tree that is located in /usr/portage by default.
 
; --search -s
: Searches  for  matches  of  the  supplied  string in the portage tree.
 
; --searchdesc -S
: Matches the search string against the description field as well as the package name.
 
; --ask -a
: Ask for confirmation before performing any changes.
 
; --pretend -p
: Instead of actually performing the merge, simply display what *would* have been installed if --pretend weren't used.
 
; --unmerge -C
: Removes all matching packages.
 
; --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.
 
; --deep [DEPTH] -D
: force  emerge  to  consider  the  entire  dependency tree of packages, instead of checking only the immediate dependencies of the packages.
 
; --newuse -N
: Tells emerge to include installed packages where USE flags have changed since compilation.
 
; --depclean -c
: Remove orphaned packages. Cleans the system by removing packages that are not associated with explicitly merged packages.
 
; --autounmask-write
: Automatically write package.use settings as necessary to satisfy dependencies.
 
; --resume -r
: Resumes  the  most recent merge list that has been aborted due to an error.
 
; --jobs[=JOBS] -j [JOBS]
: Specifies the number of packages to build simultaneously.
 
; --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 ==
=== 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.
 
{{file|name=/etc/portage/make.conf||desc=See [[Make.conf]]|body=
# override subarch profile
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
 
MAKEOPTS="-j2"
EMERGE_DEFAULT_OPTS="--jobs 2 --load-average 2"
INPUT_DEVICES="evdev synaptics"
VIDEO_CARDS="intel i965"
LINGUAS="en en_US en_GB"
ACCEPT_LICENSE="*"
 
# 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 \
    svg x264 xvid gstreamer webm vpx icu bash-completion vim-pager \
    -gnome -xscreensaver -cups -fortran -deprecated -iptables -ipv6 -geoloc \
    -mta -sendmail -kmod -tiff -live -quicktime -real -gpm -themes"
}}
 
=== Package.use ===
Per-package use flags can be configured in
 
{{file|name=/etc/portage/package.use|body=
x11-wm/dwm savedconfig
x11-drivers/ati-drivers qt4
media-sound/ncmpcpp visualizer clock taglib
}}
 
=== package.accept_keywords ===
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=
=app-misc/screenfetch-9999 **
}}
 
== Other Resources ==
For more info see the emerge man page.
{{console|body=
$##i## man emerge
}}
[[Category:Portage]]
[[Category:HOWTO]]
[[Category:Tutorial]]
[[Category:System]]
[[Category:First Steps]]

Revision as of 04:55, April 14, 2019

Other languages:
English • ‎Türkçe • ‎español • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎

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

Sync meta-repo. This will update your local Portage tree with the latest Funtoo ebuilds.

root # ego sync

See app-admin/ego (Wiki Page) for more information on ego. Also see the man pages: ego, ego-profile, ego-sync and Funtoo Profiles wiki page.

Search packages

Search packages by name.

root # emerge -s firefox
root # emerge --search firefox

Search packages by description.

root # emerge -S web browser
root # emerge --searchdesc web browser

Install packages

Install package.

root # emerge firefox

Install multiple packages.

root # emerge firefox thunderbird

Install package. Ask for confirmation before performing any changes. Show verbose output.

root # emerge -av firefox
root # emerge --ask firefox

Remove packages

Remove package.

root # emerge -C firefox
root # emerge --unmerge firefox

Remove package. Ask for confirmation before performing any changes.

root # emerge -aC firefox

Remove orphaned packages. Ask for confirmation before performing any changes.

root # emerge -a --depclean

Update packages

Update all packages.

root # emerge -uDN @world

Update all packages. Ask for confirmation before performing any changes. Show verbose output.

root # emerge -uavDN @world

When upgrading to a new version of perl, it is necessary to also run perl-cleaner afterwards:

root # emerge -auvDN @world
root # perl-cleaner --all
   Note

This requirement of running 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

--sync
Updates the portage tree that is located in /usr/portage by default.
--search -s
Searches for matches of the supplied string in the portage tree.
--searchdesc -S
Matches the search string against the description field as well as the package name.
--ask -a
Ask for confirmation before performing any changes.
--pretend -p
Instead of actually performing the merge, simply display what *would* have been installed if --pretend weren't used.
--unmerge -C
Removes all matching packages.
--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.
--deep [DEPTH] -D
force emerge to consider the entire dependency tree of packages, instead of checking only the immediate dependencies of the packages.
--newuse -N
Tells emerge to include installed packages where USE flags have changed since compilation.
--depclean -c
Remove orphaned packages. Cleans the system by removing packages that are not associated with explicitly merged packages.
--autounmask-write
Automatically write package.use settings as necessary to satisfy dependencies.
--resume -r
Resumes the most recent merge list that has been aborted due to an error.
--jobs[=JOBS] -j [JOBS]
Specifies the number of packages to build simultaneously.
--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

make.conf

Emerge can be configured by editing /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 /etc/make.conf. Also note that /etc/portage/make.conf is the same as /etc/make.conf -- they are symlinked.

   /etc/portage/make.conf - See Make.conf
# override subarch profile
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"

MAKEOPTS="-j2"
EMERGE_DEFAULT_OPTS="--jobs 2 --load-average 2"
INPUT_DEVICES="evdev synaptics"
VIDEO_CARDS="intel i965"
LINGUAS="en en_US en_GB"
ACCEPT_LICENSE="*"

# 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 \
     svg x264 xvid gstreamer webm vpx icu bash-completion vim-pager \
     -gnome -xscreensaver -cups -fortran -deprecated -iptables -ipv6 -geoloc \
     -mta -sendmail -kmod -tiff -live -quicktime -real -gpm -themes"

Package.use

Per-package use flags can be configured in

   /etc/portage/package.use
x11-wm/dwm savedconfig
x11-drivers/ati-drivers qt4
media-sound/ncmpcpp visualizer clock taglib

package.accept_keywords

If you want to install a package that has not been tested on your architecture you need to edit

   /etc/portage/package.accept_keywords
=app-misc/screenfetch-9999 **

Other Resources

For more info see the emerge man page.

user $ man emerge