Week2 Lab Biss 155

Only available on StudyMode
  • Topic: RPM Package Manager, Red Hat, Fedora
  • Pages : 10 (2376 words )
  • Download(s) : 19
  • Published : February 14, 2013
Open Document
Text Preview
Objectives:
    
➢ Learn the fundamentals for using an application package manager. ➢ Understand the Red Hat Package Manager (RPM) command and options. ➢ Demonstrate the use of RPM to install, update, and remove packages.

Resources Needed

➢ One classroom workstation, lab workstation, or home PC. ➢ One NETW-240 hard drive loaded with Fedora Linux or iLab access. ➢ Week 2 Lab 2 assignment with attached answer sheet.
➢ Internet access from the Linux workstation

Deliverables:

➢ Using the rpm command and options to load fedora package modules. ➢ Completion of steps included in the Procedures below. ➢ Submittal of lab answer sheet to the instructor for grading.

The Red Hat Package Manager (RPM), recently renamed the Resource Package Manager (RPM), is an easy-to-use tool that automatically installs, updates, or removes Linux software packages. RPM is designed to work with source (un-compiled) or binary (pre-compiled) code placed in a package consisting of an application package name and release number. Packages always end in .rpm.

An example of the RPM naming convention is: dhcp-3.0.1-11.i386.rpm

The rpm name consists of a four-part naming convention. Each part is separated by either a dash or a period in the form of name-version-release.architecture_ type.rpm.

In the above rpm naming convention example, the package name, dhcp, is followed by a dash. The version number follows the package name. In the example the version number is 3.0.1 followed by a dash. The package’s release number is 11 (this is the 11th release for version 3.0.1) followed by a period. The subsequent name part, i386, identifies the hardware architectural type that the release is written to run on, and the last name part identifies the file as an rpm file.

Once an rpm package is loaded, it drops the architecture (i386) and rpm extension name parts.

The rpm database is found in /var/lib/rpm

The command for installing a package is “rpm” followed by an option to indicate an install (i), and update (U), or a removal (e). To install the rpm file in our example, the command is:
# rpm -i dhcp-3.0.1-11.i386.rpm
Procedures:

DeVry Online University Students Only -
Attention Online Students Accessing iLab – Click on the iLab tab under “Course Home” in eCollege. When prompted for a username and password, use your DeVry DSI (D#########) number and password.

When Element K appears, click on the “Professional Development” selection box at the top of the web page. On the next web page, select NETW240 and then select “Linux Lab Environment.” Follow the instructions for starting a lab session. When the LAN diagram appears, click on the server icon. On the Red Hat Linux login screen, use “root” for your username and “password” for your password.

Begin your lab on step 3 below.

Campus classroom students, begin at step 1 below.

Campus Lecture-Lab Classroom Students
The command-line interface:
1. If you are not already booted-up after loading Linux fedora, please boot up your fedora workstation. The terms workstation and server are synonymous in all labs since we have loaded your workstation as a server also.

2. If you are not already logged-in, please login using your casual UNIX user name and password created after loading the Linux operating system in week 2 lab 1.

3. Using the mouse, click on the Applications. Select “System Tools” and then select “Terminal.” A virtual terminal emulation window will appear. The window will provides access to the shell command-line prompt.

4. Using the “switch user” command, switch from casual user mode to the superuser mode. Remember to use the dash (-) option after keying in the su command and before hitting the enter key.

su -

#

Note: The su command allows a user to switch their “login shell” for another...
tracking img