Наши партнеры








Книги по Linux (с отзывами читателей)

Библиотека сайта rus-linux.net

Upgrade Mode

RPM's upgrade mode is used to upgrade packages:

Format: rpm --upgrade <packagefile>

or

Format: rpm -U <packagefile>

Options To Upgrade Mode

The following options can be used on any upgrade command:

  • -h, --hash — Print hash marks as package installs (good with -v).

  • --prefix <dir> — Relocate the package to <dir>, if relocatable.

  • --excludedocs — Do not install documentation.

  • --force — Shorthand for --replacepkgs, --replacefiles, and --oldpackage.

  • --ignorearch — Do not verify package architecture.

  • --ignoreos — Do not verify package operating system.

  • --includedocs — Install documentation.

  • --nodeps — Do not verify package dependencies.

  • --noscripts — Do not execute any installation scripts.

  • --percent — Print percentages as package installs.

  • --replacefiles — Install even if the package replaces installed files.

  • --replacepkgs — Reinstall if the package is already present.

  • --test — Do not install, but tell if it would work or not.

  • --oldpackage — Upgrade to an old version of the package (--force on upgrades does this automatically).