# AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: Fedora RPM Guide\n" "POT-Creation-Date: 2011-03-02T00:57:11\n" "PO-Revision-Date: 2011-08-21 05:21+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: Hungarian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: hu\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" #. Tag: title #, no-c-format msgid "Customizing RPM Behavior" msgstr "" #. Tag: para #, no-c-format msgid "This chapter covers:" msgstr "" #. Tag: para #, no-c-format msgid "Defining RPM macros" msgstr "" #. Tag: para #, no-c-format msgid "Configuring RPM settings" msgstr "" #. Tag: para #, no-c-format msgid "Adding popt aliases" msgstr "" #. Tag: para #, no-c-format msgid "" "RPM provides a high degree of customization in the form of basic settings, " "such as where your RPM database is located and the path to common commands " "like setup or make, to the ability to define new macros and command-line " "aliases. This chapter covers the three main ways to customize RPM behavior: " "RPM macros, RPM rc settings, and popt aliases." msgstr "" #. Tag: title #, no-c-format msgid "Customizing with RPM Macros" msgstr "" #. Tag: para #, no-c-format msgid "" "Starting with RPM 3.0, RPM macros have replaced most RPM settings from the " "rpmrc files." msgstr "" #. Tag: para #, no-c-format msgid "" "An RPM macro defines a setting to the RPM system. A macro can be defined as " "a static value, such as the directory where the RPM database is installed. A" " macro can also be defined in terms of other macros. Furthermore, a macro " "can be defined with parameters." msgstr "" #. Tag: para #, no-c-format msgid "For example, the following defines two macros in a macro file:" msgstr "" #. Tag: para #, no-c-format msgid "%_usr /usr" msgstr "" #. Tag: para #, no-c-format msgid "%_usrsrc %{_usr}/src" msgstr "" #. Tag: para #, no-c-format msgid "" "In this case, the macro %_usr names the /usr directory. The macro %_usrsrc " "names the /usr/src directory, showing how to set a macro in terms of another" " macro." msgstr "" #. Tag: para #, no-c-format msgid "Cross Reference" msgstr "" #. Tag: para #, no-c-format msgid "" "The macro syntax is used in the query formats introduced in ." msgstr "" #. Tag: title #, no-c-format msgid "Defining macros" msgstr "" #. Tag: para #, no-c-format msgid "" "RPM provides a number of places you can define macros, including inside spec" " files (probably the most common usage), in special macro initialization " "files, and on the command line." msgstr "" #. Tag: para #, no-c-format msgid "In each case, the syntax is slightly different." msgstr "" #. Tag: title #, no-c-format msgid "Defining Macros in Spec Files" msgstr "" #. Tag: para #, no-c-format msgid "" "You can define macros in most places in a spec file. With spec files, use " "the %define syntax to define a macro, which uses the following syntax:" msgstr "" #. Tag: para #, no-c-format msgid "%define name(options) body" msgstr "" #. Tag: para #, no-c-format msgid "" "The options are optional and can include the special values defined in Table" " 21-1." msgstr "" #. Tag: para #, no-c-format msgid "Table 21-1 Special options for macros" msgstr "" #. Tag: para #, no-c-format msgid "Option" msgstr "" #. Tag: para #, no-c-format msgid "Holds" msgstr "" #. Tag: para #, no-c-format msgid "%0" msgstr "" #. Tag: para #, no-c-format msgid "The name of the macro" msgstr "" #. Tag: para #, no-c-format msgid "%1" msgstr "" #. Tag: para #, no-c-format msgid "The first argument, after processing with getopt" msgstr "" #. Tag: para #, no-c-format msgid "%2-%9" msgstr "" #. Tag: para #, no-c-format msgid "Additional arguments" msgstr "" #. Tag: para #, no-c-format msgid "%*" msgstr "" #. Tag: para #, no-c-format msgid "All arguments, except for flags that have been processed" msgstr "" #. Tag: para #, no-c-format msgid "%#" msgstr "" #. Tag: para #, no-c-format msgid "Number of arguments" msgstr "" #. Tag: para #, no-c-format msgid "These options are similar to those for shell scripting." msgstr "" #. Tag: para #, no-c-format msgid " covers spec files." msgstr "" #. Tag: para #, no-c-format msgid "" "In addition to these options, you can use a syntax of %{-a} to hold –a if an" " option of –a was passed. The syntax of %{-a*} indicates the value passed " "after the –a option." msgstr "" #. Tag: para #, no-c-format msgid "" "You can assign a macro to the value returned by a shell command by using " "syntax like the following:" msgstr "" #. Tag: para #, no-c-format msgid "%(shell_command)" msgstr "" #. Tag: para #, no-c-format msgid "Note" msgstr "" #. Tag: para #, no-c-format msgid "This is similar to the $(shell_command) syntax supported by bash." msgstr "" #. Tag: title #, no-c-format msgid "Defining Macros in Macro Initialization Files" msgstr "" #. Tag: para #, no-c-format msgid "Inside a macro file, define macros with the following syntax:" msgstr "" #. Tag: para #, no-c-format msgid "%macro_name value" msgstr "" #. Tag: para #, no-c-format msgid "" "Macros defined for the RPM system start with an underscore. Some older " "macros are left without the leading underscore." msgstr "" #. Tag: para #, no-c-format msgid "" "The macros defined with an underscore are not exported into rpm headers." msgstr "" #. Tag: para #, no-c-format msgid "" "The %expand built-in macro will expand the value of something else, " "including executing a shell command. For example, the following sets the " "user’s home directory to the %home macro:" msgstr "" #. Tag: para #, no-c-format msgid "%home %{expand:%%(cd; pwd)}" msgstr "" #. Tag: para #, no-c-format msgid "" "Note that it is probably easier to simply set the %home macro in your per-" "user $HOME/.rpmmacros file to the name of your home directory rather than " "try to figure this out programmatically." msgstr "" #. Tag: title #, no-c-format msgid "Defining Macros on the Command Line" msgstr "" #. Tag: para #, no-c-format msgid "" "The rpm command also lets you define macros with the --define option. The " "basic syntax is:" msgstr "" #. Tag: para #, no-c-format msgid "$ rpm --define 'macro_name value'" msgstr "" #. Tag: para #, no-c-format msgid "" "Do not place the leading percent sign, %, on the macro you define with " "--define." msgstr "" #. Tag: para #, no-c-format msgid "" "You can evaluate a macro or a macro expression with --eval. For example:" msgstr "" #. Tag: para #, no-c-format msgid "$ rpm --eval %_usrsrc" msgstr "" #. Tag: para #, no-c-format msgid "/usr/src" msgstr "" #. Tag: title #, no-c-format msgid "Customizing Macros" msgstr "" #. Tag: para #, no-c-format msgid "" "You can add your own macro definitions, using the syntax shown in the " "“Defining Macros in Macro Initialization Files” section. These macros are " "read on each invocation of the rpm or rpmbuild commands." msgstr "" #. Tag: para #, no-c-format msgid "" "To add your custom macros, you must edit one of the macro definition files. " "Table 21-2 lists the macro definition files and their usage." msgstr "" #. Tag: para #, no-c-format msgid "Table 21-2 RPM macro files" msgstr "" #. Tag: para #, no-c-format msgid "File" msgstr "" #. Tag: para #, no-c-format msgid "Usage" msgstr "" #. Tag: para #, no-c-format msgid "/usr/lib/rpm/macros" msgstr "" #. Tag: para #, no-c-format msgid "Official RPM macros" msgstr "" #. Tag: para #, no-c-format msgid "/etc/rpm/macros" msgstr "" #. Tag: para #, no-c-format msgid "Per-system customizations" msgstr "" #. Tag: para #, no-c-format msgid "$HOME/.rpmmacros" msgstr "" #. Tag: para #, no-c-format msgid "Per-user customizations" msgstr "" #. Tag: para #, no-c-format msgid "" "Do not edit the /usr/lib/rpm/macros file, as this file gets overwritten when" " you upgrade to a new version of rpm." msgstr "" #. Tag: title #, no-c-format msgid "Configuring RPM Settings" msgstr "" #. Tag: para #, no-c-format msgid "" "RPM includes hundreds of settings based on your current system architecture," " environment, and which version of the RPM system you have installed. The " "old settings, called rc or rpmrc settings, are gradually being phased out by" " the newer, more consistent and more powerful macros." msgstr "" #. Tag: para #, no-c-format msgid "" "You can still edit the rc settings, but in most cases you should edit macros" " instead." msgstr "" #. Tag: title #, no-c-format msgid "Viewing the current settings" msgstr "" #. Tag: para #, no-c-format msgid "To view the current settings, use the --showrc command-line option:" msgstr "" #. Tag: para #, no-c-format msgid "$ rpm –showrc" msgstr "" #. Tag: para #, no-c-format msgid "ARCHITECTURE AND OS:" msgstr "" #. Tag: para #, no-c-format msgid "build arch : i386" msgstr "" #. Tag: para #, no-c-format msgid "compatible build archs: i686 i586 i486 i386 noarch" msgstr "" #. Tag: para #, no-c-format msgid "build os : Linux" msgstr "" #. Tag: para #, no-c-format msgid "compatible build os's : Linux" msgstr "" #. Tag: para #, no-c-format msgid "install arch : i686" msgstr "" #. Tag: para #, no-c-format msgid "install os : Linux" msgstr "" #. Tag: para #, no-c-format msgid "compatible archs : i686 i586 i486 i386 noarch" msgstr "" #. Tag: para #, no-c-format msgid "compatible os's : Linux" msgstr "" #. Tag: para #, no-c-format msgid "RPMRC VALUES:" msgstr "" #. Tag: para #, no-c-format msgid "macrofiles : /usr/lib/rpm/macros:/usr/lib/rpm/i686-linux/macros:/etc/" msgstr "" #. Tag: para #, no-c-format msgid "" "rpm/macros.specspo:/etc/rpm/macros.db1:/etc/rpm/macros.cdb:/etc/rpm/macros:/etc/" msgstr "" #. Tag: para #, no-c-format msgid "rpm/i686-linux/macros:~/.rpmmacros" msgstr "" #. Tag: para #, no-c-format msgid "optflags : -O2 -march=i686" msgstr "" #. Tag: para #, no-c-format msgid "" "This command displays the architecture and operating system information " "first, and then lists all the rpmrc values, shown here truncated for space." msgstr "" #. Tag: title #, no-c-format msgid "Locating the rpmrc files" msgstr "" #. Tag: para #, no-c-format msgid "" "The --showrc option reads in all the rpmrc files from the various locations." " By default, this is /usr/lib/rpm/rpmrc, /etc/rpm/rpmrc, and a file named " ".rpmrc (with a leading period) in your home directory." msgstr "" #. Tag: para #, no-c-format msgid "" "These files are read in the order given, so that the later files can " "override settings in the earlier files." msgstr "" #. Tag: para #, no-c-format msgid "The uses for these files are listed in Table 21-3." msgstr "" #. Tag: para #, no-c-format msgid "Table 21-3 Uses for the rpmrc files" msgstr "" #. Tag: para #, no-c-format msgid "/usr/lib/rpm/rpmrc" msgstr "" #. Tag: para #, no-c-format msgid "RPM standard settings" msgstr "" #. Tag: para #, no-c-format msgid "/etc/rpm/rpmrc" msgstr "" #. Tag: para #, no-c-format msgid "Per-system configuration" msgstr "" #. Tag: para #, no-c-format msgid "$HOME/.rpmrc" msgstr "" #. Tag: para #, no-c-format msgid "Per-user configuration" msgstr "" #. Tag: para #, no-c-format msgid "" "The file /usr/lib/rpm/rpmrc gets overwritten each time you upgrade RPM. Do " "not customize this file." msgstr "" #. Tag: para #, no-c-format msgid "" "You can override this list of files by calling the rpm or rpmbuild commands " "with the --rcfile option. This option expects a semicolon@nddelimited list " "of files to read in, in order. For example, if you are working on a " "686-architecture Intel platform, you can create a file with the following " "setting:" msgstr "" #. Tag: para #, no-c-format msgid "optflags: i686 -g" msgstr "" #. Tag: para #, no-c-format msgid "" "Note that this disables optimization, so it is not a good setting. (The use " "of this value will make the result more visible.)" msgstr "" #. Tag: para #, no-c-format msgid "" "If you name this file .rpmnew and place it in your home directory, you can " "configure an alternate set of files with the --rcfile option and then " "evaluate the new optflags setting. For example:" msgstr "" #. Tag: para #, no-c-format msgid "$ rpm --eval \"%{optflags}\"" msgstr "" #. Tag: para #, no-c-format msgid "-O2 -march=i386 -mcpu=i686" msgstr "" #. Tag: para #, no-c-format msgid "$ rpm --rcfile $HOME/.rpmnew --eval \"%{optflags}\"" msgstr "" #. Tag: para #, no-c-format msgid "-g" msgstr "" #. Tag: para #, no-c-format msgid "" "This example shows the value before and after changing the configuration " "files." msgstr "" #. Tag: para #, no-c-format msgid "" "When you use the --rcfile option, only the first file listed must exist. The" " rest of the files are optional. When you use the --rcfile option, however, " "the file /usr/lib/rpm/rpmrc is read first, and then the list of files you " "provide with the --rcfile option. The file /usr/lib/rpm/rpmrc is always " "used." msgstr "" #. Tag: title #, no-c-format msgid "Changing settings" msgstr "" #. Tag: para #, no-c-format msgid "" "You can edit the per-user or per-system rc files to change the settings. The" " format of the rpmrc files is fairly simple but contains a few exceptions. " "The most basic format is:" msgstr "" #. Tag: para #, no-c-format msgid "setting: value" msgstr "" #. Tag: para #, no-c-format msgid "" "The settings get more complicated as the rpmrc syntax supports defining " "settings for multiple architectures at once. In that case, the typical " "format is:" msgstr "" #. Tag: para #, no-c-format msgid "setting: uname: value" msgstr "" #. Tag: para #, no-c-format msgid "" "The uname portion is replaced by a value that comes from the uname(2) system" " call, for example, i686 on a 686-class Intel architecture machine." msgstr "" #. Tag: para #, no-c-format msgid "" "In most cases, your best bet is to copy an existing setting and modify it, " "rather than remembering all the exceptions." msgstr "" #. Tag: title #, no-c-format msgid "Setting the optflags" msgstr "" #. Tag: para #, no-c-format msgid "" "One exception to the rule is the optflags setting, which controls C compiler" " options for optimization. The format for the optflags setting is:" msgstr "" #. Tag: para #, no-c-format msgid "setting: arch value" msgstr "" #. Tag: para #, no-c-format msgid "There is no colon after the architecture. For example:" msgstr "" #. Tag: para #, no-c-format msgid "optflags: i686 -O2 -march=i686" msgstr "" #. Tag: para #, no-c-format msgid "optflags: alphaev5 -O2 -mieee -mcpu=ev5" msgstr "" #. Tag: para #, no-c-format msgid "" "This example sets the optimization flags for an i686 system to -O2 " "-march=i686 and an alphaev5 system to -O2 -mieee -mcpu=ev5. If your system " "is running on a 686-class processor, you will get one set of optimization " "flags. If your system is running on a V5 Alpha processor, you will get a " "different set." msgstr "" #. Tag: title #, no-c-format msgid "Setting the Architecture Values" msgstr "" #. Tag: para #, no-c-format msgid "" "The arch_canon setting builds up a table of mappings between architecture " "names and the numbers used internally. The following example shows the Intel" " and SPARC architecture settings to 1 and 3 internally." msgstr "" #. Tag: para #, no-c-format msgid "arch_canon: athlon: athlon 1" msgstr "" #. Tag: para #, no-c-format msgid "arch_canon: i686: i686 1" msgstr "" #. Tag: para #, no-c-format msgid "arch_canon: i586: i586 1" msgstr "" #. Tag: para #, no-c-format msgid "arch_canon: i486: i486 1" msgstr "" #. Tag: para #, no-c-format msgid "arch_canon: i386: i386 1" msgstr "" #. Tag: para #, no-c-format msgid "arch_canon: sparc: sparc 3" msgstr "" #. Tag: para #, no-c-format msgid "arch_canon: sun4: sparc 3" msgstr "" #. Tag: para #, no-c-format msgid "arch_canon: sun4m: sparc 3" msgstr "" #. Tag: para #, no-c-format msgid "arch_canon: sun4c: sparc 3" msgstr "" #. Tag: para #, no-c-format msgid "arch_canon: sun4d: sparc 3" msgstr "" #. Tag: para #, no-c-format msgid "arch_canon: sparcv9: sparcv9 3" msgstr "" #. Tag: para #, no-c-format msgid "" "The arch_compat setting builds a table of compatible architectures. The " "format is:" msgstr "" #. Tag: para #, no-c-format msgid "arch_compat: arch: compatible_with" msgstr "" #. Tag: para #, no-c-format msgid "" "This sets the given architecture arch as being compatible with another " "architecture." msgstr "" #. Tag: para #, no-c-format msgid "For example:" msgstr "" #. Tag: para #, no-c-format msgid "arch_compat: athlon: i686" msgstr "" #. Tag: para #, no-c-format msgid "" "This setting indicates that an athlon architecture is compatible with an " "i686. The table gets built up further with the following Intel-architecture " "compatibilities:" msgstr "" #. Tag: para #, no-c-format msgid "arch_compat: i686: i586" msgstr "" #. Tag: para #, no-c-format msgid "arch_compat: i586: i486" msgstr "" #. Tag: para #, no-c-format msgid "arch_compat: i486: i386" msgstr "" #. Tag: para #, no-c-format msgid "arch_compat: i386: noarch" msgstr "" #. Tag: para #, no-c-format msgid "" "The os_canon setting defines a table of operating system labels and internal" " numeric values. The basic syntax is:" msgstr "" #. Tag: para #, no-c-format msgid "os_canon: arch: name value" msgstr "" #. Tag: para #, no-c-format msgid "" "The arch comes from the uname(2) call. The name provides an RPM name for " "that operating system, and the value defines an internal numeric ID for that" " OS, for example:" msgstr "" #. Tag: para #, no-c-format msgid "os_canon: Linux: Linux 1" msgstr "" #. Tag: para #, no-c-format msgid "os_canon: HP-UX: hpux10 6" msgstr "" #. Tag: para #, no-c-format msgid "" "The buildarchtranslate setting defines the operating system settings to use " "as the build architecture. This value translates information from the " "uname(2) call to a value used by the arch_canon setting. For example:" msgstr "" #. Tag: para #, no-c-format msgid "buildarchtranslate: athlon: i386" msgstr "" #. Tag: para #, no-c-format msgid "buildarchtranslate: i686: i386" msgstr "" #. Tag: para #, no-c-format msgid "buildarchtranslate: i586: i386" msgstr "" #. Tag: para #, no-c-format msgid "buildarchtranslate: i486: i386" msgstr "" #. Tag: para #, no-c-format msgid "buildarchtranslate: i386: i386" msgstr "" #. Tag: para #, no-c-format msgid "buildarchtranslate: sun4c: sparc" msgstr "" #. Tag: para #, no-c-format msgid "buildarchtranslate: sun4d: sparc" msgstr "" #. Tag: para #, no-c-format msgid "buildarchtranslate: sun4m: sparc" msgstr "" #. Tag: para #, no-c-format msgid "buildarchtranslate: sparcv9: sparc" msgstr "" #. Tag: para #, no-c-format msgid "buildarchtranslate: sun4u: sparc64" msgstr "" #. Tag: title #, no-c-format msgid "Adding Popt Aliases" msgstr "" #. Tag: para #, no-c-format msgid "" "Popt provides a powerful library and RPM subsystem for handling the very " "complex RPM command-line options. You can customize your RPM usage by " "defining popt aliases for complex command-line arguments to the rpm or " "rpmbuild commands. A popt alias is a command-line option that expands to " "other command-line options." msgstr "" #. Tag: para #, no-c-format msgid "" "This technique is used internally to define quite a few command-line options" " to the rpm and rpmbuild commands in terms of other, more complex options. " "Many of these aliases define simple command-line options in place of more " "complex query format options." msgstr "" #. Tag: para #, no-c-format msgid " covers the query format." msgstr "" #. Tag: para #, no-c-format msgid "" "For example, the following entry defines the --requires and –R command-line " "options to the rpm command:" msgstr "" #. Tag: para #, no-c-format msgid "rpm alias --requires --qf \\" msgstr "" #. Tag: para #, no-c-format msgid "\"[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\\n]\" \\" msgstr "" #. Tag: para #, no-c-format msgid "--POPTdesc=$\"list capabilities required by package(s)\"" msgstr "" #. Tag: para #, no-c-format msgid "rpm alias -R --requires" msgstr "" #. Tag: para #, no-c-format msgid "These options are set in the file /usr/lib/rpm/rpmpopt-4.1." msgstr "" #. Tag: para #, no-c-format msgid "" "This is specific to RPM 4.1. Other releases of RPM use the same naming " "format but with the current RPM version number, such as 4.2 and so on." msgstr "" #. Tag: title #, no-c-format msgid "Defining aliases" msgstr "" #. Tag: para #, no-c-format msgid "Defining aliases is pretty easy. The basic syntax is:" msgstr "" #. Tag: para #, no-c-format msgid "command_name alias option expansion" msgstr "" #. Tag: para #, no-c-format msgid "" "To create an alias for the rpm command, you use rpm for the command_name." msgstr "" #. Tag: para #, no-c-format msgid "" "The command_name must be the name passed to the C poptGetContext function, " "covered in ." msgstr "" #. Tag: para #, no-c-format msgid "" "Follow this with alias and then the option. You will need separate aliases " "for the long and short options. The expansion defines the alias in terms of " "other already-defined command-line parameters." msgstr "" #. Tag: para #, no-c-format msgid "" "You can define some complex aliases, such as the following one to display " "information about a package:" msgstr "" #. Tag: para #, no-c-format msgid "" "rpm alias --info --qf 'Name : %-27{NAME} Relocations: " "%|PREFIXES?{[%{PREFIXES} ]}:{(not relocateable)}|\\n\\" msgstr "" #. Tag: para #, no-c-format msgid "Version : %-27{VERSION} Vendor: %{VENDOR}\\n\\" msgstr "" #. Tag: para #, no-c-format msgid "Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\\n\\" msgstr "" #. Tag: para #, no-c-format msgid "" "Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| " "Build Host: %{BUILDHOST}\\n\\" msgstr "" #. Tag: para #, no-c-format msgid "Group : %-27{GROUP} Source RPM: %{SOURCERPM}\\n\\" msgstr "" #. Tag: para #, no-c-format msgid "Size : %-27{SIZE}%|LICENSE?{ License: %{LICENSE}}|\\n\\" msgstr "" #. Tag: para #, no-c-format msgid "" "Signature : " "%|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\\n\\" msgstr "" #. Tag: para #, no-c-format msgid "%|PACKAGER?{Packager : %{PACKAGER}\\n}|\\" msgstr "" #. Tag: para #, no-c-format msgid "%|URL?{URL : %{URL}\\n}|\\" msgstr "" #. Tag: para #, no-c-format msgid "Summary : %{SUMMARY}\\n\\" msgstr "" #. Tag: para #, no-c-format msgid "Description :\\n%{DESCRIPTION}\\n' \\" msgstr "" #. Tag: para #, no-c-format msgid "--POPTdesc=$\"list descriptive information from package(s)\"" msgstr "" #. Tag: para #, no-c-format msgid "" "Popt aliases get evaluated into Linux commands, so you can use pipes and " "other aspects of Linux shells in your aliases." msgstr "" #. Tag: para #, no-c-format msgid "" "Look closely at the examples in the /usr/lib/rpm/rpmpopt-4.1 file. This is " "the most complete set of popt alias examples for RPM commands." msgstr "" #. Tag: para #, no-c-format msgid "" "You can also define aliases that can set RPM macros, such as the following " "alias for setting the path to the RPM database:" msgstr "" #. Tag: para #, no-c-format msgid "rpm alias --dbpath --define '_dbpath !#:+'" msgstr "" #. Tag: para #, no-c-format msgid "" "In this example, !#:+ was defined to behave like a shell history-editing " "command. With popt, this means to grab the next command-line parameter and " "place it into the command defined for the alias." msgstr "" #. Tag: para #, no-c-format msgid "" "To support the --help and --usage options, you can define the --POPTdesc and" " --POPTargs options to the alias as shown in the previous examples. These " "options also support internationalization." msgstr "" #. Tag: para #, no-c-format msgid "" "All together, the popt alias setting is very close to the popt option table " "entries used with the C programming API." msgstr "" #. Tag: para #, no-c-format msgid "" " shows how to program with the popt " "library." msgstr "" #. Tag: title #, no-c-format msgid "Customizing popt aliases" msgstr "" #. Tag: para #, no-c-format msgid "" "Like RPM macros and settings, popt aliases are defined in a cascading set of" " files. The official RPM aliases are defined in /usr/lib/rpm/rpmpopt-4.1 for" " rpm 4.1." msgstr "" #. Tag: para #, no-c-format msgid "" "Do not modify this file! The RPM system depends on this file for proper " "functioning. Incorrect changes might disable many options to the rpm " "command." msgstr "" #. Tag: para #, no-c-format msgid "" "Store per-system popt aliases in /etc/popt. Store per-user aliases in " "$HOME/.popt (with a leading period)." msgstr "" #. Tag: para #, no-c-format msgid "These files are shared by all applications that use popt." msgstr "" #. Tag: para #, no-c-format msgid "" "For example, you can define an alias for rpm -qa that executes faster than " "the normal query all packages command, by turning off the tests for digest " "signature verification. To do so, add the following line to a file named " ".popt in your home directory:" msgstr "" #. Tag: para #, no-c-format msgid "rpm alias --qall -qa --nodigest --nosignature" msgstr "" #. Tag: para #, no-c-format msgid "" "Once you set up this alias, you can run the following command in place of " "rpm -qa:" msgstr "" #. Tag: para #, no-c-format msgid "$ rpm --qall" msgstr "" #. Tag: para #, no-c-format msgid "" "This should execute about one-third to one-half faster than the normal rpm " "-qa command." msgstr "" #. Tag: para #, no-c-format msgid "Warning" msgstr "" #. Tag: para #, no-c-format msgid "" "Turning off the signature and digest tests means you are ignoring important " "information that pertains to the integrity of your system. That is why the " "alias shown here does not override the normal -qa option, and instead " "defines a new --qall option" msgstr "" #. Tag: title #, no-c-format msgid "Summary" msgstr "" #. Tag: para #, no-c-format msgid "" "This chapter shows the many ways you can customize RPM usage for your system" " or your own personal environment. You can define RPM macros, which is the " "preferred way to make RPM settings. Or you can set RPM values in the older " "rpmrc files, which are now mostly replaced by RPM macros." msgstr "" #. Tag: para #, no-c-format msgid "" "Using popt, the powerful command-line option parser, you can define aliases " "to add simple options that popt expands into whatever you define. Many of " "the rpm command-line options are defined this way." msgstr ""