Changes

Jump to: navigation, search

OPS235 Lab 3 - Fedora17

1 byte removed, 15:01, 18 September 2012
no edit summary
:* [http://www.centos.org/docs/5/html/yum/ Using the YUM Utility]
= Software Package Management =
 
== Investigation 1: 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
 
'''Perform the following steps:'''
 
# Using information from the man page for <code>rpm</code>, fill in this information:
 
{|width="100%" border="1" cellpadding="5"
|-
!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
|}
 
'''Answer the Investigation 1 observations / table contents in your lab log book.'''
 
 
== Investigation 2: 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-7.fc16.x86_64.rpm</code>
# Execute this command: <code>rpm -i lynx-2.8.7-7.fc16.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.2.1-6.fc16.x86_64.rpm</code> and note the result
 
'''Answer the Investigation 2 observations / questions in your lab log book.'''
 
== Investigation 3: 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.
 
<ol>
<li value="2">Issue the command: <code>yum install BackupPC</code> and answer <code>y</code> to the question about installation.
<ol type="a">
<li>Where did ''yum'' get the BackupPC software?</li>
<li>Why could ''yum'' install BackupPC when rpm couldn't?</li>
</ol>
</li>
<li>Issue an RPM query to verify that BackupPC is installed.</li>
____________________________________________________
<li>Issue the command: <code>yum remove BackupPC</code></li>
<li>Issue an RPM query to verify that BackupPC is no longer installed.</li>
____________________________________________________
<li>Install <code>nled</code> using '''yum'''.</li>
____________________________________________________
<li>Issue this command: <code>yum info cups</code></li>
</ol>
::* Based on the result, do you think that cups is a useful package for your system? If not, try removing it.
<ol>
<li value="8">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.</li>
</ol>
 
'''Answer the Investigation 3 observations / questions in your lab log book.'''
=Logical Volume Management=
{{Admon/note|VM Backups and Recovery|Most of these investigations will take place in your virtual machines. If you make a significant mistake, your virtual machine may not boot. Remember that you created backups of your virtual machines in Lab 2, and you can restore them if something goes wrong.<br /><br />'''Remember: if you did not create backups for all of your VMs, then you don't have any restoration points to fall-back to!'''|}}
== Investigation 14: Adjusting Sizes of lv_root and lv_home ==
=== Why Readjust sizes of lv_root and lv_home? ===
</ol>
'''Answer the Investigation 1 4 observations / questions in your lab log book.'''
== Investigation 25: How are LVMs managed using system-config-lvm? ==
'''Perform this investigation on the VM named ''<u>fedora2</u>''.'''
</ol>
'''Answer the Investigation 2 5 observations / questions in your lab log book.'''
== Investigation 36: How are LVMs managed using Command-Line Tools? ==
'''Perform this investigation on the VM named ''<u>fedora3</u>''.'''
<li>Shrink <code>'''lv_archive'''</code> to '''1G''' (Refer to the section involving reducing file-systems in use [[Logical Volume Management]].<br />You should be using the commands: <code>umount</code>, <code>resize2fs</code>, <code>lvreduce</code>, and <code>mount</code>)</li> -->
</ol>
 
'''Answer the Investigation 3 observations / questions in your lab log book.'''
 
= Software Package Management =
 
== Investigation 4: 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
 
'''Perform the following steps:'''
 
# Using information from the man page for <code>rpm</code>, fill in this information:
 
{|width="100%" border="1" cellpadding="5"
|-
!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
|}
 
'''Answer the Investigation 4 observations / table contents in your lab log book.'''
 
 
== Investigation 5: 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-7.fc16.x86_64.rpm</code>
# Execute this command: <code>rpm -i lynx-2.8.7-7.fc16.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.2.1-6.fc16.x86_64.rpm</code> and note the result
 
'''Answer the Investigation 5 observations / questions in your lab log book.'''
 
== Investigation 6: 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.
 
<ol>
<li value="2">Issue the command: <code>yum install BackupPC</code> and answer <code>y</code> to the question about installation.
<ol type="a">
<li>Where did ''yum'' get the BackupPC software?</li>
<li>Why could ''yum'' install BackupPC when rpm couldn't?</li>
</ol>
</li>
<li>Issue an RPM query to verify that BackupPC is installed.</li>
____________________________________________________
<li>Issue the command: <code>yum remove BackupPC</code></li>
<li>Issue an RPM query to verify that BackupPC is no longer installed.</li>
____________________________________________________
<li>Install <code>nled</code> using '''yum'''.</li>
____________________________________________________
<li>Issue this command: <code>yum info cups</code></li>
</ol>
::* Based on the result, do you think that cups is a useful package for your system? If not, try removing it.
<ol>
<li value="8">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.</li>
</ol>

Navigation menu