Changes

Jump to: navigation, search

User:Chris Tyler/draft/ops235lab

2,228 bytes added, 11:20, 2 February 2010
Package Management
== 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:* Keep existing contentWhich 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 containing the lynx-2.8.6-24.fc12.x86_64.rpm: <code>rpm -i lynx-2.8.6-17.fc10.i386.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 3.1.0-9.fc12.fc10.noarch.rpm</code> 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># Answer "y" when asked about the installation. This will install the xpdf package. Where did yum get the package?# Issue the command: <code>yum install BackupPC</code># 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. Answer the Investigation 7 question.
== User/Group Management ==
* Keep existing content, add a requirement to create their Matrix user on fedora3 (forcing use of command-line tools).

Navigation menu