| 34 | | checkdeps is available in the QWG tree at |
| | 34 | checkdeps is available in the SCDB distribution at src/utils/profiles/checkdeps |
| | 35 | |
| | 36 | = Run checkdeps = |
| | 37 | Here is the output when your profile is consistent: |
| | 38 | {{{ |
| | 39 | [childss@frascati checkdeps]$ ./checkdeps.py -x gridgate.cs.tcd.ie.xml -c yum.quattor.conf -r ~/yumroot/ -g |
| | 40 | checkdeps: Reading package list from target file gridgate.cs.tcd.ie.xml |
| | 41 | checkdeps: Adding 1007 packages to install list |
| | 42 | checkdeps: Calling YUM to check dependencies for package list |
| | 43 | checkdeps: YUM didn't need to add any packages, profile seems OK. |
| | 44 | }}} |
| | 45 | |
| | 46 | If we remove a package from the profile and run again, we get this: |
| | 47 | {{{ |
| | 48 | [childss@frascati checkdeps]$ ./checkdeps.py -x gridgate.cs.tcd.ie.broken.xml -c yum.quattor.conf -r ~/yumroot/ -g |
| | 49 | checkdeps: Reading package list from target file gridgate.cs.tcd.ie.broken.xml |
| | 50 | checkdeps: Adding 1006 packages to install list |
| | 51 | checkdeps: Calling YUM to check dependencies for package list |
| | 52 | YUM wants to add 1 new packages that are missing from profile: |
| | 53 | |
| | 54 | Package Version Needed by |
| | 55 | ================================================================================ |
| | 56 | glite-security-voms-admin-interface 1.0.5-1.noarch lcg-CE_torque |
| | 57 | }}} |
| | 58 | |
| | 59 | YUM detects a dependency problem and suggests a solution. The list of enabled repositories was generated from those contained in the profile, so the package suggested should be sensible. |
| | 60 | |
| | 61 | = TODO = |
| | 62 | * Tool for automatically running createrepo on all Quattor repositories on the server |
| | 63 | * Output Pan code for adding the missing packages |
| | 64 | * Remove the need for a YUM config file |