Line 24: |
Line 24: |
| | | |
| Install at the sme server shell using: | | 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 | + | <nowiki>curl -s https://bugs.contribs.org/attachment.cgi?id=5837 |sed -e 's/\r//' >/usr/local/bin/yumcheck.sh |
| chmod +x /usr/local/bin/yumcheck.sh | | chmod +x /usr/local/bin/yumcheck.sh |
| </nowiki> | | </nowiki> |
Line 31: |
Line 31: |
| : <tt>yumcheck.sh</tt> | | : <tt>yumcheck.sh</tt> |
| :: Check for updates for all packages installed from non-standard repos. Output only info for packages that need updates | | :: Check for updates for all packages installed from non-standard repos. Output only info for packages that need updates |
| + | :: Indicate before exit if any packages were installed using ''yum localinstall'' |
| + | :: Indicate before exit if the server requires ''signal-event post-upgrade; signal-event reboot'' |
| : <tt>yumcheck.sh update</tt> | | : <tt>yumcheck.sh update</tt> |
| :: Run in verbose mode, do the updates, prompt the user after checking each repo if updates are pending | | :: 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> | | : <tt>yumcheck.sh update -q -y</tt> |
| :: Show only those items to be updated, do the updates, and answer 'yes' to each suggested update. | | :: Show only those items to be updated, do the updates, and answer 'yes' to each suggested update. |
| + | : <tt>yumcheck.sh @/ </tt> |
| + | :: List all rpms that have been installed using ''yum localinstall'' |
| + | : <tt>yumcheck.sh @smecontribs @sogo @/</tt> |
| + | :: Check for updates from "smecontribs", "sogo3", and any locally installed rpms |
| + | :: Note that "@sogo" will be expanded to "sogo3" at runtime. Likewise, "@sme" would expand to "smecontribs" |
| | | |
| Notes: | | Notes: |
| * Using the default settings will list updates from the enabled repositories multiple times (once for each disabled repo with installed packages) | | * 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. | | * 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. |
| + | * Arguments starting with "@" are stripped out and handled separately. If *all* arguments start with "@", the default "check-update -q" will be passed to yum. |
| | | |
| ====script 1==== | | ====script 1==== |