Escolar Documentos
Profissional Documentos
Cultura Documentos
Which is the fundamental means for you to install and manage software
on your Red Hat Linux system.
The package management system is the part of your Linux system that
enables you to install, uninstall, and manage the software on your
machine.
If you are familiar with Microsoft Windows 95, this is similar to the
Add/Remove Programs option in the Windows Control Panel.
The most popular of these is the Red Hat package manager (RPM), and
this is the system discussed in this lecture.
What Is a Package?
A package is a special file that contains the directories and files that are
part of a particular piece of software or system component.
Binary Package
Source Package
A source package contains the source code and other items used
to build the corresponding binary package.
Source packages are provided in the event that you want to
modify—and recompile—a program yourself.
Source Package filenames end in the suffix . src. rpm.
Note!
Syntax of RPM
What's In a Name?
A binary package has a filename that looks similar to the one shown in
Figure
The Package
The first pan of the filename is a short string that identifies the package.
Version Number
After the name is the version number (in this case 0.2), which identifies
the version of the software contained in the package.
Release Number
After the release number is a short string that indicates the architecture
for the package.
noarch string
String Processor
noarch Any
i386. i586. i686 Intel x86, Pentium, and compatibles
alpha DEC Alpha
sparc Sun Sparc
mips MIPS
ppc PowerPC
m68k Motorola 68000 family
Be sure that the Red Hat Linux Installation CD-ROM is in the CD-ROM
drive and that it is mounted.
Description :
The quota package contains system administration tools for
monitoring and limiting users' and or groups' disk usage, per
filesystem.
#rpm -i quota-1.66-6.i386.rpm
This command installs the quota package on your system. The -i
option instructs the rpm command to install the package quota-1.66-
6.i386.rpm onto the local system.
No Feedback
The command provides no feedback during the installation, but you can
use the -v (verbose) option to get more information.
Option Description
-vv Provides very verbose information.
-h Prints hash marks (#) periodically during
installation. These marks allow you to see that RPM
is actually doing something and is not just hung.
-percent Prints the percent completed during installation
instead of #.
-test Does not install the package, but performs a dry run
to test installation and reports any errors.
-replacefiles Replaces files from other packages.
-force Tells RPM to ignore certain conflict errors and
install the package anyway.
Topic Heading Class Meeting # Slide : 32
Linux Based Networks Zahid Shafique, Instructor
Tip
#rpm -e quota-1.66-6.i386.rpm
Tip
#rpm -e quota
The only exception is if you have more than one version of the
package installed.
When erasing a package from your system, RPM goes through the
following sequence of actions:
• Deletes files:- RPM deletes every file associated with the specified
package.
Tips
Say someone has added several new features to the quota program and
released a new package called quota-2.01-1.i386.rpm.
To upgrade to the new version, you would use the following command:
While upgrading, RPM installs the specified package and then erases
all the older versions of the packages (if any exist).
While RPM is upgrading a package, you might see a message like the
following, indicating that a configuration file is being saved to a new
file:
#Saving syslog.conf to syslog.conf.rpmsave
You need to compare the current files against the originals you installed.
#rpm -V quota
Tip
#rpm -Va
Today’s Agenda
Exercise:
Homework
• Homework this week:
• Next week: