Open main menu

CDOT Wiki β

Changes

OPS235 Lab 3 - CentOS7

1 byte added, 18:38, 28 April 2015
no edit summary
<ol>
<li value="911">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"</span></code></b></li>
<li>Verify that the '''xchat''' command has been installed.</li>
<ol>
<li value="1213">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>Before adding a repository to the yum.conf file, you need to see which repositories you want to add, and obtain the appropriate URL for those repositories. View the following link to see a general listing of repositories:<br>[ [http://wiki.centos.org/AdditionalResources/Repositories Available Repositories for Centos] ].</li><li>After viewing the repository list, why should you be cautious with adding just any repository into your yum.conf file?</li><li>Obtain the URL for the repository: '''extra EPEL repositories'''. You will use in the next command (see below).</li><li>To add the repository, issue the command: <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: <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>Perform a NetSearch to compare compiling source code vs using the yum command. What are the three major features that the '''yum''' command has that '''compiling source code''' doesn't?</li><li>Unused and unneeded software can present a security risk and ties up disk space needlessly.</li><li>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