Hi everybody, I'm new here.
Some time ago I decided to test my python programming skills on gentoo, so I made a small collection of scripts to make the maintenance, update and cleaning of my gentoo system a little more effortless.
I'd like to know what do you think about it. The scripts and manuals are ready but I haven't made an ebuild yet

I recommend you put your stuff into /usr/local/ and docs into /usr/local/man/ instead of polluting my system with /usr/bin/UU location.

Thank you very much for the suggestion.

mark_doe wrote:

/usr/bin/UU/uu.py
<---- Error in Line 1: from: command not found

Is your python interpreter working properly?
Line 1 in uu.py is:
from subprocess import Popen, call
which I think is pretty normal for python scripts.
I'll add
#!/usr/bin/env python
at the beginning of the scripts in the next release of UU.

As suggested by mark_doe, the new release must be installed in /usr/local/bin/UU, create the aliases to uu.py and uu_def.py and touch /var/log/UU.log.
I suggest to run uu_def before running uu, so you can configure it and avoid errors.

Yes, of course.
If you call uu.py without any arguments it will bring up a curses interface.
If you want to update your system you can use "uu update" which simply calls in order:
"layman -s ALL" (if enabled)
"eix-sync"
"emerge -uDN world"
"revdep-rebuild"
The exit code of each call is registered, so if something goes wrong uu will send a message via "Wall -n"
If you want to do some cleaning you can use "uu clean" which calls in order:
"emerge --depclean"
"eclean-pkg"
"eclean-dist"
"revdep-rebuild"
"emaint -f all"
"eclean-kernel" (if enabled)
If you want to automate minor kernel updates, you can use "uu kernel" which uses a bash script to work; here it is:

You can use uu_def to bring up a ncurses interface for script configuration, it simply writes 1 or 0 in the uu_settings file for each option.
Other arguments (uu fcomp, uu comp, uu fetch, uu sync, etc...) are reduced versions of "uu update".
If you want you can enable logging, you'll find the log in "/var/log/UU.log".