📜 ⬆️ ⬇️

MythBusters - Gentoo Linux

Ubuntu's daughter ran to Debian and, laughing merrily, kissed his forehead: "Happy Birthday, Dad!". Then she looked joyfully at the guests sitting at the table and asked in her sonorous voice:
- Dad, where is Gentoo, hasn't he come yet?
- No, he's still going.

Among other Linux distributions, Gentoo stands out because it is surrounded by many myths, of light and dark color. I have been using it for more than 10 years as a home and office workstation and I want to expose several myths with you and create a couple of new ones .




I would also like to talk about the advantages and disadvantages of the distribution in order to help the doubters and refugees with systemd to make the right decision. Taking this opportunity, I also want to post here some useful tips that will help avoid many hours of searching on the Internet and recompiling monstrous packages.


Myth number 1 - performance gains


Gentoo Linux gives a performance boost due to the fact that all programs are compiled for a specific user hardware. At the stage of the birth and formation of the distribution, this thesis sounded with fierce perseverance.


, , , Phoronix Test Suite - . FireFox, , USE="pgo".


? , SIMD, AESNI, AVX. - . , , .


, Gentoo.


№2 —


, , , , . .


(5:515)$ sudo qlop -t libreoffice firefox qtwebengine
libreoffice: 15028 seconds average for 20 merges
firefox: 3127 seconds average for 32 merges
qtwebengine: 8884 seconds average for 5 merges

- . - emerge (Ctrl+Z), (bg) (fg). - , .


# Part 1
layman -S
emerge --sync
eix-update

# Part 2
emerge -avuND --with-bdeps=y --complete-graph=y --backtrack=30 --keep-going --verbose-conflicts --exclude "gentoo-sources firefox libreoffice chromium glibc perl python gcc" world
smart-live-rebuild -- -av --with-bdeps=y --complete-graph=y
emerge -av --exclude "gentoo-sources firefox libreoffice chromium glibc perl python gcc" @preserved-rebuild
eclean distfiles

№3 — Gentoo


, Debian Linux, , . Debian Grub 2 Perl - , Gentoo. Gentoo, . , . QEMU Github, MATE — Gentoo 1.12.2 - , .


(5:499)$ eix -ce qemu;eix -ce mate
[I] app-emulation/qemu (2.9.0-r2@19.05.2017): QEMU + Kernel-based Virtual Machine userland tools
[N] mate-base/mate (1.12-r1): Meta ebuild for MATE, a traditional desktop environment

+1 —


Gentoo Linux. , . .



+2 —


. - , RSS , , .


. eselect news read.


(5:501)$ sudo eselect news read
No news is good news.

+3 —


. , .


elog /var/log/portage/elog.


± emerge portage


portage emerge . portage (. +1). emerge/portage , .



- ? , , , , . , , .


-1 —


, .


wget goo.gl/5Y2Gj -O install.sh && sh install.sh

, , , , . , .


  1. , .
  2. SystemRescueCd — , , Gentoo. SystemRescueCd , LiveCD , .
  3. genkernel . portage-utils, eix, eselect .


- ( , . .), , . LibreOffice, Chromium qt-webengine, .


  1. ebuild /usr/portage/cate-gory/prog/prog-x.y.z.ebuild compile
  2. ebuild /usr/portage/cate-gory/prog/prog-x.y.z.ebuild install
  3. ebuild /usr/portage/cate-gory/prog/prog-x.y.z.ebuild qmerge

/var/tmp/portage /usr/portage SSD, , tmpfs, emerge.


.


quickpkg --include-config y < >



')

Source: https://habr.com/ru/post/335022/


All Articles