maugustyniak

My work and projects


The easiest way to update gentoo

There is no any specific process or howto instructions to update gentoo system automatically, however Sabyon which base on gentoo has some tool to keep your os uptodate. I tried this system once (Desktop) and seems to be working ;) but I do not recommend for beginners users. As far as I know is based on unstable packages and it used something else then portage, so trying to install or update/upgrade package via emerge it was like impossible to happen.

But any way lets go back to gentoo and few the most important command to update/upgrade gentoo system.

before you start put ssh console in screen mode, this way if you’ll loose ssh connection it won’t brake your updates. ( to return to your screen, type screen -r, if many screens are in process, type screen -r X, X=screen process ), so type:

# screen

update portage tree

# emerge --sync

update portage to the best verison available

# emerge -u portage

update all packages listed in world file and all their dependencies

# emerge -uD world

scans libriaries and binaries for missing shared library dependencies and attempts to fix them by re-emergin.

# revdep-rebuild

For example this can happen when: global mysql flag has been removed from make.conf so all packages which have been compiled with has to be recompile again without. check for updates in configuration files

# etc-update or dispatch-conf

if python has been updated please run:

python-updater

It will update all packages with new python version use glsa-check command part of gentoolkit to monitor and manage security advisories.

# glsa-check -lvn affected

– list — version –nocolor remove the highest installed version of a package from the system. WARNING: Use it only if necessary or you know what you’re doing. NEVER RUN EMERGE -PD. to show all packages with new slots run:

# emerge -Pp

Example: to remove old version of python, first make totally sure that you have installed new one. then type:

# emerge -P python

At this point update should be done. But You may need to use some tips listed below. if world file corrupt some reason you can fix that using emaint command

# emaint -f world

use equery command to display various information about packages. show all packages which depends of myslq

# equery d mysql

how all packages belongs to mysql

# equery b mysql

Leave a Reply