Line 2: |
Line 2: |
| ==Update contribs== | | ==Update contribs== |
| | | |
− | ===Background=== | + | ===Backgrund=== |
− | {{Note box|msg=These scripts depend on a yum feature introduced in Centos 6 / SME 9, and will not work on earlier versions}}
| |
− | Due to dependencies, the installation of contribs requires very often the installation of rpms coming from 3rd party (non-SME) repositories.
| |
| | | |
− | Enabling 3rd party repositories during a general <tt>yum update</tt> can pull in packages that are incompatible with SME server such as newer versions of PHP, mysql, samba, etc.
| + | Due to dependencies, the installation of contribs requires very often the installation of rpms coming from other repositories. |
| | | |
| Updating the installed contribs needs sometimes to update the dependencies or sometimes only the dependencies get updated. | | Updating the installed contribs needs sometimes to update the dependencies or sometimes only the dependencies get updated. |
Line 15: |
Line 13: |
| | | |
| ===Scripts=== | | ===Scripts=== |
− | 3 scripts are available at this time:
| + | 2 scripts are available at this time: |
− | | |
− | ====yumcheck.sh====
| |
− | | |
− | yumcheck.sh can be used to check for and optionally install updates to packages that were originally installed from a 3rd party repository.
| |
− | | |
− | yumcheck.sh is an attachment to [[bugzilla:10158]]
| |
− | | |
− | Install at the sme server shell using:
| |
− | <nowiki>curl -s https://bugs.contribs.org/attachment.cgi?id=5828 |sed -e 's/\r//' >/usr/local/bin/yumcheck.sh
| |
− | chmod +x /usr/local/bin/yumcheck.sh
| |
− | </nowiki>
| |
− | | |
− | Usage:
| |
− | : <tt>yumcheck.sh</tt>
| |
− | :: Check for updates for all packages installed from non-standard repos. Output only info for packages that need updates
| |
− | : <tt>yumcheck.sh update</tt>
| |
− | :: Run in verbose mode, do the updates, prompt the user after checking each repo if updates are pending
| |
− | : <tt>yumcheck.sh update -q -y</tt>
| |
− | :: Show only those items to be updated, do the updates, and answer 'yes' to each suggested update.
| |
− | | |
− | Notes:
| |
− | * Using the default settings will list updates from the enabled repositories multiple times (once for each disabled repo with installed packages)
| |
− | * Since this command starts from the output of <tt>/sbin/e-smith/audittools/newrpms</tt>, it is possible to get errors. That is, if you configure a repository, install a package from it, then remove the configuration, this script will error.
| |
| | | |
| ====script 1==== | | ====script 1==== |
Line 144: |
Line 119: |
| * asks for Y/N and runs the update | | * asks for Y/N and runs the update |
| | | |
− | | + | For more details, see the topic of the forum: https://forums.contribs.org/index.php/topic,52795.0.html |
− | ===Related Information===
| |
− | ====Forum====
| |
− | :[https://forums.contribs.org/index.php/topic,52795.0.htm How to update completely and properly a SME?] | |
− | ====Bugzilla====
| |
− | :{{#bugzilla:columns=id,product,modified,component,summary
| |
− | |id=10158
| |
− | |sort=version,component,id
| |
− | |disablecache=1
| |
− | |noresultsmessage="Bug not found"
| |
− | |headers=show}}
| |
| | | |
| [[Category: Howto]] | | [[Category: Howto]] |