Changes

Jump to: navigation, search

OPS235 Lab 3 - CentOS7

282 bytes added, 12:29, 24 September 2018
no edit summary
[[Category:OPS235]][[Category:OPS235 Labs]]
{{Admon/caution|THIS IS AN OLD VERSION OF THE LAB|'''This is an archived version. Do not use this in your OPS235 course.'''}}
= LAB PREPARATION =
<ol>
<li value="14">We will now look at how we can add different repositories to our '''c7host''' machine.</li><li>As root, issue the following command: <b><code><span style="color:#3366CC;font-size:1.3em;">yum repolist</span></code></b></li><li>Take a few moments to view the contents of the file. Do you see which repositories are used by the '''yum''' command? Write down the repositories in your lab logbook.</li><li>View the following link to see a general listing of repositories:<br>[ [http://wiki.centos.org/AdditionalResources/Repositories Available Repositories for Centos] ].</li><li>To add this repository, issue the command:<br><b><code><span style="color:#3366CC;font-size:1.3em;">wget https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-56.noarch.rpm</span></code> </b><br>Or if you receive a error message, try the command: <br><b><code><span style="color:#3366CC;font-size:1.3em;">yum install epel-release</span></code></b></li><li>To enable the repository in yum, issue the following command:<br><b><code><span style="color:#3366CC;font-size:1.3em;">yum install epel-release-7-56.noarch.rpm</span></code></b></li><li>To clean-up the repository list (including downloading new applications in added repositories), issue the command: <b><code><span style="color:#3366CC;font-size:1.3em;">yum clean all</span></code></b></li><li>To verify that you have added the repository, you can issue the command: <b><code><span style="color:#3366CC;font-size:1.3em;">yum repolist</span></code></b></li><li>Unused and unneeded software can present a security risk and ties up disk space needlessly. Find '''at least 4 other packages''' to remove on your c7host machine(for example: '''sound & video''', '''games''', etc) that you're not using on your system. Be careful to ensure that removing those packages does not also remove other software that you do need.</li>
</ol>
'''Answer Investigation 3 observations / questions in your lab log book.'''
 
= INVESTIGATION 3: LOOKING AHEAD =
&#35;!/bin/bash <br>
<br>
&#35; packageInfo.bash [application-name]<br>
&#35; Purpose: Generates a report to displaying specified information of installed software<br>
&#35;<br>&#35; USAGE: ./packageInfo.bash[application-name]<br>
&#35;<br>
&#35; Author: *** INSERT YOUR NAME ***<br>
<br>
cat &lt;&lt;+<br>
File "/root/package-info.txt" can has been created<br>
+<br>
</code>

Navigation menu