12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Installing Software 129After verifying that the package is trustworthy, install it with this command:rpm -Uvh The -Uvh arguments tell the rpm command to install the package, display verbose informationabout the installation, and display the progress of the installation with hash marks.The output will look similar to Listing 5.2.LISTING 5.2Installing an RPM PackagePreparing... ########################################### [100%]1:example ########################################### [100%]Sometimes a package requires additional RPM packages to be installed or updated asshown in Listing 5.3.LISTING 5.3Dependencies Needederror: Failed dependencies:example-core = 1:2.0.0-3.2.1 is needed by example-filters-2.0.0-3.2.1.i3865Download the additional package as well and install all the packages at the same time:rpm -Uvh TIPThe -U argument installs the software if it is not already installed. If it is alreadyinstalled and you only want to upgrade the package , use the -F argument instead:rpm -Fvh -..rpmAdditional options to the rpm command can be specified when installing packages. Someof these options are described in Table 5.2.TABLE 5.2 Optional rpm Arguments When Installing or UpdatingArgument Description--nodepsInstall or upgrade the package without checking for dependencies. Thesoftware will most likely not function properly without the softwaredependencies installed. If you contact <strong>Red</strong> <strong>Hat</strong> support with problems,they will most likely ask you to reproduce the problem on a systemwhere all package dependencies have been satisified.--noscripts Do not execute any of the scripts before or after installation, upgrade,or removal.--excludedocs Do not install packages marked as documentation files such as manpages.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!