Talk:HOWTO Maintain Gentoo - "Best Practices"
From Gentoo Linux Wiki
Contents |
[edit] glsa-check
How about adding a bit about glsa-check.
We find it a big task to do emerge -uvaNDt world on a regular basis as there are quite a few issues from time to time and are considering switching to glsa-check -f all instead.
Are there any problems with that approach?
[edit] Using ebuild digest
Is there any plan to include the information that one could rebuild the digest of a file ala ebuild PATH_TO_EBUILD digest?
- In my opinion this shouldn't be included. It's generally not a recommended course of action for the reasons explained already in the section on digest problems.
- --AllenJB 10:44, 12 February 2007 (UTC)
[edit] More possible additions
Here is a very detailed list of good portage maintenance practices that might be worth trying to incorporate in to this document.
[edit] emaint
emerge recommended "emaint --check world". Maybe it's good to add to the discussion?
[edit] make.conf
The whole
USE="${USE} bash-completion"
USE="${USE} emacs"
works, in theory, however it's also quite acceptable to just break things up into new lines.
As an example, the following works perfectly fine on my system:
USE="X nvidia gtk gnome -kde -qt xscreensaver opengl dvdr cdr mpeg ogg vorbis theora jpeg alsa flac mp3 quicktime real"
Includes some organization, things are on new lines based on rough, quick categories, and all of those settings carry through. Works for me!
[edit] Equery Check World?
Ran into an issue (more then likely, kernel bug with the libsata?) causing massive file corruption & an unsafe shutdown condition. On reboot, missing files prevented the system from fully booting. Although there were one or two missing commands, I obviously suspect more missing somewhere.
A quick research showed "equery check pkgspec" would verify the presence of a package files including their integrity. The following quickly created script does this after creating a file listing all installed packages. However, I believe equery should contain a "check world" option.
#!/bin/bash
# Simulates `equery check world`
eix -sI --only-names > /tmp/package.log
{
while read packagename; do
echo $packagename
equery check $packagename
done
} < /tmp/package.log 2>&1 | tee equery-check-world.log
(Another obvious place to pull in a list of world packages is /var/lib/portage/world, but sometimes this list seems incomplete.)
From here, a user can grep equery-check-world.log for missing files or the modified "grep -v /etc" files and, finally, gather a list of packages for re-install. --Roger 00:29, 10 April 2008 (UTC)
"qcheck -a" is equivalent to the above script. "qcheck" is provided by the package "portage-utils" and provides more customized output.
I still need to get something to rebuild all packages with bad files. From just viewing the output of qcheck, seems this should be much easier now! ;-) --Roger 18:51, 11 April 2008 (UTC)
[edit] etc-update
If dispatch-conf is so much better than etc-update, then why does emerge still suggest ppl use etc-update? 8-) --Evert 12:13, 27 August 2008 (UTC)
