Open main menu

CDOT Wiki β

Changes

OPS235 Lab 4 - Fedora17

3,257 bytes removed, 15:40, 28 May 2013
no edit summary
# Grow the root filesystem to fill the available space.
= Package Management =
== Investigation 5: How do you query the RPM database? ==
 
RPM maintains a database of installed software. This information is very useful to system administrators. In Lab 3, you queried that database using RPM with the -q argument. When you query the RPM database, you can separately specify:
* Which packages you want information about, using a select-option
* What information you want about those packages, using a query-option
 
Steps:
 
1. Using information from the man page for <code>rpm</code>, fill in this information:
{|width="100%" border="1"
|-
!Option
!Meaning
!Is this a select-option or a query-option?
|-
| -a
|Select all packages
|select-option
|-
| -l
|
|
|-
| -p ''filename'''
|Select this uninstalled package
|
|-
| -i
|Show the package license, packager, URL, description, and other general information.
|
|-
| -f '''filename'''
|
|
|-
|'''packagename'''
|Select just this package
|select-option
|}
 
Make sure that your lab notes answer the Investigation 5 question.
 
== Investigation 6: How do you install and remove software with RPM? ==
 
# Change to the directory on your Installation DVD containing the file: <code>lynx-2.8.7-2.fc13.x86_64.rpm</code>
# Execute this command: <code>rpm -i lynx-2.8.7-2.fc13.x86_64.rpm</code>
# Issue an RPM query to check that lynx is installed.
# Issue this command: <code>rpm -e lynx</code>
# Issue an RPM query to verify that lynx is no longer installed.
# Issue this command: <code>rpm -i BackupPC-3.1.0-13.fc13.noarch.rpm</code> and note the result
 
Answer the Investigation 6 question.
 
== Investigation 7: How do you install and remove software with ''yum''? ==
 
{{Admon/note|Internet Connection|In order for yum to work you require a connection to the Internet. Establish this connection by using the browser to log into SeneNET}}
 
# Change to your home directory.
 
# Issue the command: <code>yum install BackupPC</code> and answer <code>y</code> to the question about installation.
#* Where did ''yum'' get the BackupPC software?
#* Why could ''yum'' install BackupPC when rpm couldn't?
# Issue an RPM query to verify that BackupPC is installed.
# Issue the command: <code>yum remove BackupPC</code>
# Issue an RPM query to verify that BackupPC is no longer installed.
# Install <code>nled</code> using '''yum'''.
# Issue this command: <code>yum info cups</code>
#* Based on the result, do you think that cups is a useful package for your system? If not, try removing it.
# Unused and unneeded software can present a security risk and ties up disk space needlessly. Find at least 4 other packages that you're not using on your system, and remove them. Be careful to ensure that removing those packages does not also remove other software that you do need.
 
Answer the Investigation 7 question.
= User/Group Management =
== Investigation 85: The /etc/passwd file ==
# Look at the /etc/passwd file.
# The user IDs of real users (people) are different from the user IDs of system accounts. What is the pattern?
== Investigation 96: Adding users ==
{{Admon/note|Use f13host|Perform these steps in the '''f13host''' system. Due to a configuration issue, these steps may not work normally in the fedora1 virtual host (previous versions of this lab used fedora1 for this investigation).}}
# Add your matrix account user to '''fedora3'''.
== Investigation 107: Managing Groups ==
{{Admon/note|Use fedora1|Perform these steps in the '''fedora1''' virtual machine.}}
Be sure to record your observations in your lab notes.
== Investigation 118: Deleting users ==
{{Admon/note|Use fedora1|Perform these steps in the '''fedora1''' virtual machine.}}
== Investigation 129: Modifying users ==
{{Admon/note|Use fedora1|Perform these steps in the '''fedora1''' virtual machine.}}
# Two PVs on '''fedora1'''.
# Separate <code>/home</code> filesystem (on an LV) in '''fedora1'''.
# Larger <code>/home</code> on '''fedora2''' and '''fedora3'''.
# Unnecessary/unused packages have been deleted (list at least 4, and show that they are no longer installed).
<!-- # Unnecessary accounts and groups have been removed on '''fedora1'''. -->
# Account created on '''fedora3''' matching your Matrix account.
# '''nled''' installed on the host (disk pack - main system '''f13host''').
# Answer to this question:
#* What is the license of the '''nautilus''' package?
# Fresh backup of the virtual machines.
# What is a VG? PV? LV?
# What does yum do that rpm does not?
# What is the total size of the "main" VG on your system?
# How do you create a LV?
# How would you increase the size of the root filesystem by 50 MB?
# What is the purpose of <code>/etc/fstab</code>?
# What did you have to do in order to move the home directories onto a new filesystem? Why?
13,420
edits