Practices Overview
Practice 3-3: Managing Software Packages by Using Package Manager
Overview
In this practice, you work with Package Manager to perform common software package
management tasks, such as adding, removing, and searching for packages. You also learn how to perform a “dry run” on package installations, where you see the changes that will occur on the system when a package is installed, without actually installing the package.
Your primary tasks are as follows: • Launch Package Manager. • Search for a package.
• Perform a dry run on the package installation. • Install a package.
• Verify the package installation.
• Display information about the package and its contents. • Uninstall a package.
In order to prepare for a more comprehensive business application, your senior system
administrator has asked you to install a package called dialog. After successfully installing the package, you are asked to verify its functionality.
Tasks
1. In the Oracle VM VirtualBox Manager window, double-click the Sol11-Server1 virtual machine icon to start it (if it is not already started).
2. In the Oracle VM VirtualBox Manager window, double-click the Sol11-Desktop virtual machine icon to start it (if it is not already started).
3. When the login prompt appears, log in as follows: • Username: oracle
• Password: oracle1
4. Right-click on the desktop to open a terminal window. 5. Switch to root privileges.
oracle@s11-desktop:~$ su –
Oracle Corporation SunOS 5.11 11.0 November 2011 root@s11-desktop:~#
6. On the desktop background, double-click the Add More Software icon. 7. In the File menu, select Manage Publishers.
8. In the Manage Publisher dialog box, verify that the package publisher you verified in Practice 3-1 is enabled. Also, verify that the Origin points to the IPS server. Click OK.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Practices for Lesson 3: Updating and Managing Software Packages
9. In the Package Manager search field, enter dialog and press Enter.
Note that the status icon indicates that the dialog package is not currently installed on this system.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Practices for Lesson 3: Updating and Managing Software Packages
10. Select the dialog package. Note the contents of the General tab at the bottom of the display. This information is derived from the dialog manifest.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Practices for Lesson 3: Updating and Managing Software Packages
11. Click the Files tab to view the files called out in the dialog manifest.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Practices for Lesson 3: Updating and Managing Software Packages
12. Click the Dependencies tab.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Practices for Lesson 3: Updating and Managing Software Packages
13. Click the Notices tab.
14. Click the Versions tab.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Practices for Lesson 3: Updating and Managing Software Packages
15. Select the package. Click the Install/Update button. Then click Proceed in the Install Confirmation dialog box.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Practices for Lesson 3: Updating and Managing Software Packages
16. Verify that the dialog package installed successfully. Close the Install/Update dialog box.
17. Close Package Manager by clicking on the X in the top-right corner.
18. Now you can use the dialog command to use the functionality of the dialog package.
root@s11-desktop:~# dialog
cdialog (ComeOn Dialog!) version 1.1-20100428 Copyright 2000-2007,2008 Thomas E. Dickey
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* Display dialog boxes from shell scripts *
Usage: dialog <options> { --and-widget <options> }
where options are "common" options, followed by "box" options
Special options:
[--create-rc "file"] Common options:
[--ascii-lines] [--aspect <ratio>] [--backtitle <backtitle>] [--begin <y> <x>] [--cancel-label <str>] [--clear] [--colors] [--column-separator <str>] [--cr-wrap] [--date-format <str>] [--default-item <str>] [--defaultno] [--exit-label <str>] [--extra-button] [--extra-label <str>] [--help-button]
[--help-label <str>] [--help-status] [--ignore] [--input-fd <fd>] [--insecure] [--item-help] [--keep-tite] [--keep-window]
[--max-input <n>] [--no-cancel] [--no-collapse] [--no-kill]
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Practices for Lesson 3: Updating and Managing Software Packages
[--no-label <str>] [--no-lines] [--no-ok] [--no-shadow] [--nook] [--ok-label <str>] [--output-fd <fd>] [--output-separator <str>] [--print-maxsize] [--print-size] [--print-version] [--quoted] [--scrollbar] [--separate-output] [--separate-widget <str>] [-- shadow]
[--single-quoted] [--size-err] [--sleep <secs>] [--stderr] [--stdout] [--tab-correct] [--tab-len <n>] [--time-format <str>] [--timeout <secs>]
[--title <title>] [--trace <file>] [--trim] [--version] [--visit- items]
[--yes-label <str>] Box options:
--calendar <text> <height> <width> <day> <month> <year>
--checklist <text> <height> <width> <list height> <tag1> <item1> <status1>...
--dselect <directory> <height> <width> --editbox <file> <height> <width>
--form <text> <height> <width> <form height> <label1> <l_y1> <l_x1> <item1> <i_y1> <i_x1> <flen1> <ilen1>...
--fselect <filepath> <height> <width>
--gauge <text> <height> <width> [<percent>] --infobox <text> <height> <width>
--inputbox <text> <height> <width> [<init>]
--inputmenu <text> <height> <width> <menu height> <tag1> <item1>...
--menu <text> <height> <width> <menu height> <tag1> <item1>...
--mixedform <text> <height> <width> <form height> <label1> <l_y1> <l_x1> <item1> <i_y1> <i_x1> <flen1> <ilen1> <itype>...
--mixedgauge <text> <height> <width> <percent> <tag1> <item1>... --msgbox <text> <height> <width>
--passwordbox <text> <height> <width> [<init>]
--passwordform <text> <height> <width> <form height> <label1> <l_y1> <l_x1> <item1> <i_y1> <i_x1> <flen1> <ilen1>...
--pause <text> <height> <width> <seconds> --progressbox <height> <width>
--radiolist <text> <height> <width> <list height> <tag1> <item1> <status1>...
--tailbox <file> <height> <width> --tailboxbg <file> <height> <width> --textbox <file> <height> <width>
--timebox <text> <height> <width> <hour> <minute> <second> --yesno <text> <height> <width>
Auto-size with height and width= 0. Maximize with height and width= -1.
Global-auto-size if also menu_height/list_height = 0. root@s11-desktop:~#
Note: This display tells you that you can use this package with many commands with the
required options.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Practices for Lesson 3: Updating and Managing Software Packages
19. Use the dialog command.
root@s11-desktop:~# dialog --infobox welcome 3 11
Note that the package name is dialog. Here, you are creating a box with the text welcome in it. The size of the box is 3 characters high and 11 characters wide.
20. After you press the Enter key, the following window will pop up. This window is created by your command.
21. Use the clear command to clear the screen.
The preceding steps have verified the functionality of the dialog package that you installed using Package Manager.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Practices for Lesson 3: Updating and Managing Software Packages