Changes between Version 25 and Version 26 of WikiStart
- Timestamp:
- Nov 8, 2016, 1:46:37 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v25 v26 5 5 RPM is free software, released under the GNU GPL. 6 6 7 [http://yum.baseurl.org/ YUM] is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm. Yum has a plugin interface for adding simple features. Yum can also be used from other python programs via its module interface.7 [http://yum.baseurl.org/ YUM] is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using RPM. YUM has a plugin interface for adding simple features. YUM can also be used from other Python programs via its module interface. 8 8 9 9 == Current Status == … … 11 11 12 12 == Installation == 13 14 13 There are 2 possibilities to install RPM: 15 14 * Arca Noae Package Manager … … 66 65 67 66 === Mirrors === 68 69 67 Please note: if you have netlabs-exp-xxx.rpm or netlabs-rel-xxx.rpm installed, the mirrors will be automatically added on your next update. Install below files only to reach US mirror directly without checking for main site. Also, see the section related to fastestmirror before adding the repo files below. 70 68 … … 72 70 73 71 ==== Stable repository mirror ==== 74 75 72 If you do not intend to use the fastestmirror plugin, you may download this [http://www.2rosenthals.com/rpm.netlabs.org/mirror/netlabs-rel-2rosenthals.repo file] and put it into %UNIXROOT%\etc\yum\repos.d directory. 76 73 … … 80 77 81 78 ==== Experimental repository mirror ==== 82 83 79 If you do not intend to use the fastestmirror plugin, you may download this [http://www.2rosenthals.com/rpm.netlabs.org/mirror/netlabs-exp-2rosenthals.repo file] and put it into %UNIXROOT%\etc\yum\repos.d directory. 84 80 … … 88 84 89 85 === Managing repositories === 90 91 86 To disable a repository, either use: 92 87 … … 96 91 97 92 or simply edit the appropriate .repo file in %UNIXROOT%\etc\yum\repos.d and toggle the enabled line to 0, as in: 98 99 93 enabled=1 100 101 94 to 102 103 95 enabled=0 104 96 … … 110 102 111 103 == Plugins == 112 113 Plugins are python modules which eextend yum's functionality. Plugins are available from a variety of sources. A good place to start looking for plugins is the yum-utils Trac wiki, [http://yum.baseurl.org/wiki/YumUtils here]. 104 Plugins are Python modules which extend YUM's functionality. Plugins are available from a variety of sources. A good place to start looking for plugins is the yum-utils Trac wiki, [http://yum.baseurl.org/wiki/YumUtils here]. 114 105 115 106 === Installing a plugin === 116 117 107 At the very least, a plugin requires a python script (something.py) and a configuration file (something.conf). The script should be placed in %UNIXROOT%\usr\lib\yum-plugins or %UNIXROOT%\usr\share\yum-plugins (create the directory if it does not exist). Alternatively, plugins may be placed in the directory of your choice by adding the following to %UNIXROOT%\etc\yum\yum.conf in the [main] section: 118 108 … … 135 125 136 126 === Enabling the use of plugins === 137 138 127 In order for yum to process any plugins, it is necessary to add the following line to %UNIXROOT%\etc\yum\yum.conf in the [main] section: 139 128 … … 143 132 144 133 === Miscellaneous plugin issues === 145 146 134 Sometimes, a given plugin will not load. When that happens, you should see a message, such as: 147 135 148 136 Plugin "xyz" can't be imported 149 137 150 This may be because the plugin itself (a python script) has one or more unsatisfied dependencies. To determine what may be the cause requires examining the plugin to see what it might need to import and from what other module. Here's an example:138 This may be because the plugin itself (a Python script) has one or more unsatisfied dependencies. To determine what may be the cause requires examining the plugin to see what it might need to import and from what other module. Here's an example: 151 139 152 140 {{{ … … 181 169 as does yum. 182 170 183 In the future, as on other platforms, we hope to have some plugins available for installation via yumitself, which will handle these dependencies.171 In the future, as on other platforms, we hope to have some plugins available for installation via YUM itself, which will handle these dependencies. 184 172 185 173 === The fastestmirror plugin === 186 187 174 ==== Background ==== 188 189 175 In short, the fastestmirror plugin allows yum to make a determination as to which repo is more responsive from your location, given available bandwidth, traffic, routing constraints, and of course, server load. From the comments in the script itself: 190 176 … … 193 179 194 180 ==== Installing the plugin ==== 195 196 181 See [#Installingaplugin Installing a plugin] for more detail, but in general, follow these steps to get fastestmirror up and running quickly: 197 182 … … 222 207 223 208 ==== Tuning ==== 224 225 209 You may want to adjust the behavior of fastestrepo to better suit your conditions. This is done through %UNIXROOT%\etc\yum\pluginconf.d\fastestmirror.conf. Hints are provided there as well as in the beginning comments in the plugin itself. As provided, the configuration should be adequate for most users. 226 210 227 211 ==== Example session ==== 228 229 212 Here's an example of the output when using fastestmirror: 230 231 213 {{{ 232 214 yum check-update … … 252 234 253 235 == Manually setting system architecture == 254 255 236 Please note [http://trac.netlabs.org/rpm/wiki/RpmHowToEndUsers#Platformselectionforbinaries Platform Selection for Binaries] in the How-To for more information on creating and/or modifying the platform text file. 256 237 257 238 == Reporting bugs == 258 259 239 Please report bugs only related to the following modules: 260 240 * rpm