The use of rpm command in linux.

      rpm(redhat package manager)

      rpm – installer files in Linux. Main drawback is dependency.

      rpm [options] package-name
   
      Eg1: rpm –qa package-name

      It is used for package searching. It shows all the installed packages
   
      Eg2: rpm –qi package-name

      it shows information of that package.

      Eg3: rpm –qf /bin/chmod

      It shows the full name and version of the package of the command chmod

      Eg4: rpm –ivh package-name

      It is used for installing the package.
 
      Eg5: rpm –U package-name

      It is used for updating the package
 
      Eg6: rpm –e package-name

      It is used for removing the package.

      Eg7: rpm –ivh package-name –-nodeps

      It installs the package avoiding the dependencies.Its a forceful operation.

  • 17 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel

what is the command 'ls' used for?

       ls – list directory contents.    ...

for what the command 'tail' is used for?

  tail – print the last 10 lines of the named file.If more than one file is specified...

for what purpose the commad 'du' is used for?

      du- estimates the file space usage.   Format: du [options] [file]...

what is the use of command 'grep'?

    grep- search one or more files that matches a regular pattern  Format:...

'cp' command in linux

    cp - copy files and directories.  Format: cp [options] source...