From Funtoo
Revision as of 19:57, March 11, 2021 by R.ivan (talk | contribs) (Created page with "== Обновление пакетов == '''Обновить все пакеты''' {{console|body= ###i## emerge -uDN @world }}")
Jump to navigation Jump to search
Other languages:
English • ‎Türkçe • ‎español • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎

Emerge это фронтальное решение для менеджера пакетов Portage, который есть в Funtoo. C emerge очень просто устанавливать, обновлять или удалять пакеты.

Обновление базы данных пакетов

Синхронизируйте мета-репозиторий. Это обновит ваше локальное дерево Portage до последних сценариев пакетов (ebuild) Funtoo.

root # ego sync

Посмотрите больше информации об app-admin/ego на странице (Wiki Page). Также можно посмотреть страницы справки man: ego, ego-profile, ego-sync и страницу Funtoo Profiles.

Поиск пакетов

Поиск пакета по имени

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

Поиск пакета по описанию

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

Установка пакетов

Установка одного пакета

root # emerge firefox

Установка нескольких пакетов

root # emerge firefox thunderbird

Установка пакета. Спросить ask перед применением изменений. Показать подробный verbose вывод в консоли

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

Удаление пакетов

Удалить пакет

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

Удалить пакет. Спросить ask перед применением изменений. Все совпавшие с запросом пакеты -C. Зависимости не проверяются!

root # emerge -aC firefox

Удалить осиротевшие пакеты - не ассоциированные с явно установленными пакетами depclean.Спросить ask перед применением изменений

root # emerge -a --depclean

Обновление пакетов

Обновить все пакеты

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

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

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.
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).



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"

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

# 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"


Per-package use flags can be configured in

x11-wm/dwm savedconfig
x11-drivers/ati-drivers qt4
media-sound/ncmpcpp visualizer clock taglib


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

=app-misc/screenfetch-9999 **

Other Resources

For more info see the emerge man page.

user $ man emerge