Open main menu

CDOT Wiki β

Changes

OPS245 Lab 3 dev

886 bytes removed, 22:08, 11 February 2023
Part 1: Managing Software and Repositories with DNF
'''Perform the following steps:'''
#Make certain that you are in your '''r9host''' machine.#Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">sudo dnf install lynx</span></code></b>#Now issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">dnf info lynx</span></code></b>#How can you tell if the lynx package has been installed?#To remove the lynx package issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">sudo dnf remove lynx</span></code></b># Verify that the lynx package has been removed. Also verify that the application called: We will now look at how we can add different repositories to our '''xchatr9host''' is not installedmachine.# Use Issue the wget following command to download the xchat rpm binary from the following URL:::<b><code><span style="color:#3366CC;font-size:1.2em3em;">http://mirror.centos.org/centos/7/os/x86_64/Packages/xchat-2.8.8-25.el7.x86_64.rpmdnf repolist</span></code></b><br>::What do you think is the purpose of the numbers also contained in # Take a few moments to review the filename?<ol><li value="8">Issue the command: <b><code><span style="color:#3366CC;font-size:1output.2em;">sudo dnf localinstall xchat-2.8.8-25.el7.x86_64.rpm</span></code></b></li><li>Verify that Do you see which repositories are used by the '''xchatdnf''' command has been installed.</li><li>Run ? Write down the xchat applicationrepositories in your lab logbook.</li></ol>
{| width="40%" align="right" cellpadding="10"|- valign="top"|colspan="2"|{{Admon/tip|IRCs: A Great Tool for Linux Administrators|Although Search Engines (like Google) are a system administrator's good friendNext, Internet Relay Chats (IRCs) are also a great tool for system administrators to help obtain information. Many website offer information on how to connect to IRCs (both nodes (eg. FreeNode) and irc channel (eg. #linux). You can now use your newly-created application called we will add the '''xchat''' to do this.<br><br><u>'''A few tips to consider with IRCsepel repository'''</u>:<ul><li>Do your Homework (read docs first!)</li><li>Ask specific questions</li><li>Not all chats are friendly</li><li>Be patient when asking questions (use courtesy)</li><li>The advice is free (you get what you pay Extra Packages for!Enterprise Linux)</ul>}}|} <ol><li value="11">We will now look at how we can add different repositories to our and install '''r9hostAlien''' machine.</li><li>Issue the following command: <b><code><span style="color:#3366CC;font-size:1.3em;">dnf repolist</span></code></b></li><li>Take a few moments to review the output. Do you see which repositories are used by the '''dnfAlien''' command? Write down the repositories in your lab logbookis a tool for converting packages for other package managers (such as debian, which end with .</li><li>View the following link deb) to see a general listing of repositories:<br>[ [http://wikianother (such as red hat, which end with .centosrpm).org/AdditionalResources/Repositories Available Repositories for Centos] ].</li><li># To add the epel repository, issue the commands:<br><b><code><span style="color:#3366CC;font-size:1.3em;">sudo subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms<br>sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm</span></code></b># Install alien:<b><code><span style="color:#3366CC;font-size:1.3em;">sudo dnf install alien</lispan><li/code></b># To verify that you have added the repository, you can issue the command: <b><code><span style="color:#3366CC;font-size:1.3em;">dnf repolist</span></code></b># Verify that the lynx package has been removed.# Also verify that the application called: '''packettracer''' is not installed.# Login to [https://www.netacad.com/ Cisco Netacad] and download Packet Tracer '''Ubuntu Desktop Version'''# Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">sudo dnf localinstall xchat-2.8.8-25.el7.x86_64.rpm</lispan><li/code></b># Verify that the '''xchat''' command has been installed.# Run the xchat application# 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 r9host 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>
===Part 2: Compiling Source Code from a Downloaded Archived File===