# AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: Fedora RPM Guide\n" "POT-Creation-Date: 2011-03-02T00:57:15\n" "PO-Revision-Date: 2011-08-21 09:54+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: Hindi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: hi\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" #. Tag: title #, no-c-format msgid "Using RPM" msgstr "" #. Tag: para #, no-c-format msgid "This chapter covers:" msgstr "" #. Tag: para #, no-c-format msgid "Installing and upgrading software" msgstr "" #. Tag: para #, no-c-format msgid "Removing software" msgstr "" #. Tag: para #, no-c-format msgid "" "This chapter covers the most common uses for RPM: installing, removing, and " "upgrading software. These are the most frequently used RPM commands." msgstr "" #. Tag: para #, no-c-format msgid "" "The RPM system includes the options you might expect, such as installing a " "package, but there’s a lot more you can do. For example, you can install " "packages from remote sites using HTTP or FTP to download the package to " "install. There are quite a few other rpm options you can " "use to get information and feedback on installation, for example." msgstr "" #. Tag: title #, no-c-format msgid "The rpm Command" msgstr "" #. Tag: para #, no-c-format msgid "" "Just about everything you do with RPM requires the rpm " "command. As a nice added benefit, just about everything you do with RPM " "requires a single invocation of the rpm command. That " "means common tasks such as installing and removing software can be done " "quickly and efficiently. The basics of the rpm command " "are not very hard, and you can perform the basic tasks within a few minutes " "of reading this chapter." msgstr "" #. Tag: title #, no-c-format msgid "Upgrading and Installing Software" msgstr "" #. Tag: para #, no-c-format msgid "" "To install software, you need something to install. Typically, this is a " "file packaged as RPM, using a file-name extension of " "rpm. Of course, this isn’t required, but just about " "every RPM package is stored in a file with a rpm " "extension. For example, the following file holds an RPM package, ready to be" " installed:" msgstr "" #. Tag: para #, no-c-format msgid "jikes-1.16-1.i386.rpm" msgstr "" #. Tag: para #, no-c-format msgid "" "This package holds an application named jikes (a Java " "language compiler application). From the discussion in the last two " "chapters, you should be able to determine the version of the program this " "RPM holds and which release of the RPM package this represents." msgstr "" #. Tag: para #, no-c-format msgid "" "Other RPMs hold sources, the program source codes used to create an " "application or programming library. For example, the following file holds a " "source RPM:" msgstr "" #. Tag: para #, no-c-format msgid "jikes-1.16-1.src.rpm" msgstr "" #. Tag: para #, no-c-format msgid "" "The src in the package name is short for source. This " "file-naming convention is not required, but is used by just about all source" " code packages. (Following conventions helps other administrators know what " "to expect.)" msgstr "" #. Tag: title #, no-c-format msgid "Building Packages from Source RPMs" msgstr "" #. Tag: para #, no-c-format msgid "" "Refer to and for information on building RPMs from source RPMs." msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command provides three main operations for " "upgrading and installing packages:" msgstr "" #. Tag: term #, no-c-format msgid "Upgrade" msgstr "" #. Tag: para #, no-c-format msgid "" "An upgrade operation means installing a new version of a package and " "removing all previous versions of the same package. If you have not " "installed a package previously, the upgrade operation will install the " "package." msgstr "" #. Tag: term #, no-c-format msgid "Freshen" msgstr "" #. Tag: para #, no-c-format msgid "" "A freshen operation means to install a new version of a package only if you " "have already installed another version of the package." msgstr "" #. Tag: term #, no-c-format msgid "Install" msgstr "" #. Tag: para #, no-c-format msgid "" "An install operation installs a package for the first time. It also, through" " special command-line parameters, allows you to install multiple versions of" " a package, usually not what you want. So, in the vast majority of cases, " "you want to run the upgrade operation for all package installations." msgstr "" #. Tag: para #, no-c-format msgid "" "The following sections cover the command-line options that apply to these " "operations." msgstr "" #. Tag: title #, no-c-format msgid "Upgrading with the rpm command" msgstr "" #. Tag: para #, no-c-format msgid "" "Almost all installation steps use the rpm command with " "the option, short for upgrade, as introduced in . The basic syntax is:" msgstr "" #. Tag: para #, no-c-format msgid "" "rpm " "package_name" msgstr "" #. Tag: para #, no-c-format msgid "For example:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm –U jikes-1.16-1.i386.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "" "You can also use the long option in place of " "." msgstr "" #. Tag: para #, no-c-format msgid "" "Unless something goes wrong, you won’t see any response except for the shell" " prompt ready for your next command. Options for the rpm " "command, covered shortly, present positive feedback that the package has " "been installed." msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command may print out warnings, such as the one " "following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "warning: pyxf86config-0.3.1-2.i386.rpm: Header V3 DSA\n" "signature: NOKEY, key ID 897da07a\n" msgstr "" #. Tag: para #, no-c-format msgid "" "This warning comes from the fact that the package was signed, but the key " "was not found. covers signing packages. In " "most cases, warnings such as this one are not that serious. Errors, though, " "should be treated seriously." msgstr "" #. Tag: title #, no-c-format msgid "root Permissions" msgstr "" #. Tag: para #, no-c-format msgid "" "Just about every package you want to upgrade or install requires root, or super user, permissions. That’s " "because most Linux application RPMs hold files that must be installed in a " "protected directory such as /usr/bin/. In addition, RPM" " requires root access to modify the RPM database. Even if you could modify " "the system directories like /usr/bin/, you must also be" " able to modify the RPM database to successfully install or remove packages." msgstr "" #. Tag: title #, no-c-format msgid "Checking That the Package Is Installed" msgstr "" #. Tag: para #, no-c-format msgid "" "Use the rpm –q command to quickly verify a package has " "been installed. To verify, you need to use the name of the installed " "package, not the name of the RPM file. You can also use a partial package " "name, such as jikes in this case. For example:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm –q jikes\n" msgstr "" #. Tag: para #, no-c-format msgid "" "When you run this command, you should see a response like the following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "jikes-1.16-1\n" msgstr "" #. Tag: para #, no-c-format msgid "" "The response shows that the package named jikes-1.16-1 " "has been installed. This package name corresponds to the RPM file used in " "the preceding installation example." msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm -q command just asks the RPM database if the " "package has been installed. There may be other issues with the package that " "this command won’t show. For now, though, the rpm –q " "command verifies that package has been installed." msgstr "" #. Tag: para #, no-c-format msgid "" "If the package has been not installed, you will see a message similar to the" " following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "package jikes is not installed\n" msgstr "" #. Tag: title #, no-c-format msgid "Getting Feedback During Installation and upgrades" msgstr "" #. Tag: para #, no-c-format msgid "" "The option to the rpm command prints " "out # signs, also called hash marks (hence the ). These " "hash marks provide some confirmation that the rpm command" " is still running. This is important, since large packages may take a long " "time to install or upgrade. Run this command like the following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -Uh jikes-1.16-1.i386.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "You'll see this output:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "########################################### [100%]\n" "########################################### [100%]\n" msgstr "" #. Tag: para #, no-c-format msgid "" "The hash marks are printed one at a time as the command does its work. If " "the package was not created properly, you may see warnings like the " "following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "########################################### [100%] \n" "warning: user cabbey does not exist - using root\n" "warning: user cabbey does not exist - using root\n" "warning: user cabbey does not exist - using root\n" "########################################### [100%]\n" msgstr "" #. Tag: title #, no-c-format msgid "Reinstalling Packages" msgstr "" #. Tag: para #, no-c-format msgid "" "You can install a package more than once. The rpm command" " won't complain. The upgrade operation, though, will remove all other " "versions of a package. This is one more reason to use the " " upgrade option." msgstr "" #. Tag: para #, no-c-format msgid "" "In addition to hash marks, you can get more verbose output from the tight-" "lipped rpm command. The option to the" " rpm command tells the command to print out verbose " "information as the command runs. Remember, though, that verbose is used in " "the traditional Unix and Linux meaning, which is normally not all that " "verbose. In the Unix/Linux context, verbose usually means slightly more than" " nothing. The syntax for the command follows:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -Uhv jikes-1.16-1.i386.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "" "With the command-line option, you will see output more " "like the following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "Preparing... ########################################### [100%]\n" "1:jikes ########################################### [100%]\n" msgstr "" #. Tag: title #, no-c-format msgid "Standard Command for Package Installation" msgstr "" #. Tag: para #, no-c-format msgid "" "The most common command to install a package is rpm -Uhv " "package_file.rpm. That is, upgrade with" " verbose output and hashes." msgstr "" #. Tag: para #, no-c-format msgid "" "To get extra verbose information, use the command-line " "option. Think of this as doubly verbose. Usually, though, this extra " "information has no meaning unless you are debugging an RPM package that you " "are building. See the chapters in Part II on Creating RPMs for more on how " "to build RPM packages." msgstr "" #. Tag: para #, no-c-format msgid "" "A double-verbose command uses much the same syntax as shown previously:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -Uhvv jikes-1.16-1.i386.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "With the double-verbose option, the output appears as follows:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "D: ============== jikes-1.16-1.i386.rpm\n" "D: Expected size: 702988 = lead(96)+sigs(100)+pad(4)+data(702788)\n" "D: Actual size: 702988\n" "D: jikes-1.16-1.i386.rpm: MD5 digest: OK (2dba32192eca23eb480d1d02a9b6c022)\n" "D: added binary package [0]\n" "D: found 0 source and 1 binary packages\n" "D: opening db environment /var/lib/rpm/Packages joinenv\n" "D: opening db index /var/lib/rpm/Packages rdonly mode=0x0\n" "D: locked db index /var/lib/rpm/Packages\n" "D: ========== +++ jikes-1.16-1\n" "D: opening db index /var/lib/rpm/Depends create mode=0x0\n" "D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 YES (rpmlib provides)\n" "D: opening db index /var/lib/rpm/Providename rdonly mode=0x0\n" "D: opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0\n" "D: read h# 9 Header V3 DSA signature: NOKEY, key ID 897da07a\n" "D: Requires: ld-linux.so.2 YES (db provides)\n" "D: read h# 9 Header V3 DSA signature: NOKEY, key ID 897da07a\n" "D: Requires: libc.so.6 YES (db provides)\n" "D: read h# 9 Header V3 DSA signature: NOKEY, key ID 897da07a\n" "D: Requires: libm.so.6 YES (db provides)\n" "D: read h# 633 Header V3 DSA signature: NOKEY, key ID 897da07a\n" "D: Requires: libstdc++-libc6.2-2.so.3 YES (db provides)\n" "D: read h# 9 Header V3 DSA signature: NOKEY, key ID 897da07a\n" "D: Requires: libc.so.6(GLIBC_2.0) YES (db provides)\n" "D: read h# 9 Header V3 DSA signature: NOKEY, key ID 897da07a\n" "D: Requires: libc.so.6(GLIBC_2.1) YES (db provides)\n" "D: read h# 9 Header V3 DSA signature: NOKEY, key ID 897da07a\n" "D: Requires: libc.so.6(GLIBC_2.1.3) YES (db provides)\n" "D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 YES (rpmlib provides)\n" "D: closed db index /var/lib/rpm/Pubkeys\n" "D: closed db index /var/lib/rpm/Depends\n" "D: closed db index /var/lib/rpm/Providename\n" "D: closed db index /var/lib/rpm/Packages\n" "D: closed db environment /var/lib/rpm/Packages\n" "D: ========== recording tsort relations\n" "D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth)D: 0 0 0 0 0 +jikes-1.16-1\n" "D: installing binary packages\n" "D: opening db environment /var/lib/rpm/Packages joinenv\n" "D: opening db index /var/lib/rpm/Packages create mode=0x42\n" "D: getting list of mounted filesystems\n" "D: sanity checking 1 elements\n" "D: opening db index /var/lib/rpm/Name create mode=0x42\n" "D: read h# 707 Header sanity check: OK\n" "D: computing 3 file fingerprints\n" "Preparing... D: computing file dispositions\n" "D: opening db index /var/lib/rpm/Basenames create mode=0x42\n" "########################################### [100%]\n" "package jikes-1.16-1 is already installed\n" "D: closed db index /var/lib/rpm/Basenames\n" "D: closed db index /var/lib/rpm/Name\n" "D: closed db index /var/lib/rpm/Packages\n" "D: closed db environment /var/lib/rpm/Packages\n" msgstr "" #. Tag: title #, no-c-format msgid "Short and Long Options" msgstr "" #. Tag: para #, no-c-format msgid "" "Although most Unix and Linux applications use a single minus sign for " "command-line options, such as rpm , " "many programs use two minus signs to indicate longer option names. For " "example, with the rpm command, and " " are treated the same. You can use the short " "option, , or the long option, ." msgstr "" #. Tag: para #, no-c-format msgid "" "There are long options for virtually every short option. There are also long" " options that are rarely used, for which there are no short options." msgstr "" #. Tag: para #, no-c-format msgid "" "One rarely used feedback option is . The " " option prints out decimal numbers that show the " "percentage completed as the rpm command executes. This " "option is most useful if you wrap the rpm command within " "some other command, such as a graphical user interface created from a Perl, " "Python, or Tcl/Tk script." msgstr "" #. Tag: para #, no-c-format msgid "The basic syntax is:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -U --percent jikes-1.16-1.i386.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "When you run this command, you see output like the following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "%% 0.000000\n" "%% 2.661902\n" "%% 5.318614\n" "%% 10.632039\n" "%% 15.945465\n" "%% 18.602177\n" "%% 23.915603\n" "%% 29.229028\n" "%% 34.542453\n" "%% 39.855879\n" "%% 45.169304\n" "%% 50.482729\n" "%% 53.139442\n" "%% 55.796154\n" "%% 61.109580\n" "%% 66.423005\n" "%% 71.736430\n" "%% 74.393143\n" "%% 79.706568\n" "%% 82.363281\n" "%% 87.676706\n" "%% 90.333419\n" "%% 95.646844\n" "%% 98.303557\n" "%% 99.422736\n" "%% 99.910411\n" "%% 99.994892\n" "%% 100.000000\n" msgstr "" #. Tag: para #, no-c-format msgid "" "These decimal numbers output by the option are " "really meant to be input into another program, perhaps a program that shows " "a graphical progress meter. Each number output then updates the meter." msgstr "" #. Tag: title #, no-c-format msgid "Percentages may be Approximate" msgstr "" #. Tag: para #, no-c-format msgid "" "Don't trust the numbers too much. Claiming the package is 53.139442 percent " "installed just asks the user to be skeptical that it is exactly that far." msgstr "" #. Tag: title #, no-c-format msgid "The Installation Task In Detail" msgstr "" #. Tag: para #, no-c-format msgid "" "You can use the rpm –U command or the rpm " "–i command to install a package. When the rpm " "command installs a package, it goes through a number of steps:" msgstr "" #. Tag: para #, no-c-format msgid "Checking the package and the files it wants to install" msgstr "" #. Tag: para #, no-c-format msgid "Performing preinstallation tasks" msgstr "" #. Tag: para #, no-c-format msgid "Uncompressing the files and placing them in the proper locations" msgstr "" #. Tag: para #, no-c-format msgid "Performing post-processing tasks" msgstr "" #. Tag: para #, no-c-format msgid "Updating the RPM Database" msgstr "" #. Tag: para #, no-c-format msgid "" "When checking the package, rpm checks that all the " "dependencies are installed. Dependencies are packages required by the RPM " "package you want to install. For example, a database-administration package " "for a particular database may require that the database itself was already " "installed." msgstr "" #. Tag: para #, no-c-format msgid "" "In addition to checking for dependencies, the rpm command" " checks for conflicting packages. For example, when you are trying to " "install an older version of a package on top of a newer version, running the" " rpm command alerts you to that conflict. This conflict-" "checking goes deeper than packages, though. Individual files may conflict if" " you are trying to install a package that has an older version of a " "particular file." msgstr "" #. Tag: para #, no-c-format msgid "" "After the checks, the rpm command executes the " "preinstallation tasks (covered in depth in Part II). After all this " "preparatory work, the rpm command finally gets down to " "business and installs the files in the package. These files are stored in " "compressed format (compressed with gzip compression) " "inside the RPM file." msgstr "" #. Tag: para #, no-c-format msgid "" "After installing the files, there may be some post-processing tasks (also " "covered in Part II). At the end of its run, the rpm " "command updates the RPM database to reflect the new package information. " "This update is very important and allows you to track packages." msgstr "" #. Tag: title #, no-c-format msgid "Taking a Test Drive" msgstr "" #. Tag: para #, no-c-format msgid "" "The command-line option tells the " "rpm command to test the installation or upgrade process " "but not to install the file. For example, the following command performs an " "upgrade or install of the jikes package, but in test " "mode only. No files will actually be installed." msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -U --test jikes-1.16-1.i386.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "" "This command will print nothing if the tested installation or upgrade runs " "smoothly. If, on the other hand, a problem results from the tested " "installation, you will receive an error message. If the package is already " "installed, you will see a message like the following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "package jikes-1.16-1 is already installed\n" msgstr "" #. Tag: para #, no-c-format msgid "If the file is corrupted, you will see output like the following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "chap4.txt: not an rpm package (or package manifest):\n" msgstr "" #. Tag: para #, no-c-format msgid "" "This example was run against a file that was clearly not an RPM package." msgstr "" #. Tag: para #, no-c-format msgid "The test option can help you determine package dependencies, too." msgstr "" #. Tag: para #, no-c-format msgid "" "You can often determine dependencies at a glance--if you know something " "about the software you are installing. For example, if you know that Ruby is" " a scripting language, you can guess that packages starting with " "eruby, such as eruby-" "devel-0.9.8-2.i386.rpm, will depend on a base " "ruby package." msgstr "" #. Tag: para #, no-c-format msgid "" "To show this, query for any ruby packages by using a " "command like the following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -q ruby\n" msgstr "" #. Tag: para #, no-c-format msgid "" "If you have not installed a ruby package, you'll see a " "message like the following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "package ruby is not installed\n" msgstr "" #. Tag: title #, no-c-format msgid "Package Names" msgstr "" #. Tag: para #, no-c-format msgid "" "Most packages use all lowercase names. Thus, you can expect packages for the" " Ruby scripting language to start with ruby." msgstr "" #. Tag: para #, no-c-format msgid "" "Package dependencies can quickly devolve into a nightmare in which one " "package depends upon another and that package in turn depends on yet " "another." msgstr "" #. Tag: para #, no-c-format msgid "" "This is where the option comes in handy, since you " "can check that the dependencies are resolved prior to trying to install. " "(Note that the rpm command will check dependencies on " "real installs as well. The option just allows you to" " check that the installation will succeed prior to trying it.) For example, " "if you try to install a package named eruby-" "devel-0.9.8-2.i386.rpm, you may want to run a " " option first:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -U --test eruby-devel-0.9.8-2.i386.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "" "You'll then see a response like the following, presuming you have no " "ruby packages installed:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "error: Failed dependencies:\n" "eruby-libs = 0.9.8 is needed by eruby-devel-0.9.8-2\n" msgstr "" #. Tag: para #, no-c-format msgid "" "Now you can see that the package in the file eruby-" "devel-0.9.8-2.i386.rpm depends on another package, eruby-libs in this case. In fact, this package depends on the " "eruby-libs package having a version number of 0.9.8. " "These packages are obviously interrelated. From the name eruby-" "libs, you can guess that the package will be in a file with a " "name like eruby-libs-0.9.8-2.i386.rpm. (I cheated and " "used the actual package on the Red Hat installation CDs.)" msgstr "" #. Tag: para #, no-c-format msgid "" "But you can see how the version numbers of the two files, and the RPM " "revision levels, match up, as follows:" msgstr "" #. Tag: para #, no-c-format msgid "eruby-devel-0.9.8-2.i386.rpm" msgstr "" #. Tag: para #, no-c-format msgid "eruby-libs-0.9.8-2.i386.rpm" msgstr "" #. Tag: para #, no-c-format msgid "" "So, now you think your problems are over. You have the package that " "eruby-devel-0.9.8-2.i386.rpm depends on: eruby-libs-0.9.8-2.i386.rpm. Just to be careful, though, you can" " test that package as well, with a command like the following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -U --test eruby-libs-0.9.8-2.i386.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "Alas, this output leads you farther down into dependency nightmare:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "error: Failed dependencies:\n" "ruby-libs >= 1.6.4 is needed by eruby-libs-0.9.8-2\n" "libruby.so.1.6 is needed by eruby-libs-0.9.8-2\n" msgstr "" #. Tag: para #, no-c-format msgid "" "This short example shows why it makes sense to test packages prior to " "installing or upgrading them." msgstr "" #. Tag: title #, no-c-format msgid "Installing or upgrading More Than One Package At A Time" msgstr "" #. Tag: para #, no-c-format msgid "" "Up to now, all the examples shown have used the rpm " "command to install or upgrade one package at a time. You can optionally " "choose to install or upgrade a number of packages at the same time. Just " "list each file name on the rpm command line. The basic " "syntax follows:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -U package1.rpm package2.rpm .. package100.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "Simply list all the packages one after another. For example:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -U aspell-en-ca-0.33.7.1-16.i386.rpm aspell-en-gb-0.33.7.1-16.i386.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "" "This command installs two packages, the aspell packages" " for Canadian and British English, respectively." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command not to reorder the packages you are trying to install. Usually, the " "rpm command will reorder the list of packages in the best" " order for handling the dependencies. This option really only comes into " "play when you are installing more than one package where the packages depend" " on each other. In most cases, you do not want to use this option, since " "this may mean that packages fail to properly install because necessary " "packages are not already installed." msgstr "" #. Tag: title #, no-c-format msgid "Installing in Different Directories" msgstr "" #. Tag: para #, no-c-format msgid "" "The and options should" " make the rpm command relocate a package to a new " "location. Not all packages allow relocations, though. The basic format of " "the command with the option is:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -U --prefix /new/directory package.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "With the option, the command format is:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -i --relocate /old/directory=/new/directory package.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "" "You can also use the option to specify a different " "directory for the rpm command to assume is the system's " "root, or /, directory. This causes the " "rpm command to install files under the new root, instead " "of in system locations under /. This option is most " "useful for testing the installation of a complete system under a test " "directory. The command should use the following format:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -U --root /tmp --dbpath /var/lib/rpm jikes-1.16-1.i386.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm command " "that the root for this install is in /tmp/. Installs " "with the option take place within a " "chroot() environment. This is often useful for setting up" " a test environment." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command that the RPM database is located in the normal location, " "/var/lib/rpm/." msgstr "" #. Tag: para #, no-c-format msgid "" "Using the and options will" " give you problems unless you have installed all the dependencies in the " "same virtual root directory. This includes all the standard Linux C " "libraries. For example, if you just run the example command, you'll see " "error output like the following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "error: Failed dependencies:\n" "ld-linux.so.2 is needed by jikes-1.16-1\n" "libc.so.6 is needed by jikes-1.16-1\n" "libm.so.6 is needed by jikes-1.16-1\n" "libstdc++-libc6.2-2.so.3 is needed by jikes-1.16-1\n" "libc.so.6(GLIBC_2.0) is needed by jikes-1.16-1\n" "libc.so.6(GLIBC_2.1) is needed by jikes-1.16-1\n" "libc.so.6(GLIBC_2.1.3) is needed by jikes-1.16-1\n" msgstr "" #. Tag: para #, no-c-format msgid "" "You can use the option with the " " option to permit relocations on all files in the" " package. Usually, only those paths to files that are listed as relocatable " "are supported by the option." msgstr "" #. Tag: title #, no-c-format msgid "Forcing the Issue" msgstr "" #. Tag: para #, no-c-format msgid "" "A number of rpm options cause the rpm " "command to complain about problems and, in general, fail to install your " "package. You can use a number of options to run roughshod over the RPM and " "get it to do what you want." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to replace, or reinstall, packages it may have already installed." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to overwrite files owned by a another package." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to update the RPM database, not to install the files. You will need " "to be logged in as the root user to modify the RPM database." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to skip any suggestions for packages that may fill in missing " "dependencies. You almost never want to use this option." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to exclude all files that start with the given path. For example:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -U --excludepath /usr/lib eruby-devel-0.9.8-2.i386.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "" "This command installs or upgrades all the files in the package, except for " "those files that would be placed in a directory starting with " "/usr/lib/." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to install or upgrade all files in the package, regardless of " "whether the files exist or not on your hard disk." msgstr "" #. Tag: para #, no-c-format msgid "" "The tells the rpm command " "to allow you to install an older version of a package on top of a more " "recent one. You don't usually want to do this, but you may need to under the" " following circumstances:" msgstr "" #. Tag: para #, no-c-format msgid "" "If the more recent package has some bug or security vulnerability and you " "need to downgrade to a former version." msgstr "" #. Tag: para #, no-c-format msgid "" "If the more recent package won't work with some other package that depends " "on a particular former version of a package." msgstr "" #. Tag: para #, no-c-format msgid "" "The latter case is very common if you upgrade your system in a piecemeal " "fashion. If a low-level library changes, it may take a while for all the " "packages that depend on the low-level library to get updated to use the " "latest version." msgstr "" #. Tag: para #, no-c-format msgid "" "Note that when you purchase an upgraded version of Linux, such as Red Hat " "Linux, all the packages with the product should be properly aligned with " "each other as to versions. This alignment problem is an issue that the Linux" " vendors, such as Red Hat, need to take care of. The main problems occur " "when you need packages beyond those offered with your Linux distribution." msgstr "" #. Tag: para #, no-c-format msgid "" "To combine some of these options, you can use , " "which tells the rpm command to turn on the " ", , and " " modes." msgstr "" #. Tag: para #, no-c-format msgid "" "The command-line option tells the " "rpm command to skip the dependencies check and install " "anyway." msgstr "" #. Tag: title #, no-c-format msgid "Avoid Forcing Package Operations" msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command complains with good reason. Unless you " "really, really know what you are doing, don't force the issue by using these" " command-line options." msgstr "" #. Tag: para #, no-c-format msgid "" "Consider the eruby-devel-0.9.8-2.i386.rpm from the " "previous example. You can force the rpm command to " "install this package, even though it depends on another package that in turn" " depends on yet another. The following command will force the installation " "of the package in the eruby-devel-0.9.8-2.i386.rpm " "file:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -U --nodeps eruby-devel-0.9.8-2.i386.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "" "Just to be sure, you can query for the package using a command like the " "following." msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -q eruby-devel\n" msgstr "" #. Tag: para #, no-c-format msgid "The response should be:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "eruby-devel-0.9.8-2\n" msgstr "" #. Tag: para #, no-c-format msgid "" "The package is installed, but it likely won't work, since it really does " "depend on other packages. These package dependencies aren’t for show. You " "may have a valid reason to force a package to get installed, but you should " "go back later to try to resolve all the dependencies." msgstr "" #. Tag: para #, no-c-format msgid "" "In addition to forcing the rpm command not to do certain " "things, you can use the option to have the " "rpm command do something nice for you. The " " option tells the rpm command to " "add all the packages it would suggest into the set of packages to install. " "The rpm command has enough information to suggest a " "package or packages that ought to contain the dependent files." msgstr "" #. Tag: para #, no-c-format msgid "" "The option depends on a separate package that " "contains an RPM database with all packages installed. For Red Hat Linux, " "this package is rpmdb-redhat. This separate database, " "built as if all packages were installed (all packages that come with Red Hat" " Linux in this case), allows the rpm command to search " "for which packages would solve dependencies." msgstr "" #. Tag: title #, no-c-format msgid "Skipping the Scripts" msgstr "" #. Tag: para #, no-c-format msgid "" "As part of the package installation, as well as removal, the RPM package may" " have scripts that the rpm command should run. These " "include pre- and post-installation scripts, as well as pre- and post-" "uninstallation scripts. These scripts can perform options such as " "automatically configuring the application based on the target environment. " "For example, an installation script may try to detect whether a site uses " "Postfix or Sendmail for transferring mail messages and configure the newly-" "installed package accordingly." msgstr "" #. Tag: para #, no-c-format msgid "" "In most cases, the rpm command will execute these scripts" " at the proper time, unless you explicitly turn the command to skip the " "scripts. The option tells the " "rpm command to skip running the pre- and post-" "installation scripts." msgstr "" #. Tag: para #, no-c-format msgid "" "If you want, you can exercise a finer grain of control. The " " option tells the rpm command to " "skip any pre-installation scripts. The option " "tells the rpm command to skip any post-installation " "scripts." msgstr "" #. Tag: para #, no-c-format msgid "" "Similarly, the option tells the " "rpm command to skip any pre-uninstallation scripts, and " "the option tells the rpm " "command to skip any post-uninstallation scripts." msgstr "" #. Tag: para #, no-c-format msgid "" "The option is the same as turning on all these " "options." msgstr "" #. Tag: para #, no-c-format msgid "The table below summarizes these options." msgstr "" #. Tag: title #, no-c-format msgid "Skipping scripts" msgstr "" #. Tag: entry #, no-c-format msgid "Option" msgstr "" #. Tag: entry #, no-c-format msgid "Usage" msgstr "" #. Tag: para #, no-c-format msgid "" msgstr "" #. Tag: para #, no-c-format msgid "Skip pre-installation scripts." msgstr "" #. Tag: para #, no-c-format msgid "" msgstr "" #. Tag: para #, no-c-format msgid "Skip post-installation scripts." msgstr "" #. Tag: para #, no-c-format msgid "" msgstr "" #. Tag: para #, no-c-format msgid "Skip pre-uninstallation scripts." msgstr "" #. Tag: para #, no-c-format msgid "" msgstr "" #. Tag: para #, no-c-format msgid "Skip post-uninstallation scripts." msgstr "" #. Tag: para #, no-c-format msgid "" msgstr "" #. Tag: para #, no-c-format msgid "" "Skip all the scripts; same as , " ", , and " "." msgstr "" #. Tag: para #, no-c-format msgid "" "In most cases, you never want to disable these scripts. Many RPMs uses these" " scripts to perform the final steps of the installation, especially the " "post-installation scripts. For example, the Mozilla Web browser and most " "network services require some kind of post-processing (using a post-" "installation script) or the packages will not be properly installed." msgstr "" #. Tag: para #, no-c-format msgid "" "In addition to pre- and post-installation scripts, the RPM system supports " "triggers, a topic covered in detail in ." msgstr "" #. Tag: para #, no-c-format msgid "" "During installation, you can tell the rpm command not to " "execute all the triggers or not to execute certain triggers. The " " option tells the rpm " "command to skip all triggers." msgstr "" #. Tag: para #, no-c-format msgid "" "You can gain more fine-grained control with a further set of options in " "place of . The " "option turns off triggers during installation. The " " option turns off uninstallation triggers, and" " the option turns off the post-" "uninstallation triggers." msgstr "" #. Tag: para #, no-c-format msgid "" "The option is the same as all three, " ", , and " "." msgstr "" #. Tag: title #, no-c-format msgid "Skipping Triggers" msgstr "" #. Tag: para #, no-c-format msgid "" msgstr "" #. Tag: para #, no-c-format msgid "Skip installation triggers." msgstr "" #. Tag: para #, no-c-format msgid "" msgstr "" #. Tag: para #, no-c-format msgid "Skip uninstallation triggers." msgstr "" #. Tag: para #, no-c-format msgid "" msgstr "" #. Tag: para #, no-c-format msgid "Skip post-uninstallation triggers." msgstr "" #. Tag: para #, no-c-format msgid "" msgstr "" #. Tag: para #, no-c-format msgid "" "Skip all the triggers; same as , " ", and ." msgstr "" #. Tag: title #, no-c-format msgid "Ignorance Is Bliss" msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command supports several ignore options that tell" " the command to ignore some aspect of a package it would normally complain " "about." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to ignore the architecture of the package and install the package, " "even if the architecture of the package and the architecture of your system " "do not match. This is a very dangerous option. Linux runs on everything from" " tiny wristwatches, PDAs such as the Sharp Zaurus, PCs, Macintosh PCs, RISC " "servers, and all the way up to huge supercomputers and mainframes. If you " "try to install a binary package compiled for the ARM or PowerPC processor on" " an Intel-architecture Linux system, the package will at best fail. At " "worst, it may damage parts of your system." msgstr "" #. Tag: para #, no-c-format msgid "" "Similarly, the command-line option tells the " "rpm command to ignore the operating system. Again, this " "is likely not a good idea in most situations. Applications compiled for " "Windows generally won’t run on Linux. SCO Unix systems, however, can run " "some Linux applications, so you may have a valid reason to ignore the " "operating system. Again, use only with extreme care." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to ignore or skip a check of your hard disk to ensure it has enough " "space to install the package." msgstr "" #. Tag: title #, no-c-format msgid "Ignoring Storage Limits" msgstr "" #. Tag: para #, no-c-format msgid "" "Don't use the option if you have a nearly full" " hard disk, especially for a root, or /, partition." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to skip the test of the digest, the special value that helps verify " "the package correctness." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to skip the test of the digest, the encrypted key, that helps also " "verify the package correctness." msgstr "" #. Tag: title #, no-c-format msgid "Unsafe Options" msgstr "" #. Tag: para #, no-c-format msgid "" "Use these rpm command-line options with extreme care and " "only after carefully considering the circumstances. Wrongful use of these " "options may damage your operating system." msgstr "" #. Tag: title #, no-c-format msgid "Documentation? What Documentation?" msgstr "" #. Tag: para #, no-c-format msgid "" "The command-line option tells the " "rpm command to ignore any files in the RPM package that " "are marked as documentation. Considering the general lack of documentation " "for many Linux applications, you are really asking for trouble by invoking " "this option. If the documentation takes up a lot of disk space, however, you" " may want to avoid installing documentation files. This is about the only " "situation in which this option makes sense." msgstr "" #. Tag: para #, no-c-format msgid "" "In reverse of , the " " command-line parameter tells the " "rpm command to install documentation. This is usually the" " default, so you rarely need this option." msgstr "" #. Tag: title #, no-c-format msgid "Upgrading packages" msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command works for both " "installation of new packages and for upgrading. When you get beyond simple " "installations, you begin to see the power of the RPM system where most " "operations require just one command. The rpm -U command " "is a very powerful tool and performs some complex operations with just one " "command. For example, the following commands show the sequence for upgrading" " the jpilot package, which is used for Palm PDA " "synchronization." msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "# rpm -q jpilot\n" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "jpilot-0.97-1\n" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "# rpm -U jpilot-0.99.2-8.i386.rpm\n" "# rpm -q jpilot\n" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "jpilot-0.99.2-8\n" msgstr "" #. Tag: para #, no-c-format msgid "" "Note that the old version of the jpilot package is no " "longer installed. The rpm -U command removed that " "package." msgstr "" #. Tag: title #, no-c-format msgid "Options When Upgrading" msgstr "" #. Tag: para #, no-c-format msgid "" "You can pass more than one package name on the command line when upgrading. " "In addition, you can use the installation and upgrade options discussed " "previously when upgrading." msgstr "" #. Tag: title #, no-c-format msgid "Uninstallation Scripts" msgstr "" #. Tag: para #, no-c-format msgid "" "When upgrading, the option only turns off the " "scripts from the new package. If an old package is removed, the " "uninstallation scripts for the old package still get executed." msgstr "" #. Tag: para #, no-c-format msgid "" "When upgrading, you can also use the option, " "which works the same as when removing packages. The " " option tells the rpm command" " to create a package, an RPM file, from any packages it would erase. Note " "that this option will not create a complete package. You will not be able to" " reinstall a package created by the option. At " "best, the option provides a backup of the old " "package, from which you could create a working package. Be careful with the " " option." msgstr "" #. Tag: para #, no-c-format msgid "" "For example, the following command shows how to upgrade a package with the " " option." msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -U --repackage jpilot-0.99.2-8.i386.rpm\n" msgstr "" #. Tag: title #, no-c-format msgid "Consistent Package Names" msgstr "" #. Tag: para #, no-c-format msgid "" "Upgrading and freshening depend on versions of a particular package keeping " "the same base package name between versions. For most packages this is true," " but some packages violate this convention. For example, the Java " "programming developer's kit (JDK) uses the name " "jdk-1.3.1_01.i386.rpm for the 1.3.1 version but changes" " to j2sdk-1_4_0_01-fcs-linux-i386.rpm for the 1.4.0 " "version." msgstr "" #. Tag: para #, no-c-format msgid "Watch out for package-name changes like this." msgstr "" #. Tag: title #, no-c-format msgid "Smart Upgrades" msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command really shines in the upgrade process. Not" " only can you upgrade a package with one simple command, but the " "rpm command has some built-in smarts that really help." msgstr "" #. Tag: para #, no-c-format msgid "" "When upgrading, the rpm command checks each file in the " "package. It actually compares checksums of the files. An MD5 checksum is a " "small value computed from the data in a file. Any change to a file results " "in a different checksum value." msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command compares the checksums of three versions " "of each file: the version of the file from the old package, the version of " "the file in the new package, and the version of the file on disk." msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command looks at all three versions of the files " "to handle the common case where you may have edited a configuration file on " "disk. This is where the rpm command starts working with " "some upgrade rules. Note that this special processing only applies to files " "marked as configuration files within the RPM. covers how to mark files as configuration files." msgstr "" #. Tag: para #, no-c-format msgid "" "If the file on disk is identical to the file in the original package, " "meaning you have not changed the file, the rpm command " "simply installs the file from the new version of the package on top of the " "old file." msgstr "" #. Tag: para #, no-c-format msgid "" "If the original package configuration file and the new package file are the " "same, that is, the file has not changed between the package versions, but " "the configuration file has been changed on disk, the rpm " "command leaves that file alone. The rpm command makes the" " assumption that if the file hasn’t changed between versions of the package," " and you have modified the file, chances are your file will work with the " "new package. This takes care of the common case where you have edited an " "application’s configuration files." msgstr "" #. Tag: para #, no-c-format msgid "" "But if the file on disk is different from the original version of the file, " "and the file on disk is different from the new version of the file, the " "rpm command installs the new version of the file on top " "of your changed version. This is because the new version of the file is " "known to work with the new package. The rpm command saves" " your work by backing up your modified configuration file, renaming the file" " with a new .rpmsave extension. The " "rpm command also warns you that it is backing up your " "modified file with a message that tells you the old file name and the new " "file name." msgstr "" #. Tag: para #, no-c-format msgid "" "If the RPM package uses the option %config(noreplace) " "with the file, then the rpm command will store the new " "file with a rpmnew extension if you have modified the " "file on disk." msgstr "" #. Tag: title #, no-c-format msgid "Freshening up" msgstr "" #. Tag: para #, no-c-format msgid "" "A freshen operation means to install a new version of a package only if you " "have already installed another version of the package. Thus, a freshen " "operation is very similar to the upgrade operation except that a freshen " "requires you to have previously installed the package, while an upgrade can " "install a package for the first time. The basic syntax for freshening a " "package is to use the option." msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -F package_name\n" msgstr "" #. Tag: para #, no-c-format msgid "" "You can also use the long option in place of " "." msgstr "" #. Tag: para #, no-c-format msgid "" "As with upgrading, the options to the rpm command are the" " same, except for the or " "option that indicates the operation. These are the options discussed in the " "sections on upgrading and installing software." msgstr "" #. Tag: title #, no-c-format msgid "Installing Packages" msgstr "" #. Tag: para #, no-c-format msgid "" "The or option tells the " "rpm command to run an installation operation, which, as " "you’d suspect, installs packages. The basic syntax is:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm –i filename.rpm\n" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm –i jikes-1.16-1.i386.rpm\n" msgstr "" #. Tag: title #, no-c-format msgid "Use Upgrade, Rather Than Install" msgstr "" #. Tag: para #, no-c-format msgid "" "You should normally install packages with rpm " ", not rpm . One of " "the main reasons is that rpm allows " "you to install multiple instances of the same (identical) package. This is " "usually not what you want." msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm –i command works with the installation options " "discussed previously. The , and " " options all accept mostly the same options, except as " "discussed previously." msgstr "" #. Tag: title #, no-c-format msgid "Installing Over the Internet" msgstr "" #. Tag: para #, no-c-format msgid "" "All the commands to install packages covered so far assume that you have a " "local RPM file that you want to install. This is by far the most common " "case, but you can also use the rpm command to install " "packages available on a network. With the rpm command, " "you can get the packages to install by using the FTP or HTTP network " "protocols." msgstr "" #. Tag: para #, no-c-format msgid "" "With the File Transfer Protocol (FTP), the rpm command " "connects to an FTP file server, downloads the named package, and installs " "that package. With the HyperText Transfer Protocol (HTTP) used for Web " "pages, the rpm command connects to a Web server, " "downloads the named package, and installs that package." msgstr "" #. Tag: title #, no-c-format msgid "Name Spoofing" msgstr "" #. Tag: para #, no-c-format msgid "" "When using either FTP or HTTP, you need to provide the name of the remote " "server. An attack on your system can compromise the system of converting " "server host names into network addresses, thus spoofing the " "rpm command into installing a malicious package from the " "wrong host." msgstr "" #. Tag: title #, no-c-format msgid "Installing Using FTP" msgstr "" #. Tag: para #, no-c-format msgid "" "The key to making the network protocols work with the rpm" " command is that you need to create a URL for the remote file name. The " "basic format of the command follows:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -i ftp://hostname/path/to/file/filename.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "Note the use of ftp: in the URL for the file." msgstr "" #. Tag: para #, no-c-format msgid "For example, the following downloads a package from an IBM FTP server." msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -i ftp://www-126.ibm.com/pub/jikes/jikes-1.16-1.src.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "" "Many FTP servers require users to log in. If you do not pass a user name and" " password on the rpm command line, the " "rpm command will prompt you for the missing data." msgstr "" #. Tag: para #, no-c-format msgid "" "You can add a user name prior to the host name, separating the user name " "from the host name with an at sign, @. For example:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -i ftp://unclejoe@www-126.ibm.com/pub/jikes/jikes-1.16-1.src.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "In this case, the user name is unclejoe." msgstr "" #. Tag: title #, no-c-format msgid "Credentials are Examples" msgstr "" #. Tag: para #, no-c-format msgid "These examples do not show valid user names or passwords." msgstr "" #. Tag: para #, no-c-format msgid "" "With just a user name, the rpm command will prompt you " "for the password. You can also include the password on the " "rpm command line. Separate the user name from the " "password with a colon (:)." msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -i ftp://unclejoe:workers@www-126.ibm.com/pub/jikes/jikes-1.16-1.src.rpm\n" msgstr "" #. Tag: para #, no-c-format msgid "In this case, the user name is unclejoe and the password is workers." msgstr "" #. Tag: title #, no-c-format msgid "Installing Using HTTP" msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command supports the HTTP protocol, used by most " "Web servers, as well as FTP. Similar to accessing a file via FTP, you need " "to pass the rpm command a URL identifying the file. For " "example:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm –i http://ftp.redhat.com/pub/contrib/noarch/SRPMS/Squeak-sources-3-1.src.rpm\n" msgstr "" #. Tag: title #, no-c-format msgid "Installing source RPMs" msgstr "" #. Tag: para #, no-c-format msgid "" "Source RPMs contain the source code used to build an application or " "programming library and the scripts used to build the software into the " "application or library. These scripts are called the recipes for building " "the software." msgstr "" #. Tag: para #, no-c-format msgid "" "Source RPMs usually contain program source code. They may also contain " "patches to program sources, scripts to build the program, special files used" " by desktop environments, icons, and other files considered to be part of " "the source code, such as programming guides." msgstr "" #. Tag: title #, no-c-format msgid "Patch Files" msgstr "" #. Tag: para #, no-c-format msgid "" "A patch is a file that contains just the differences between one version of " "a file and another. The differences include the actual text that has changed" " and enough contextual information that a program can locate where the " "changes are to take place. Usually, a patch is created with the " "diff command, and the source code is patched with the " "patch command." msgstr "" #. Tag: para #, no-c-format msgid "" "In most cases, each binary RPM will have a corresponding source RPM. This is" " not always true, however." msgstr "" #. Tag: para #, no-c-format msgid "" "One source RPM may contain enough shared program code to build multiple " "application RPMs. Furthermore, the source code is not available for all " "packages. Commercial applications, for example, rarely come with source " "code. In this case, obviously, no source RPMs are available. Or, a source " "RPM for a commercial application may provide no source code, but still " "provide a way to build the resulting application. See for more on the source files and options for not including " "the sources in a source RPM." msgstr "" #. Tag: title #, no-c-format msgid "Open-source Software" msgstr "" #. Tag: para #, no-c-format msgid "" "Linux, and thousands of applications that run on Linux, are called open-" "source software. That’s because the program source code for Linux and these " "applications are available." msgstr "" #. Tag: para #, no-c-format msgid "" "Many users feel having access to the source code is vital, especially " "because:" msgstr "" #. Tag: para #, no-c-format msgid "" "Vendors may stop supporting a package. With the sources, you can conceivably" " maintain the packages yourself, or more likely, others can take up the task" " and maintain these crucial packages." msgstr "" #. Tag: para #, no-c-format msgid "" "Having the source code makes it easier to track down and fix security " "vulnerabilities, although malicious users also have access to the same " "source code." msgstr "" #. Tag: para #, no-c-format msgid "" "You can enhance and extend packages for which the program sources are " "available." msgstr "" #. Tag: para #, no-c-format msgid "" "Linux applications are available under a variety of open-source licenses. " "(In fact, it may seem that there are as many licenses as packages.) See the " "site for details." msgstr "" #. Tag: title #, no-c-format msgid "Removing Software" msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command is good for more than just installing and" " upgrading software packages. Many times, you will need to remove packages " "as well." msgstr "" #. Tag: para #, no-c-format msgid "" "To remove a package, use the option to the " "rpm command, short for erase. The basic syntax follows:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -e package_name\n" msgstr "" #. Tag: title #, no-c-format msgid "Use Package Names, Not File Names" msgstr "" #. Tag: para #, no-c-format msgid "" "When erasing or removing packages, use the package name, not the RPM file " "name. If you think about this, it makes sense. You don't always have the " "original RPM files when the time comes to remove a package." msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -e jikes-1.16-1\n" msgstr "" #. Tag: para #, no-c-format msgid "" "This example removes the jikes-1.16-1 package used in " "previous examples." msgstr "" #. Tag: title #, no-c-format msgid "root Access is Required" msgstr "" #. Tag: para #, no-c-format msgid "" "You will need to use the root " "account, or super user, to remove most packages. This is because the package" " files themselves are protected. In addition, the RPM database is protected." msgstr "" #. Tag: para #, no-c-format msgid "" "This is only natural, since most RPMs are used to install system-level " "commands and applications." msgstr "" #. Tag: para #, no-c-format msgid "" "When removing a package, the rpm command first checks " "that no other packages depend on the package you intend to remove. This is " "very important, since you otherwise can damage your Linux system by " "inadvertently removing packages needed by the rest of the system." msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command supports the " "option for removing packages as well as when installing. As with installing," " the option tells the rpm command" " to test to see whether it can remove the given package but not to force the" " removal." msgstr "" #. Tag: para #, no-c-format msgid "" "For example, if you try to remove the very important-looking " "syslinux-1.75-3 package, you can use the " " option to see if this works." msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -e --test syslinux-1.75-3\n" msgstr "" #. Tag: para #, no-c-format msgid "This command will issue an error such as the following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "error: Failed dependencies:\n" "syslinux is needed by (installed) mkbootdisk-1.4.8-1\n" msgstr "" #. Tag: title #, no-c-format msgid "Alternative Option Name" msgstr "" #. Tag: para #, no-c-format msgid "" "When removing packages, you can use the long option name, " ", in place of ." msgstr "" #. Tag: title #, no-c-format msgid "Checking that the package has been removed" msgstr "" #. Tag: para #, no-c-format msgid "" "As before, you can use the rpm " "command to query whether a package is installed. After running the " "rpm command, you can run the " "rpm command to check whether the " "package has been removed. If the rpm " "command shows that the package is not installed, that tells you the erase " "operation has worked." msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "# rpm -q jikes\n" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "# rpm -e jikes-1.16-1\n" "# rpm -q jikes\n" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "package jikes is not installed\n" msgstr "" #. Tag: title #, no-c-format msgid "Removing multiple packages at a time" msgstr "" #. Tag: para #, no-c-format msgid "" "You can remove multiple packages at once by listing each package " "consecutively on the command line. For example:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm -e aspell-en-ca-0.33.7.1-16 aspell-en-gb-0.33.7.1-16\n" msgstr "" #. Tag: para #, no-c-format msgid "" "This command removes the aspell-en-ca-0.33.7.1-16 and " "aspell-en-gb-0.33.7.1-16 packages." msgstr "" #. Tag: title #, no-c-format msgid "Options when removing packages" msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to remove all packages with names that match the names you pass on " "the command line. If you do not use the " "option, the rpm command will issue an error if more than " "one package matches the name or names you pass on the command line." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to skip the test of dependencies. Use this option when you really, " "really, want to uninstall a package." msgstr "" #. Tag: title #, no-c-format msgid "Unsafe Commands" msgstr "" #. Tag: para #, no-c-format msgid "" "Using any option that does not perform the full removal of the package, or " "skips some of the checks built into the rpm command, can " "result in damage to your Linux system. Use these options with care." msgstr "" #. Tag: para #, no-c-format msgid "" "The option, described previously, tells the " "rpm command to create a package, an RPM file, from any " "packages it would erase. These packages will appear in the default repackage" " directory, which is normally /var/spool/repackage/. " "Check your RPM settings to be sure of the directory configured on your " "system." msgstr "" #. Tag: title #, no-c-format msgid "Repackaged Files" msgstr "" #. Tag: para #, no-c-format msgid "" "Packages created with the option are not full " "packages. You cannot install these packages." msgstr "" #. Tag: para #, no-c-format msgid "" "Similar to the options when installing or upgrading packages, you can use " "the and options " "when removing packages. The option tells the " "rpm command not to run any uninstallation scripts. You " "can refine this by using either or " " in place of the " "option." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command not to run the pre-uninstallation scripts. The " " option tells the rpm command " "not to run the post-uninstallation scripts." msgstr "" #. Tag: para #, no-c-format msgid "" "The option works in a similar fashion. The " " option tells the rpm " "command not to execute any triggers. For a finer grain of control, use " " to prevent any uninstallation triggers and " " to prevent any post-uninstallation " "triggers." msgstr "" #. Tag: title #, no-c-format msgid "Other rpm Command Options" msgstr "" #. Tag: para #, no-c-format msgid "" "Options such as (for more verbose output) work with the " "rpm command for installing, removing, and upgrading " "packages, as well as most other uses of the rpm command." msgstr "" #. Tag: para #, no-c-format msgid "" "Other rpm command options, which work with most RPM " "actions, include to turn off most output except for" " errors, and , covered previously." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to use one or more other files to initialize the RPM system. These " "files tell the rpm command the system architecture, " "operating system, and default location of the RPM database, among a host of " "other settings." msgstr "" #. Tag: title #, no-c-format msgid "rc Files" msgstr "" #. Tag: para #, no-c-format msgid "" "The term rc comes from Unix shells, with initialization" " files such as .cshrc for the C shell, " "csh. The term rc was originally a " "shorthand for run commands. An rc is a file of commands" " that run when the application starts up. For example, the C shell, " "csh, runs the commands in file named " ".cshrc when the shell starts." msgstr "" #. Tag: para #, no-c-format msgid "" "In most cases, the application looks in the user home directory for a " "specific file tied to the application. For the rpm " "command, this file is .rpmrc. The leading period makes " "the file hidden for most directory listings." msgstr "" #. Tag: para #, no-c-format msgid "" "In addition to the user-level file of commands, most applications supporting" " this mechanism have a way for site administrators to customize the command " "for all users. For example, your system may have a file named " "/etc/rpmrc (with no leading period) that customizes the" " rpm command for all users on your system. See for a more in-depth look at the chain of " "these files." msgstr "" #. Tag: para #, no-c-format msgid "The syntax for the option is" msgstr "" #. Tag: para #, no-c-format msgid " filename" msgstr "" #. Tag: para #, no-c-format msgid "You can also supply more than one file name. This syntax follows:" msgstr "" #. Tag: para #, no-c-format msgid "" " " "filename1:filename2:filename3" msgstr "" #. Tag: para #, no-c-format msgid "Separate each file name with a colon." msgstr "" #. Tag: para #, no-c-format msgid "With Red Hat Linux, the default set of initialization files are:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "/usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc:/etc/rpmrc:~/.rpmrc\n" msgstr "" #. Tag: title #, no-c-format msgid "Tilde (~) Denotes Home Directory" msgstr "" #. Tag: para #, no-c-format msgid "" "The ~/.rpmrc means to look in the user's home directory" " for a file named rpmrc." msgstr "" #. Tag: para #, no-c-format msgid "" "You can use the option to list all the " "rc settings." msgstr "" #. Tag: title #, no-c-format msgid "The Option" msgstr "" #. Tag: para #, no-c-format msgid "" "See for more on the " " option." msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm " "command to print out the version number of the command and then exit. For " "example:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "rpm --version\n" msgstr "" #. Tag: para #, no-c-format msgid "This command prints out a version number, like the following:" msgstr "" #. Tag: screen #, no-c-format msgid "" "\n" "RPM version 4.1\n" msgstr "" #. Tag: para #, no-c-format msgid "" "The option, mentioned previously, tells the " "rpm command to use a different RPM database. This is " "useful when testing a complete system install, where you want to change the " "RPM database but don't want that to affect your running Linux system. In " "this case, you can use a different RPM database and test out your changes. " "The basic syntax for this option is:" msgstr "" #. Tag: para #, no-c-format msgid " directory_name" msgstr "" #. Tag: para #, no-c-format msgid "" "The option tells the rpm command " "to send, or pipe, its output to another program. The syntax for this option " "is:" msgstr "" #. Tag: para #, no-c-format msgid "" " command_to_send_out_to" msgstr "" #. Tag: title #, no-c-format msgid "Summary" msgstr "" #. Tag: para #, no-c-format msgid "" "This chapter covered the easy part of managing packages, the common actions " "of installing, removing, and upgrading software." msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command removes packages. The" " rpm command upgrades packages by " "installing new packages and removing old versions of all the packages " "upgraded. RPM upgrades also work for installing new packages. The " "rpm command freshens packages. This " "command only upgrades a package if an older version of the package has " "already been installed. The rpm " "command installs packages." msgstr "" #. Tag: para #, no-c-format msgid "" "The table below summarizes the rpm command-line options " "for installing, removing, and upgrading packages." msgstr "" #. Tag: title #, no-c-format msgid "" "Installing, Removing, and Upgrading with the rpm command" msgstr "" #. Tag: entry #, no-c-format msgid "Command" msgstr "" #. Tag: para #, no-c-format msgid "" "rpm –i install_options " "package_files" msgstr "" #. Tag: para #, no-c-format msgid "Install packages." msgstr "" #. Tag: para #, no-c-format msgid "" "rpm –e remove_options packages" msgstr "" #. Tag: para #, no-c-format msgid "Erase, remove, packages." msgstr "" #. Tag: para #, no-c-format msgid "" "rpm –U install_options " "package_files" msgstr "" #. Tag: para #, no-c-format msgid "Upgrade or install packages. Use this option for installations." msgstr "" #. Tag: para #, no-c-format msgid "" "rpm –Uvh install_options " "package_files" msgstr "" #. Tag: para #, no-c-format msgid "" "Upgrade or install packages with extra output. This is the recommended " "command to install packages." msgstr "" #. Tag: para #, no-c-format msgid "" "rpm –F install_options " "package_files" msgstr "" #. Tag: para #, no-c-format msgid "Freshen packages." msgstr "" #. Tag: para #, no-c-format msgid "" "Unfortunately, modern system management gets more complex than that. The " "next chapter delves into package dependencies and the nightmare you can get " "into when one package depends on another that then depends on another, ad " "infinitum." msgstr ""