13,420
edits
Changes
no edit summary
Since software repositories are on-line storage areas for software for particular Linux distributions, the Linux administrator can enable (add) or disable (remove) additional software repositories. Usually only the basic or "base" repositories are enabled upon Linux installation.
# Use the yum command to install the package called "x". Were you able to install the file?
# As root, issue the following command: <b><code><span style="color:#3366CC;font-size:1.3em;">more /etc/yum.conf</span></code></b>
# 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.
# 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: [ [http://wiki.centos.org/AdditionalResources/Repositories Available Repositories for Centos] ].
# After viewing the repository list, why should you be cautious with adding just any repository into your yum.conf file?
# Obtain the URL for the repository: '''SerNet Samba Repository'''''''''. You will use in the next command you issue# To add the repository, issue the command:<b><code><span style="color:#3366CC;font-size:1.3em;">yum-config-manager --add-repo URL_of_SerNET_Samba_Repository</span></code></b># To enable the repository in yum, issue the following command: <b><code><span style="color:#3366CC;font-size:1.3em;">yum-config-manager --enable repository_name</span></code></b># 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># 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># Now use the yum command to install the package called "x". Were you successful, and if so, why?
'''Answer Investigation 3 observations / questions in your lab log book.'''