Changes

Jump to: navigation, search

OPS235 Lab 3

1,047 bytes removed, 09:10, 21 June 2016
no edit summary
#To remove the elinks package issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">yum remove elinks</span></code></b>
# Verify that the elinks package has been removed. Also verify that the application called: '''xchat''' is not installed.
# Place your Centos7 Full Install DVD into Use the DVD drive of your hostmachine.# View the contents of the DVD drive using the file manager application (called '''nautilus'''). Change wget command to download the Packages subdirectory. What does this subdirectory contain?# Use a graphical file manager to view xchat rpm binary from the contents of the DVD in your machine.following URL:<br><brb>'''TIP:''' If you are having problems locating pathname to your DVD, open a terminal, login as '''root''', issue the command: '''mount''', and look for a path-name containing your Centos Install DVD and use that path-name when required later in this section.<brcode><br>span style="color:# Open a shell terminal and use the Linux command '''cd''' to change to the '''Packages''' sub3366CC;font-directory (hintsize: similar path-name as USB, but use '''Centos 1.2em;">http://mirror.centos.org/centos/7 /os/x86_64/Packages''' and use '''quotes''' " " around full path/xchat-2.8.8-name since there are spaces within the pathname)23.el7.x86_64.<br>There are a few ways for yum to install applications:<ul><li>'''yum localinstall''' (install rpm files located from the machine via downloads to hard-drive, DVD, etc)</li><li>'''yum install''' (install applications from an online repository)<br><brspan></licode></ulb> <olbr> <li value="11">Within the '''Packages''' subdirectory of the '''Centos7 Full Install DVD''', locate the '''rpm''' file that contains the '''xchat''' application (note the full path-name of the file). What do you think is the purpose of the numbers also contained in the filename?</li> <li># Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">yum localinstall "full_pathname_to_xchat_rpm_file"xchat-2.8.8-23.el7.x86_64.rpm</span></code></b></li> <li># Verify that the '''xchat''' command has been installed.</li></ol># Run the xchat application. What does it say if you run this application as root?
{| width="40%" align="right" cellpadding="10"
<ol>
<li value="1411">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-5.noarch.rpm</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-5.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>
13,420
edits

Navigation menu