RED HAT SYSTEM ADMINISTRATION I
3.6. Practice: Viewing Package Documentation
Document Version: 2015-12-28
Copyright © 2015 Network Development Group, Inc.
[Link]
NETLAB Academy Edition, NETLAB Professional Edition, and NETLAB+ are registered trademarks of Network Development Group, Inc.
“Red Hat,” Red Hat Linux, and the Red Hat “Shadowman” logo are trademarks or registered trademarks of Red Hat, Inc. in the US
and other countries.
3.6. Practice: Viewing Package Documentation
Contents
Introduction ........................................................................................................................ 3
Outcomes ............................................................................................................................ 3
Lab Topology ....................................................................................................................... 4
Lab Settings ......................................................................................................................... 5
1 Guided Exercise........................................................................................................... 6
12/28/2015 Copyright © 2015 Network Development Group, Inc. [Link] Page 2
3.6. Practice: Viewing Package Documentation
Introduction
In this lab, you will research the documentation under /usr/share/doc to answer
questions. Use your choice of less, gedit, or a browser to view the documentation file
contents.
Outcomes
This practice exercise will provide more familiarity with the types of information that
developers include with their software packages.
12/28/2015 Copyright © 2015 Network Development Group, Inc. [Link] Page 3
3.6. Practice: Viewing Package Documentation
Lab Topology
12/28/2015 Copyright © 2015 Network Development Group, Inc. [Link] Page 4
3.6. Practice: Viewing Package Documentation
Lab Settings
The information in the table below will be needed in order to complete the lab. The
task sections below provide details on the use of this information.
Virtual Machine IP Address Account Password
(if needed) (if needed)
Server1 Machine [Link] student student
Desktop1 Machine [Link] student student
12/28/2015 Copyright © 2015 Network Development Group, Inc. [Link] Page 5
3.6. Practice: Viewing Package Documentation
1 Guided Exercise
Before you begin...
Access the graphical login screen of the Server1 virtual machine.
The topology includes two virtual machines that are accessible to users. Take care to
perform the tasks as instructed, including using the appropriate virtual machine as
directed.
1. Log in as student using the password student.
2. Open a terminal window that will provide a bash prompt.
Select Applications → Utilities → Terminal.
3. Where can you find the latest news about the vim project?
[student@server1 ~]$ cd /usr/share/doc
[student@server1 doc]$ less vim-common-*/[Link]
4. View the vim-common README and search for “news”.
Press / followed by the search pattern news. Press Enter.
5. Press q to return to the terminal.
12/28/2015 Copyright © 2015 Network Development Group, Inc. [Link] Page 6
3.6. Practice: Viewing Package Documentation
6. What is the wiki URI for the yum package?
[student@server1 doc]$ less yum-3*/README
a. Search for “wiki” in /usr/share/doc/yum-3*/README.
7. What examples are provided for the command-line bc calculator?
[student@server1 doc]$ ls –l bc-*/Examples
8. How would you read the provided GRUB2 manual?
[student@server1 doc]$ firefox grub2-tools-*/[Link]
12/28/2015 Copyright © 2015 Network Development Group, Inc. [Link] Page 7
3.6. Practice: Viewing Package Documentation
9. What software provides its document as a separate package?
Use yum to display only those packages that contain “-doc”, “-docs”, or “-
documentation” in the package name. When finished, return to the home
directory.
[student@server1 doc]$ yum list *-doc*
[student@server1 doc]$ cd
[student@server1 ~]$
10. Finish your session with the bash shell.
[student@server1 ~]$ exit
12/28/2015 Copyright © 2015 Network Development Group, Inc. [Link] Page 8