Return Codes of YaST Online Update command line tool

This document (3755125) is provided subject to the disclaimer at the end of this document.

Environment

Novell SUSE Linux Enterprise Server 9
Novell Linux Point of Service 9

Situation

You want to use the command-line toolonline-updatein a script to automate the online update process.
For this you need the return code of the command line tool. (online_update)

Resolution

The return code is depending on which option you will use.

Check for new updates:

# online_update --check

-1 ERROR(Media:login failed)
-1 ERROR(Media:connection failed)
0 No updates available
1 Updates available
2 Security updates available.

Quick Check for new updates:
(did not check the update type like security, recommended, etc):

# online_update --quick-check

0 No new updates available
1 new updates available
-1 Unable to check for updates

General online update:

# online_update

0 Update successful
-1 ERROR(Media:connection failed)
-1 ERROR(Media:login failed)
-1 ERROR(You:RPM has invalid signature.)


Please note that for some undefined errors the return code255 will be used.

Additional Information


Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3755125
  • Creation Date: 06-Sep-2007
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Point of Service
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center