Changes

Jump to: navigation, search

Lab 3 Warnings / Debrief

558 bytes added, 07:59, 13 October 2015
no edit summary
We will look at a couple methods of installing software: A traditional method ('''compiling source code''') and a more modern method ('''yum install''')
 <u>'''Install Method #1: Compiling Source Code'''</u>
This is the original way of installing software in Linux / Unix.
'''Steps to Compile Source Code''':
# Obtain compressed file containing source code (usually a "zipped tarball")<br>eg. '''wget [ URL of zipped tarball ]'''
 
# Decompress zipped tarball. For example '''tar xzvf [ filename.tar.gz | filename.tgz ]'''<br> Note: You can compress (create archives) by using the tar command as well.<br>For example: '''tar czvf [ filename.tar.gz ] [ directories or files to archive ]'''
# Change to directory containing source code. You may need to run a script called '''./config''' (if present) to check for some dependency issues.
<u>'''Install Method #2: Using the '''yum''' Utility'''</u>
This is a newer and more preferred method of installing software by command-line on a Redhat / Centos / Fedora Linux distribution. The yum utility is a program which is a <u>'''wrapper'''</u> for the rpm command. A wrapper program simply means a program that uses another utility (in this case, the rpm command). We have used the rpm command to query or determine information regarding installed applications on our Linux systems. When your Linux operating systems were installed, the installation DVD or network media contained rpm files that were installed on the system. Rpm files are simply pre-compiled programs that make it easier to install applications for a Linux system.
'''Steps to Install using yum Program''':
#List available repositories that you are connected to using the command: '''yum repolist''' (you can use the yum install command to manually add repositories)# To clean-up the repository list (including downloading new applications in added repositories), issue the command: '''yum clean all''' # To install of remove applications, issue the commands as root: '''yum install packagename''' or '''yum remove packagename'''# To install applications contained on local media (eg. installation DVD), issue the command: '''yum localinstall [ full_pathname_to_xchat_rpm_file ]'''# To provide information regarding installed application, issue the command: '''yum info packagename''' or '''rpm -qi packagename''' 
* '''FOLLOW THE INSTRUCTIONS CAREFULLY''' in terms of access safe mode, or changing root's password.<br><br>
* You need to be root in order to use '''yum''' utility!
* Remember to backup your VMs after you have completed lab3! Perhaps you can use that shell script to backup all VMs!<br><br>
* Remember to backup your VMs after you have completed lab3! Perhaps you can use that shell script to backup all VMs!<br><br>
* If need to start-over, you can right-click on VM in Virtual Machine Manager, and remove (Make certain "delete files" is also selected, so you can re-use VM name).
13,420
edits

Navigation menu