Changes between Version 22 and Version 23 of Development/Templates/ClientSideDepsCheck
- Timestamp:
- Oct 16, 2008, 7:15:11 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Development/Templates/ClientSideDepsCheck
v22 v23 17 17 {{{createrepo /var/www/html/ca}}} 18 18 19 ''Note: if `createrepo` is not installed, you can use [http://gridp03.ft.uam.es/swrep/noarch/createrepo-0.9.5-2.noarch.rpm UAM's build] to get it.'' 19 == Set up YUM on your development machine == 20 20 21 == Set up YUM on your development machine ==22 21 === Install YUM === 23 If YUM isn't installed, you will need to install it on the machine where you normally develop Quattor profiles. Note that that checkdeps.py has been tested with YUM version 3.2.8 and requires at least this version (as used in Fedora 8).24 22 25 ''Note: if you don't have YUM or the version in your distribution is too old (SL4), you can use [http://gridp03.ft.uam.es/swrep/noarch/yum-3.2.19-3.noarch.rpm UAM's build] or you can manage your Quattor server with Quattor, adding [source:templates/trunk/standard/quattor/server/service.tpl quattor/server/service.tpl] to its profile.'' 23 If YUM isn't installed, you will need to install it on the machine where 24 you normally develop Quattor profiles. Note that that checkdeps.py has 25 been tested with YUM version 3.2.8 and requires at least this version 26 (as used in Fedora 8). Do '''NOT''' use version 3.2.19, it's known to 27 fail with this script. 28 29 ''Note: if you don't have YUM or the version in your distribution is too 30 old (below 3.2.8), you'll have to 31 [http://ftp.scientificlinux.org/linux/scientific/52/x86_64/SL/yum-3.2.8-10.sl.noarch.rpm upgrade Yum] 32 or you can manage your Quattor server with quattor, 33 adding [source:templates/trunk/standard/quattor/server/service.tpl quattor/server/service.tpl] 34 to the profile.'' 26 35 27 36 === Set up a directory for YUM === 37 28 38 You will need to create a directory for YUM to store its metadata in. Any directory will do. This will be passed in to checkdeps as its working directory. 29 39 … … 66 76 }}} 67 77 68 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. 78 YUM detects a dependency problem and suggests a solution. The list of 79 enabled repositories was generated from those contained in the profile, 80 so the package suggested should be sensible. 69 81 70 If you add the -p flag, then the program will output Pan lines adding the package (using {{{pkg_repl}}}) for easy cut-and-paste into the offending profile! 82 If you add the -p flag, then the program will output Pan lines adding 83 the package (using {{{pkg_repl}}}) for easy cut-and-paste into the 84 offending profile! 71 85 72 86 == Troubleshooting == … … 77 91 are using an old version and you should upgrade. This script has been 78 92 tested on Yum versions for Fedora 8 and 9. You should use, at least, 79 version 3.2.8 .93 version 3.2.8, shipped with SL 5.2. 80 94 81 If you are using SL4 or SL5, you'll have to build Yum. Or you can get82 the RPM from83 [http://gridp03.ft.uam.es/swrep/noarch/yum-3.2.19-3.noarch.rpm UAM's build].84 95 85 96 === Errors on packages while checking dependencies === 86 97 87 98 First, check your yum configuration. If it's all right, it means that 88 you upgraded Yum following the steps above, but the repository 89 metadata was created with an older version of createrepo. 99 you upgraded Yum following the steps above, but the repository metadata 100 was created with an older version of createrepo. Update your 101 createrepo to an stable version. 90 102 91 Again, you must upgrade createrepo to a newer version, which might 92 involve re-building the RPM or downloading it from 93 [http://gridp03.ft.uam.es/swrep/noarch/createrepo-0.9.5-2.noarch.rpm UAM's repository]. 103 Please note that yum 3.2.19 and createrepo 0.9.5 are known to cause 104 problems. 94 105