Red Hat Package Manager-RPM

来源:互联网 发布:炮姐捏脸数据 编辑:程序博客网 时间:2024/05/17 03:36


Red Hat Package Manager

he rpm (Red Hat Package Manager) utility works only with software packages that have been built for processing by rpm; it installs, uninstalls, upgrades, queries, and verifies rpm packages.


The Processor Architecture

  • i386 covers all Intel- and most AMD-based systems.

  • i586 covers Pentium-class processors and above.

  • i686 refers to Pentium II or better, and includes MMX extensions.

  • S390 is for IBM System/390.

  • ia64 is for the 64-bit Intel processor.

  • alpha is for the DEC/Compaq Alpha chip.

  • athlon denotes the AMD Athlon family including x86_64 and AMD64.

  • ppc is for the Power PC chip.

  • sparc covers the Sun Sparc processor).

  • Noarch can run on any architecture.

       

Querying Packages and Files

rpm -qa---Getting a list of on-line summaries of all packages installed on the system

rpm -q packageName

rpm -qi packageName

rpm -ql packageName---Listing the files in a package

rpm -qf fileName---Determining which package a file belongs to



Installing, Upgrading, and Removing Packages

rpm -Uvh packageName.rpm

U:Updating existing packages and installing new packages

v(verbose):Displaying information about what is happening

h:Displaying hash marks as the package is unpacked and installed

rpm -e packageName

 
原创粉丝点击