yum nag plugin

November 2, 2009

James and I were talking on irc about things we see in bugs that make us cringe. That people  are doing on their systems with yum or rpm or vaguely related. It reminded me of this list of  sysadmin aphorisms that I worked on about 3 or 4 yrs ago now.

So I was thinking what we need is a  yum nag plugin that when you run it as root it would emit some warnings about things you probably don’t want to be doing. Examples:

1. Warning: You have 10+ plugins installed and enabled, this is probably going to have odd effects

2. Warning: You have more than 5000 pkgs installed. Do you really need all that stuff?

3. Warning: Your system has been up for 528 days. Massive uptimes aren’t  as cool as you think

4. Warning: We’ve search ~/.bash_history and found evidence of –force and/or –nodeps – these are not wise.

5. Warning: You’ve disabled gpg checking. Bad, Bad.

6. Warning: You have 10 repositories enabled and 30 available. Seriously?

7. Warning: You have 4 versions of perl|python|ruby installed – this is just going to end in tears

8. Warning: Rawhide is enabled. I hope you know what you’re doing.

9. Warning: You have kernel modules installed. Good luck with those distro upgrades.

 

What else should be added here?