Red Hat Linux Fedora For Dummies [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Red Hat Linux Fedora For Dummies [Electronic resources] - نسخه متنی

Jon Hall

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
توضیحات
افزودن یادداشت جدید






Manual Shifting with RPM

The first part of this chapter concentrates on using Red Hat Package Manager to install and remove packages. But you also have the option using the rpm command. It provides additional features for installation and removal functions. You can use rpm to install, update, remove, and query packages. This section provides examples of how to use the manual rpm command.


Manually installing and upgrading packages


The RPM -i parameter indicates that an installation will take place. You can add Verbose mode (which provides additional information) by using the -v option. (You can combine options into a single group; for example, -i -v can become -iv.) Follow these instructions to install and upgrade packages:



Log in as root.



Open a terminal emulator window by clicking the terminal icon in the GNOME Panel (refer to Chapter 4 for instructions).

The GNOME Terminal emulator window opens.



To add the package, type this command from a terminal window:

rpm -iv /mnt/cdrom/RedHat/RPMS/mozilla-mail*



Alternatively, you can upgrade a package that has already been installed on your system. Substitute the RPM upgrade option, -U, in place of the install option, -i. For example, this command updates the Mozilla e-mail client package:

rpm -Uv /mnt/cdrom/RedHat/RPMS/mozilla-mail*

The files that constitute the newer Mozilla-mail package overwrite the older version. Existing configurations, however, are saved by adding the .rpmsave suffix to the configuration file.


Manually removing packages


RPM packages are good residents on your computer because they lend themselves to easy removal. The rpm command permits you to remove packages via the erase (–e) function.

Suppose that you’re not so fond of the Mozilla e-mail client because you like the Evolution client better. No problem: Go ahead and remove the Mozilla mail package. To remove an RPM package, follow these steps:



Log in as root and open a terminal emulator window.

The GNOME Terminal window opens.



Enter this command to find the name of the package to remove:

rpm –qa | grep mozilla

You should see these results:

mozilla-nss-1.0.1-10
mozilla-1.0.1-10
mozilla-nspr-1.0.1-10
mozilla-psm-1.0.1-10
mozilla-mail-1.0.1-10

You need to know the name of the package before you can remove it. We use this step to display all installed Mozilla packages to find the name of the package.



You can also find out about the package by using this command:

rpm -qi mozilla-mail

Alternatively, you can display a list of all installed packages by using the rpm -qa command. Run the man rpm command to find query options.



Enter this command to remove the Mozilla e-mail client:

rpm –e mozilla-mail



/ 194