RSS

Installing software with RPM

30 Dec

RPM is RedHat Package Manager is system management package. It supported more feature such as : Installing, removing, updating or checking. RPM have database of package installed. So, RPM allow user querying and authentication package in system.

Index:

  • Installing package
  • Removing package
  • Updating package
  • Querying package

image

See more option by:

$ rpm --help |more

 

Installing package:

Syntax:

$ rpm -ivh <name_file_RPM>

Explain

Option

Option

Detail

-I

–install

Install package

-v

–verbose

Provide more detailed to output

-h

–hash

Print hash marks as package installs

 

Some problem when install package:

Package is already installed . If we want to overriding package .We could adding option  –replacepkgs or –force

Package conflicts with the old package. If we want overriding package, we could adding option –replacefiles or –force

Package dependencies other package. Then, we need to install that package the first.

 

Removing package:

Syntax:

$ rpm -e <name_package>

Notes: this is name package, don’t have name file RPM

We maybe get error "moving these packages would break dependencies" .We compress error by option –nodeps . But not recommend.

 

Updating package :

Syntax:

$ rpm -Uvh <name_file_RPM>

Updating is the combining between removing and installing package

Some problem show " is already installed". This is problem when we was installing old package, could parsing by option –oldpackage to could upgrade old package

 

$ rpm -e <name_package>

Querying database to checking existing of package.

Syntax:

$ rpm -q <package>

Some important option:

-a

–all

Query / verify all packages

-f

–file

Query / verify packages owning file

-p

–package

Query / verify packages file

 

$ rpm -qd ypbind # querying document of package

clip_image001

 

$ rpm -ql ypbind # querying list file installed of package

clip_image002

 

$ rpm -qs ypbind # Querying state of file in package

clip_image003

 

$  rpm -qc ypbind # querying list configuration file

clip_image004

 

$ rpm -qi ypbind # querying list information of package

clip_image005

  written by hotdream1990

 
 

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s