Emerge

From Funtoo
Revision as of 16:32, November 15, 2019 by Kyetoy (talk | contribs) (Created page with "; --ask -a : Peça confirmação antes de realizar quaisquer alterações.")
Jump to navigation Jump to search
Other languages:
English • ‎Türkçe • ‎español • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎

Emerge é o front-end para o gerenciador de pacotes Portage do Funtoo Linux. Com o emerge, é fácil instalar, atualizar ou remover pacotes.

Atualizar Banco de Dados do Pacote

Sincronize os meta-repositórios. Isso atualizará sua árvore local do Portage com as últimas versões dos ebuilds do Funtoo.

root ### i ## ego sync

Consulte app-admin/ego (Wiki Page) para mais informações sobre ego. Veja também as manpages de : ego, ego-profile, ego-sync e a página Wiki de Funtoo Profiles.

Pesquisar Pacotes

Pesquisar por nome do pacote

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

Pesquisar por descrição.

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

Instalar um Pacote

Instalação de um único Pacote.

root # emerge firefox

Instalar Múltiplos Pacotes.

root # emerge firefox thunderbird

Instalar Pacote. Solicitar confirmação do usuário antes de realizar a instalação. Exibe uma saída mais informativa.

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

Remoção de Pacotes

Remover Pacotes

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

Remoção de Pacotes. Solicitar uma confirmação antes de realizar qualquer ação de remoção.

root # emerge -aC firefox

Remoção de Pacotes Órfãos. Solicitar confirmação antes de realizar qualquer ação de remoção

root # emerge -a --depclean

Atualização de Pacotes

Atualizar Todos os Pacotes instalados.

root # emerge -uDN @world

Atualização de Pacotes. Com confirmação e com uma saída mais informativa

root # emerge -uavDN @world

Ao atualizar para uma nova versão do Perl, é necessário executar manualmente o comando perl-cleaner posteriormente:

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

Este requisito de execução perl-cleaner acabará desaparecendo, assim que todos os ebuilds relacionados ao perl forem atualizados para o EAPI 5. O EAPI 5 é uma versão da especificação Ebuild que oferece suporte à atualização inteligente de bits relacionados ao perl.

Opções do Emerge

--sync
Atualiza a árvore do portage localizada em /usr/portage by default.
--search -s
Procura correspondências da sequência fornecida na árvore do portage.
--searchdesc -S
Corresponde a cadeia de pesquisa ao campo de descrição e ao nome do pacote.
--ask -a
Peça confirmação antes de realizar quaisquer alterações.
--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