Open main menu

CDOT Wiki β

Changes

OPS245 Lab 3 dev

10 bytes added, 22:25, 10 February 2023
Part 1: Managing Software and Repositories with DNF
<ol>
<li value="11">We will now look at how we can add different repositories to our '''r9host''' 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 '''dnf''' 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 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></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;">dnf 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 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>