Steps for Maintaining Gentoo Server
Disclaimer:
The information in this site is the result of my researches in the Internet and of my experiences. This information below is solely used for my purpose and may not be suitable for others.
- # eix-sync
This is same as below:
root #emerge --sync
root #cp -a /var/cache/eix/portage.eix /var/cache/eix/previous.eix
root #eix-update
root #eix-diff - # glsa-check --list
- # glsa-check -t all
When above command returns [N], execute this.
- # glsa-check -p $(glsa-check -t all)
To see what packages would be emerged.
- # glsa-check -f $(glsa-check -t all)
To apply the fix.
- # glsa-check -t all
- # eselect news read
- # emerge -uUDavp --with-bdeps=y @world
-u (--update): Updates pkgs to the best version available
-U (--changed-use): Include installed pkgs where USE flags have changed since installation.
-D (--deep): Forces emerge to consider the entire dependency tree of pkgs
-a (--ask): Display what will take place
-v (--verbose): Run in verbose mode:
-p (--pretend): Display what *would* have been installed if -p weren't used
--with-bdeps=y: Pull in build time dependencies that are not strictly requiredIf no problems flagged in above, go to xxxOtherwise, fix any problem(s) flagged by the emerge --pretend, then go to #4 again. - # emerge -uUDav --with-bdeps=y @world
If any issue(s), fix them and go to #5 again.
- # emerge @preserved-rebuild
Run this only if specified in output from above.
@preserved-rebuild: Update pkgs that still use old libraries with new ones - # emerge --ask --depclean
Run this only if specified in output from above.
--depclean: Cleans the system by removing pkgs that are not associated w/explicitly merged pkgs - # dispatch-conf
Tool that aids in merging the ._cfg0000_[name] files
- # eclean-dist --deep
Clean the source files directory, /var/cache/distfiles
- # eix-test-obsolete
Search for obsolete packages on the system
- Wait for at least 24 hours to a week or so, then go from beginning.
That's all!
-gibb